@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $this->createGitInfoOperator('', 'Foo bar baz') |
50 | 50 | ); |
51 | 51 | |
52 | - $action = new Config\Action(EnsureNaming::class, ['regex' => '#bar#']); |
|
52 | + $action = new Config\Action(EnsureNaming::class, ['regex' => '#bar#']); |
|
53 | 53 | |
54 | 54 | $standard = new EnsureNaming(); |
55 | 55 | $standard->execute($config, $io, $repo, $action); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $repo->expects($this->once())->method('getInfoOperator')->willReturn( |
75 | 75 | $this->createGitInfoOperator('', 'Foo bar baz') |
76 | 76 | ); |
77 | - $action = new Config\Action( |
|
77 | + $action = new Config\Action( |
|
78 | 78 | EnsureNaming::class, |
79 | 79 | [ |
80 | 80 | 'regex' => '#.*#', |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | $io = new NullIO(); |
101 | 101 | $config = new Config(CH_PATH_FILES . '/captainhook.json'); |
102 | - $repo = $this->createRepositoryMock(); |
|
102 | + $repo = $this->createRepositoryMock(); |
|
103 | 103 | $action = new Config\Action(EnsureNaming::class); |
104 | 104 | |
105 | 105 | $standard = new EnsureNaming(); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | $io = new NullIO(); |
35 | 35 | $config = new Config(CH_PATH_FILES . '/captainhook.json'); |
36 | - $repo = $this->createRepositoryMock(); |
|
36 | + $repo = $this->createRepositoryMock(); |
|
37 | 37 | $action = new Config\Action(DoesNotContainRegex::class); |
38 | 38 | |
39 | 39 | $standard = new DoesNotContainRegex(); |
@@ -131,10 +131,10 @@ discard block |
||
131 | 131 | 'regex' => '#.#', |
132 | 132 | 'fileExtensions' => ['php'] |
133 | 133 | ]); |
134 | - $index = $this->createGitIndexOperator([ |
|
134 | + $index = $this->createGitIndexOperator([ |
|
135 | 135 | CH_PATH_FILES . '/storage/regextest1.txt' |
136 | 136 | ]); |
137 | - $index->method('getStagedFilesOfType')->willReturnCallback(function ($ext) { |
|
137 | + $index->method('getStagedFilesOfType')->willReturnCallback(function($ext) { |
|
138 | 138 | if ($ext === 'txt') { |
139 | 139 | return [ |
140 | 140 | CH_PATH_FILES . '/storage/regextest1.txt' |
@@ -167,10 +167,10 @@ discard block |
||
167 | 167 | 'regex' => '#foo#', |
168 | 168 | 'fileExtensions' => ['txt'] |
169 | 169 | ]); |
170 | - $index = $this->createGitIndexOperator([ |
|
170 | + $index = $this->createGitIndexOperator([ |
|
171 | 171 | CH_PATH_FILES . '/storage/regextest1.txt' |
172 | 172 | ]); |
173 | - $index->method('getStagedFilesOfType')->willReturnCallback(function ($ext) { |
|
173 | + $index->method('getStagedFilesOfType')->willReturnCallback(function($ext) { |
|
174 | 174 | if ($ext === 'txt') { |
175 | 175 | return [ |
176 | 176 | CH_PATH_FILES . '/storage/regextest1.txt' |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | } |
179 | 179 | return []; |
180 | 180 | }); |
181 | - $repo = $this->createRepositoryMock(); |
|
181 | + $repo = $this->createRepositoryMock(); |
|
182 | 182 | $repo->method('getIndexOperator')->willReturn($index); |
183 | 183 | |
184 | 184 | $standard = new DoesNotContainRegex(); |
@@ -123,7 +123,7 @@ |
||
123 | 123 | . PHP_EOL . IOUtil::getLineSeparator() . PHP_EOL |
124 | 124 | . IOUtil::formatHeadline(get_class($e), 80, '>', '<') . PHP_EOL |
125 | 125 | . IOUtil::getLineSeparator() . PHP_EOL |
126 | - . $e->getMessage() . PHP_EOL; |
|
126 | + . $e->getMessage() . PHP_EOL; |
|
127 | 127 | |
128 | 128 | $output->writeLn($error); |
129 | 129 |