@@ -152,7 +152,7 @@ |
||
152 | 152 | */ |
153 | 153 | private static function fixEOL(array $lines) |
154 | 154 | { |
155 | - $ltrim = function ($line) { |
|
155 | + $ltrim = function($line) { |
|
156 | 156 | return rtrim($line, "\n"); |
157 | 157 | }; |
158 | 158 | return array_map($ltrim, $lines); |
@@ -77,7 +77,7 @@ |
||
77 | 77 | protected static function preMergeAlter($text) : string |
78 | 78 | { |
79 | 79 | // Append new lines so that conflicts at the end of the text work. |
80 | - return $text . "\nthe\nend"; |
|
80 | + return $text."\nthe\nend"; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | { |
204 | 204 | return array_values(array_filter( |
205 | 205 | $this->lines, |
206 | - function (Line $line) { |
|
206 | + function(Line $line) { |
|
207 | 207 | return $line->getType() == Line::REMOVED; |
208 | 208 | } |
209 | 209 | )); |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | { |
219 | 219 | return array_values(array_filter( |
220 | 220 | $this->lines, |
221 | - function (Line $line) { |
|
221 | + function(Line $line) { |
|
222 | 222 | return $line->getType() == Line::ADDED; |
223 | 223 | } |
224 | 224 | )); |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | public function getLinesContent() |
233 | 233 | { |
234 | 234 | return array_map( |
235 | - function (Line $line) { |
|
235 | + function(Line $line) { |
|
236 | 236 | return $line->getContent(); |
237 | 237 | }, |
238 | 238 | $this->getAddedLines() |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | $baseLines = Line::createArray( |
68 | 68 | array_map( |
69 | - function ($l) { |
|
69 | + function($l) { |
|
70 | 70 | return [$l, 0]; |
71 | 71 | }, |
72 | 72 | self::splitStringByLines($base) |