@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | } |
| 291 | 291 | |
| 292 | 292 | /** |
| 293 | - * @param $text |
|
| 293 | + * @param string $text |
|
| 294 | 294 | * @return string |
| 295 | 295 | */ |
| 296 | 296 | protected static function preMergeAlter($text) : string |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | /** |
| 303 | - * @param $text |
|
| 303 | + * @param string $text |
|
| 304 | 304 | * @return bool|string |
| 305 | 305 | */ |
| 306 | 306 | protected static function postMergeAlter($text) : string |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | protected static function preMergeAlter($text) : string |
| 297 | 297 | { |
| 298 | 298 | // Append new lines so that conflicts at the end of the text work. |
| 299 | - return $text . "\nthe\nend"; |
|
| 299 | + return $text."\nthe\nend"; |
|
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | /** |
@@ -333,11 +333,11 @@ discard block |
||
| 333 | 333 | if (!$this->dir) { |
| 334 | 334 | // Greate a temporary directory. |
| 335 | 335 | $tempfile = tempnam(sys_get_temp_dir(), ''); |
| 336 | - mkdir($tempfile . '.git'); |
|
| 336 | + mkdir($tempfile.'.git'); |
|
| 337 | 337 | if (file_exists($tempfile)) { |
| 338 | 338 | unlink($tempfile); |
| 339 | 339 | } |
| 340 | - $this->dir = $tempfile . '.git'; |
|
| 340 | + $this->dir = $tempfile.'.git'; |
|
| 341 | 341 | $this->git = $this->wrapper->init($this->dir); |
| 342 | 342 | } |
| 343 | 343 | $this->git->config('user.name', 'GitMerge') |