@@ -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 | } |
@@ -162,9 +162,9 @@ discard block |
||
162 | 162 | $template = $this->createTemplateMock(); |
163 | 163 | |
164 | 164 | $template->expects($this->once()) |
165 | - ->method('getCode') |
|
166 | - ->with('pre-commit') |
|
167 | - ->willReturn(''); |
|
165 | + ->method('getCode') |
|
166 | + ->with('pre-commit') |
|
167 | + ->willReturn(''); |
|
168 | 168 | |
169 | 169 | $runner = new Installer($io, $config, $repo, $template); |
170 | 170 | $runner->setHook('pre-commit'); |
@@ -184,8 +184,8 @@ discard block |
||
184 | 184 | $template = $this->createTemplateMock(); |
185 | 185 | |
186 | 186 | $file = $this->getMockBuilder(File::class) |
187 | - ->disableOriginalConstructor() |
|
188 | - ->getMock(); |
|
187 | + ->disableOriginalConstructor() |
|
188 | + ->getMock(); |
|
189 | 189 | |
190 | 190 | $runner = new FakeInstaller($io, $config, $repo, $template); |
191 | 191 | $file->method('isLink')->willReturn(true); |
@@ -208,8 +208,8 @@ discard block |
||
208 | 208 | $template = $this->createTemplateMock(); |
209 | 209 | |
210 | 210 | $file = $this->getMockBuilder(File::class) |
211 | - ->disableOriginalConstructor() |
|
212 | - ->getMock(); |
|
211 | + ->disableOriginalConstructor() |
|
212 | + ->getMock(); |
|
213 | 213 | |
214 | 214 | $runner = new FakeInstaller($io, $config, $repo, $template); |
215 | 215 | $file->method('isLink')->willReturn(true); |
@@ -265,14 +265,14 @@ discard block |
||
265 | 265 | $repo = new Repository($fakeRepo->getRoot()); |
266 | 266 | |
267 | 267 | $template->expects($this->once()) |
268 | - ->method('getCode') |
|
269 | - ->with('pre-commit') |
|
270 | - ->willReturn(''); |
|
268 | + ->method('getCode') |
|
269 | + ->with('pre-commit') |
|
270 | + ->willReturn(''); |
|
271 | 271 | |
272 | 272 | $runner = new Installer($io, $config, $repo, $template); |
273 | 273 | $runner->setHook('pre-commit') |
274 | - ->setMoveExistingTo('foo/bar/') |
|
275 | - ->run(); |
|
274 | + ->setMoveExistingTo('foo/bar/') |
|
275 | + ->run(); |
|
276 | 276 | |
277 | 277 | $this->assertFileExists($fakeRepo->getHookDir() . '/pre-commit'); |
278 | 278 | $this->assertFileExists($fakeRepo->getRoot() . '/foo/bar/pre-commit'); |
@@ -303,14 +303,14 @@ discard block |
||
303 | 303 | $repo = new Repository($fakeRepo->getRoot()); |
304 | 304 | |
305 | 305 | $template->expects($this->once()) |
306 | - ->method('getCode') |
|
307 | - ->with('pre-commit') |
|
308 | - ->willReturn(''); |
|
306 | + ->method('getCode') |
|
307 | + ->with('pre-commit') |
|
308 | + ->willReturn(''); |
|
309 | 309 | |
310 | 310 | $runner = new Installer($io, $config, $repo, $template); |
311 | 311 | $runner->setHook('pre-commit') |
312 | - ->setMoveExistingTo('foo/bar/') |
|
313 | - ->run(); |
|
312 | + ->setMoveExistingTo('foo/bar/') |
|
313 | + ->run(); |
|
314 | 314 | |
315 | 315 | $this->assertFileExists($fakeRepo->getHookDir() . '/pre-commit'); |
316 | 316 | } |
@@ -344,8 +344,8 @@ discard block |
||
344 | 344 | |
345 | 345 | $runner = new Installer($io, $config, $repo, $template); |
346 | 346 | $runner->setHook('pre-commit') |
347 | - ->setMoveExistingTo('foo') |
|
348 | - ->run(); |
|
347 | + ->setMoveExistingTo('foo') |
|
348 | + ->run(); |
|
349 | 349 | } |
350 | 350 | |
351 | 351 | /** |