@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $this->io->write('<info>Unstaged intent-to-add files detected.</info>'); |
| 121 | 121 | |
| 122 | 122 | $this->repository->getIndexOperator()->removeFiles( |
| 123 | - array_map(function (Path $path): string { |
|
| 123 | + array_map(function(Path $path): string { |
|
| 124 | 124 | return $path->getPath(); |
| 125 | 125 | }, $this->intentToAddFiles), |
| 126 | 126 | false, |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | $this->repository->getIndexOperator()->recordIntentToAddFiles( |
| 144 | - array_map(function (Path $path): string { |
|
| 144 | + array_map(function(Path $path): string { |
|
| 145 | 145 | return $path->getPath(); |
| 146 | 146 | }, $this->intentToAddFiles) |
| 147 | 147 | ); |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | |
| 202 | 202 | // At this point, the working tree should be pristine, so the |
| 203 | 203 | // patch should cleanly apply. |
| 204 | - $this->applyPatch((string)$this->unstagedPatchFile); |
|
| 204 | + $this->applyPatch((string) $this->unstagedPatchFile); |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | $this->io->write("<info>Restored changes from {$this->unstagedPatchFile}.</info>"); |
@@ -228,7 +228,7 @@ |
||
| 228 | 228 | // if a hook is configured and no force option is set, |
| 229 | 229 | // ask the user if overwriting the hook is ok |
| 230 | 230 | if ($this->needConfirmation($hook)) { |
| 231 | - $ans = $this->io->ask( |
|
| 231 | + $ans = $this->io->ask( |
|
| 232 | 232 | 'The <comment>' . $hook . '</comment> hook exists! Overwrite? <comment>[y,N]</comment> ', |
| 233 | 233 | 'n' |
| 234 | 234 | ); |
@@ -140,6 +140,6 @@ |
||
| 140 | 140 | if (!$this->isLink()) { |
| 141 | 141 | throw new RuntimeException('Not a symbolic link: ' . $this->path); |
| 142 | 142 | } |
| 143 | - return (string)readlink($this->path); |
|
| 143 | + return (string) readlink($this->path); |
|
| 144 | 144 | } |
| 145 | 145 | } |