@@ -23,8 +23,8 @@ |
||
| 23 | 23 | public function createConfigMock(bool $loadedFromFile = false, string $path = ''): CHConfig |
| 24 | 24 | { |
| 25 | 25 | $config = $this->getMockBuilder(CHConfig::class) |
| 26 | - ->disableOriginalConstructor() |
|
| 27 | - ->getMock(); |
|
| 26 | + ->disableOriginalConstructor() |
|
| 27 | + ->getMock(); |
|
| 28 | 28 | |
| 29 | 29 | $config->method('isLoadedFromFile')->willReturn($loadedFromFile); |
| 30 | 30 | $config->method('getPath')->willReturn($path); |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | protected function setUp(): void |
| 28 | 28 | { |
| 29 | 29 | $mock = $this->getMockBuilder(IOInterface::class) |
| 30 | - ->disableOriginalConstructor() |
|
| 31 | - ->getMock(); |
|
| 30 | + ->disableOriginalConstructor() |
|
| 31 | + ->getMock(); |
|
| 32 | 32 | $mock->method('isInteractive')->willReturn(false); |
| 33 | 33 | $mock->method('isDebug')->willReturn(false); |
| 34 | 34 | $mock->method('isVerbose')->willReturn(false); |
@@ -46,8 +46,8 @@ |
||
| 46 | 46 | public function getOutputMock() |
| 47 | 47 | { |
| 48 | 48 | return $this->getMockBuilder(OutputInterface::class) |
| 49 | - ->disableOriginalConstructor() |
|
| 50 | - ->getMock(); |
|
| 49 | + ->disableOriginalConstructor() |
|
| 50 | + ->getMock(); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -55,8 +55,8 @@ |
||
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | $io = $this->getMockBuilder(DefaultIO::class) |
| 58 | - ->disableOriginalConstructor() |
|
| 59 | - ->getMock(); |
|
| 58 | + ->disableOriginalConstructor() |
|
| 59 | + ->getMock(); |
|
| 60 | 60 | $io->expects($this->once())->method('write'); |
| 61 | 61 | |
| 62 | 62 | $add->setIO($io); |
@@ -62,8 +62,8 @@ |
||
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | 64 | $resolver = $this->getMockBuilder(Resolver::class) |
| 65 | - ->disableOriginalConstructor() |
|
| 66 | - ->getMock(); |
|
| 65 | + ->disableOriginalConstructor() |
|
| 66 | + ->getMock(); |
|
| 67 | 67 | $resolver->method('isPharRelease')->willReturn(true); |
| 68 | 68 | |
| 69 | 69 | $cmd = new PostCommit($resolver); |
@@ -144,16 +144,16 @@ discard block |
||
| 144 | 144 | $conditionConfig = new Config\Condition( |
| 145 | 145 | 'and', |
| 146 | 146 | [[ |
| 147 | - 'exec' => '\\' . Any::class, |
|
| 148 | - 'args' => [ |
|
| 149 | - ['foo.php', 'bar.php'] |
|
| 150 | - ] |
|
| 151 | - ], [ |
|
| 152 | - 'exec' => '\\' . Any::class, |
|
| 153 | - 'args' => [ |
|
| 154 | - ['foo.php', 'bar.php'] |
|
| 155 | - ] |
|
| 156 | - ]] |
|
| 147 | + 'exec' => '\\' . Any::class, |
|
| 148 | + 'args' => [ |
|
| 149 | + ['foo.php', 'bar.php'] |
|
| 150 | + ] |
|
| 151 | + ], [ |
|
| 152 | + 'exec' => '\\' . Any::class, |
|
| 153 | + 'args' => [ |
|
| 154 | + ['foo.php', 'bar.php'] |
|
| 155 | + ] |
|
| 156 | + ]] |
|
| 157 | 157 | ); |
| 158 | 158 | |
| 159 | 159 | $runner = new Condition($io, $repository, $this->createConfigMock(), 'post-checkout'); |
@@ -175,21 +175,21 @@ discard block |
||
| 175 | 175 | $conditionConfig = new Config\Condition( |
| 176 | 176 | 'or', |
| 177 | 177 | [[ |
| 178 | - 'exec' => '\\' . FileStaged\All::class, |
|
| 179 | - 'args' => [ |
|
| 180 | - ['foo.php', 'bar.php'] |
|
| 181 | - ] |
|
| 182 | - ], [ |
|
| 183 | - 'exec' => '\\' . Any::class, |
|
| 184 | - 'args' => [ |
|
| 185 | - ['buz.php', 'bar.php'] |
|
| 186 | - ] |
|
| 187 | - ], [ |
|
| 188 | - 'exec' => '\\' . Any::class, |
|
| 189 | - 'args' => [ |
|
| 190 | - ['foo.php', 'bar.php'] |
|
| 191 | - ] |
|
| 192 | - ]] |
|
| 178 | + 'exec' => '\\' . FileStaged\All::class, |
|
| 179 | + 'args' => [ |
|
| 180 | + ['foo.php', 'bar.php'] |
|
| 181 | + ] |
|
| 182 | + ], [ |
|
| 183 | + 'exec' => '\\' . Any::class, |
|
| 184 | + 'args' => [ |
|
| 185 | + ['buz.php', 'bar.php'] |
|
| 186 | + ] |
|
| 187 | + ], [ |
|
| 188 | + 'exec' => '\\' . Any::class, |
|
| 189 | + 'args' => [ |
|
| 190 | + ['foo.php', 'bar.php'] |
|
| 191 | + ] |
|
| 192 | + ]] |
|
| 193 | 193 | ); |
| 194 | 194 | |
| 195 | 195 | $runner = new Condition($io, $repository, $this->createConfigMock(), 'post-checkout'); |
@@ -47,9 +47,9 @@ |
||
| 47 | 47 | { |
| 48 | 48 | parent::configure(); |
| 49 | 49 | $this->setName('hook:' . $this->hookName) |
| 50 | - ->setAliases([$this->hookName]) |
|
| 51 | - ->setDescription('Run git ' . $this->hookName . ' hook') |
|
| 52 | - ->setHelp('This command executes the ' . $this->hookName . ' hook'); |
|
| 50 | + ->setAliases([$this->hookName]) |
|
| 51 | + ->setDescription('Run git ' . $this->hookName . ' hook') |
|
| 52 | + ->setHelp('This command executes the ' . $this->hookName . ' hook'); |
|
| 53 | 53 | |
| 54 | 54 | $this->addOption( |
| 55 | 55 | 'bootstrap', |
@@ -109,10 +109,10 @@ |
||
| 109 | 109 | $options = substr($command, $endExec); |
| 110 | 110 | |
| 111 | 111 | $command = trim($executable) |
| 112 | - . $this->createInteractiveOptions($options) |
|
| 113 | - . $this->createTTYOptions($options) |
|
| 114 | - . $this->createEnvOptions($options, $hook) |
|
| 115 | - . ' ' . trim($options); |
|
| 112 | + . $this->createInteractiveOptions($options) |
|
| 113 | + . $this->createTTYOptions($options) |
|
| 114 | + . $this->createEnvOptions($options, $hook) |
|
| 115 | + . ' ' . trim($options); |
|
| 116 | 116 | } |
| 117 | 117 | return $command; |
| 118 | 118 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | parent::__construct(); |
| 32 | 32 | |
| 33 | 33 | $this->hint = 'A commit message subject should always complete the following sentence.' . PHP_EOL . |
| 34 | - 'This commit will [YOUR COMMIT MESSAGE].'; |
|
| 34 | + 'This commit will [YOUR COMMIT MESSAGE].'; |
|
| 35 | 35 | |
| 36 | 36 | $this->setSubjectBlacklist( |
| 37 | 37 | [ |