Skip to content

Commit bd5d3d3

Browse files
committed
Fix: Line length and CLI test
1 parent 104e77f commit bd5d3d3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/jblond/Diff/Renderer/Text/Unified.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public function render()
5050
$iGroup2 = -1;
5151
}
5252

53-
$diff .= '@@ -' . ($iGroup1 + 1) . ',' . ($iGroup2 - $iGroup1) . ' +' . ($jGroup1 + 1) . ',' . ($jGroup2 - $jGroup1) . " @@\n";
53+
$diff .= '@@ -' . ($iGroup1 + 1) . ',' . ($iGroup2 - $iGroup1) . ' +' . ($jGroup1 + 1)
54+
. ',' . ($jGroup2 - $jGroup1) . " @@\n";
5455
foreach ($group as [$tag, $iGroup1, $iGroup2, $jGroup1, $jGroup2]) {
5556
if ($tag == 'equal') {
5657
$diff .= ' ' .

lib/jblond/Diff/Renderer/Text/UnifiedCli.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ private function output(): string
8282
}
8383

8484
$diff .= $this->colorizeString(
85-
'@@ -' . ($iGroup1 + 1) . ',' . ($iGroup2 - $iGroup1) . ' +' . ($jGroup1 + 1) . ',' . ($jGroup2 - $jGroup1) . " @@\n",
85+
'@@ -' . ($iGroup1 + 1) . ',' . ($iGroup2 - $iGroup1) . ' +' . ($jGroup1 + 1)
86+
. ',' . ($jGroup2 - $jGroup1) . " @@\n",
8687
'purple'
8788
);
8889

0 commit comments

Comments
 (0)