@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -38,11 +38,11 @@ discard block |
||
38 | 38 | |
39 | 39 | foreach ($diff as $diffEntry) { |
40 | 40 | if ($diffEntry[1] === 1 /* ADDED */) { |
41 | - \fwrite($buffer, '+' . $diffEntry[0]); |
|
41 | + \fwrite($buffer, '+'.$diffEntry[0]); |
|
42 | 42 | } elseif ($diffEntry[1] === 2 /* REMOVED */) { |
43 | - \fwrite($buffer, '-' . $diffEntry[0]); |
|
43 | + \fwrite($buffer, '-'.$diffEntry[0]); |
|
44 | 44 | } elseif ($diffEntry[1] === 3 /* WARNING */) { |
45 | - \fwrite($buffer, ' ' . $diffEntry[0]); |
|
45 | + \fwrite($buffer, ' '.$diffEntry[0]); |
|
46 | 46 | |
47 | 47 | continue; // Warnings should not be tested for line break, it will always be there |
48 | 48 | } else { /* Not changed (old) 0 */ |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | /* |
3 | 3 | * This file is part of sebastian/diff. |
4 | 4 | * |
@@ -112,15 +112,15 @@ discard block |
||
112 | 112 | int $toRange |
113 | 113 | ) { |
114 | 114 | if ($this->addLineNumbers) { |
115 | - \fwrite($output, '@@ -' . (1 + $fromStart)); |
|
115 | + \fwrite($output, '@@ -'.(1 + $fromStart)); |
|
116 | 116 | |
117 | 117 | if ($fromRange > 1) { |
118 | - \fwrite($output, ',' . $fromRange); |
|
118 | + \fwrite($output, ','.$fromRange); |
|
119 | 119 | } |
120 | 120 | |
121 | - \fwrite($output, ' +' . (1 + $toStart)); |
|
121 | + \fwrite($output, ' +'.(1 + $toStart)); |
|
122 | 122 | if ($toRange > 1) { |
123 | - \fwrite($output, ',' . $toRange); |
|
123 | + \fwrite($output, ','.$toRange); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | \fwrite($output, " @@\n"); |
@@ -130,11 +130,11 @@ discard block |
||
130 | 130 | |
131 | 131 | for ($i = $diffStartIndex; $i < $diffEndIndex; ++$i) { |
132 | 132 | if ($diff[$i][1] === 1 /* ADDED */) { |
133 | - \fwrite($output, '+' . $diff[$i][0]); |
|
133 | + \fwrite($output, '+'.$diff[$i][0]); |
|
134 | 134 | } elseif ($diff[$i][1] === 2 /* REMOVED */) { |
135 | - \fwrite($output, '-' . $diff[$i][0]); |
|
135 | + \fwrite($output, '-'.$diff[$i][0]); |
|
136 | 136 | } else { /* Not changed (old) 0 or Warning 3 */ |
137 | - \fwrite($output, ' ' . $diff[$i][0]); |
|
137 | + \fwrite($output, ' '.$diff[$i][0]); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | $lc = \substr($diff[$i][0], -1); |