@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | ob_start(); |
| 80 | 80 | $class::$method(); |
| 81 | - return (string)ob_get_clean(); |
|
| 81 | + return (string) ob_get_clean(); |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
@@ -107,6 +107,6 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | protected function isStaticMethodCall(string $class): bool |
| 109 | 109 | { |
| 110 | - return (bool)preg_match('#^\\\\.+::.+$#i', $class); |
|
| 110 | + return (bool) preg_match('#^\\\\.+::.+$#i', $class); |
|
| 111 | 111 | } |
| 112 | 112 | } |
@@ -67,9 +67,9 @@ |
||
| 67 | 67 | public function beforeHook(): void |
| 68 | 68 | { |
| 69 | 69 | $this->commentChar = $this->repository->getConfigOperator()->getSafely('core.commentchar', '#'); |
| 70 | - $this->file = (string)$this->io->getArgument('file'); |
|
| 71 | - $this->mode = (string)$this->io->getArgument('mode'); |
|
| 72 | - $this->hash = (string)$this->io->getArgument('hash'); |
|
| 70 | + $this->file = (string) $this->io->getArgument('file'); |
|
| 71 | + $this->mode = (string) $this->io->getArgument('mode'); |
|
| 72 | + $this->hash = (string) $this->io->getArgument('hash'); |
|
| 73 | 73 | |
| 74 | 74 | if (empty($this->file)) { |
| 75 | 75 | throw new RuntimeException('commit message file argument is missing'); |
@@ -128,8 +128,8 @@ discard block |
||
| 128 | 128 | { |
| 129 | 129 | $composer = $this->createComposerMock($extra); |
| 130 | 130 | $event = $this->getMockBuilder(Event::class) |
| 131 | - ->disableOriginalConstructor() |
|
| 132 | - ->getMock(); |
|
| 131 | + ->disableOriginalConstructor() |
|
| 132 | + ->getMock(); |
|
| 133 | 133 | |
| 134 | 134 | $event->expects($this->once())->method('getIO')->willReturn(new NullIO()); |
| 135 | 135 | $event->expects($this->once())->method('getComposer')->willReturn($composer); |
@@ -151,8 +151,8 @@ discard block |
||
| 151 | 151 | $package->expects($this->atLeast(1))->method('getExtra')->willReturn($extra); |
| 152 | 152 | |
| 153 | 153 | $composer = $this->getMockBuilder(Composer::class) |
| 154 | - ->disableOriginalConstructor() |
|
| 155 | - ->getMock(); |
|
| 154 | + ->disableOriginalConstructor() |
|
| 155 | + ->getMock(); |
|
| 156 | 156 | $composer->expects($this->atLeast(1))->method('getPackage')->willReturn($package); |
| 157 | 157 | |
| 158 | 158 | return $composer; |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | */ |
| 102 | 102 | public function testSetupNoConfig(): void |
| 103 | 103 | { |
| 104 | - $repo = new DummyRepo( |
|
| 104 | + $repo = new DummyRepo( |
|
| 105 | 105 | [], |
| 106 | 106 | [ |
| 107 | 107 | 'vendor' => [ |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | true, |
| 127 | 127 | $this->io->askAndValidate( |
| 128 | 128 | 'foo', |
| 129 | - function () { |
|
| 129 | + function() { |
|
| 130 | 130 | return true; |
| 131 | 131 | }, |
| 132 | 132 | null, |
@@ -232,7 +232,7 @@ |
||
| 232 | 232 | $io = new DefaultIO($input, $output, $helper); |
| 233 | 233 | $answer = $io->askAndValidate( |
| 234 | 234 | 'foo', |
| 235 | - function () { |
|
| 235 | + function() { |
|
| 236 | 236 | return true; |
| 237 | 237 | } |
| 238 | 238 | ); |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | true, |
| 111 | 111 | $io->askAndValidate( |
| 112 | 112 | 'foo', |
| 113 | - function () { |
|
| 113 | + function() { |
|
| 114 | 114 | return true; |
| 115 | 115 | }, |
| 116 | 116 | false, |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $this->expectException(Exception::class); |
| 31 | 31 | |
| 32 | - $input = new ArrayInput( |
|
| 32 | + $input = new ArrayInput( |
|
| 33 | 33 | [ |
| 34 | 34 | 'hook' => 'pre-commit', |
| 35 | 35 | '--configuration' => 'foo' |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $this->expectException(Exception::class); |
| 31 | 31 | |
| 32 | - $input = new ArrayInput( |
|
| 32 | + $input = new ArrayInput( |
|
| 33 | 33 | [ |
| 34 | 34 | 'hook' => 'pre-commit', |
| 35 | 35 | '--configuration' => 'foo' |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | { |
| 27 | 27 | $input = new ArrayInput(['--version' => true]); |
| 28 | 28 | $output = $this->getMockBuilder(NullOutput::class) |
| 29 | - ->disableOriginalConstructor() |
|
| 30 | - ->getMock(); |
|
| 29 | + ->disableOriginalConstructor() |
|
| 30 | + ->getMock(); |
|
| 31 | 31 | |
| 32 | 32 | $output->expects($this->once())->method('writeLn'); |
| 33 | 33 | |
@@ -46,8 +46,8 @@ discard block |
||
| 46 | 46 | { |
| 47 | 47 | $input = new ArrayInput(['command' => 'list']); |
| 48 | 48 | $output = $this->getMockBuilder(NullOutput::class) |
| 49 | - ->disableOriginalConstructor() |
|
| 50 | - ->getMock(); |
|
| 49 | + ->disableOriginalConstructor() |
|
| 50 | + ->getMock(); |
|
| 51 | 51 | |
| 52 | 52 | $output->expects($this->atLeastOnce())->method('write'); |
| 53 | 53 | |