@@ -90,7 +90,7 @@ |
||
| 90 | 90 | $this->assertTrue( |
| 91 | 91 | $this->io->askAndValidate( |
| 92 | 92 | 'foo', |
| 93 | - function () { |
|
| 93 | + function() { |
|
| 94 | 94 | return true; |
| 95 | 95 | }, |
| 96 | 96 | null, |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | $this->assertTrue( |
| 84 | 84 | $io->askAndValidate( |
| 85 | 85 | 'foo', |
| 86 | - function () { |
|
| 86 | + function() { |
|
| 87 | 87 | return true; |
| 88 | 88 | }, |
| 89 | 89 | false, |
@@ -39,13 +39,13 @@ |
||
| 39 | 39 | $io = $this->createIOMock(); |
| 40 | 40 | $io->method('getArgument')->willReturn('hook:pre-push'); |
| 41 | 41 | $io->expects($this->atLeastOnce()) |
| 42 | - ->method('getStandardInput') |
|
| 43 | - ->willReturn( |
|
| 44 | - [ |
|
| 45 | - 'refs/heads/main 9dfa0fa6221d75f48b2dfac359127324bedf8409' . |
|
| 46 | - ' refs/heads/main 8309f6e16097754469c485e604900c573bf2c5d8' |
|
| 47 | - ] |
|
| 48 | - ); |
|
| 42 | + ->method('getStandardInput') |
|
| 43 | + ->willReturn( |
|
| 44 | + [ |
|
| 45 | + 'refs/heads/main 9dfa0fa6221d75f48b2dfac359127324bedf8409' . |
|
| 46 | + ' refs/heads/main 8309f6e16097754469c485e604900c573bf2c5d8' |
|
| 47 | + ] |
|
| 48 | + ); |
|
| 49 | 49 | $operator = $this->createGitDiffOperator(['fiz.php', 'foo.txt']); |
| 50 | 50 | $repository = $this->createRepositoryMock(); |
| 51 | 51 | $repository->expects($this->once())->method('getDiffOperator')->willReturn($operator); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | { |
| 55 | 55 | $this->isCaseSensitive = $caseSensitive; |
| 56 | 56 | $this->hint = 'Commit message should not contain blacklisted words'; |
| 57 | - $this->stringDetection = function (string $content, string $term): bool { |
|
| 57 | + $this->stringDetection = function(string $content, string $term): bool { |
|
| 58 | 58 | return str_contains($content, $term); |
| 59 | 59 | }; |
| 60 | 60 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | { |
| 31 | 31 | parent::__construct(); |
| 32 | 32 | |
| 33 | - $this->hint = 'A commit message subject should always complete the following sentence.' . PHP_EOL . |
|
| 33 | + $this->hint = 'A commit message subject should always complete the following sentence.' . PHP_EOL . |
|
| 34 | 34 | 'This commit will [YOUR COMMIT MESSAGE].'; |
| 35 | 35 | |
| 36 | 36 | $this->setSubjectBlacklist( |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | if ($checkOnlyBeginning) { |
| 51 | 51 | // overwrite the detection logic to only check the beginning og the string |
| 52 | - $this->stringDetection = function (string $content, string $term): bool { |
|
| 52 | + $this->stringDetection = function(string $content, string $term): bool { |
|
| 53 | 53 | return str_starts_with($content, $term); |
| 54 | 54 | }; |
| 55 | 55 | } |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | |
| 108 | 108 | $executableInclude = str_starts_with($executablePath, '/') |
| 109 | 109 | ? '\'' . $executablePath . '\'' |
| 110 | - : '__DIR__ . \'/../../' . $executablePath . '\''; |
|
| 110 | + : '__DIR__ . \'/../../' . $executablePath . '\''; |
|
| 111 | 111 | |
| 112 | 112 | $bootstrapOption = $this->getBootstrapCmdOption(); |
| 113 | 113 | $bootstrapOptionQuoted = empty($bootstrapOption) ? '' : ' \'' . $bootstrapOption . '\','; |