@@ -29,11 +29,11 @@ discard block |
||
| 29 | 29 | $config = $this->createConfigMock(); |
| 30 | 30 | $config->expects($this->exactly(9))->method('getHookConfig')->willReturn($this->createHookConfigMock()); |
| 31 | 31 | $io->expects($invocations) |
| 32 | - ->method('ask') |
|
| 33 | - ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 34 | - $results = ['y', 'y', 'echo \'foo\'', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
|
| 35 | - return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
|
| 36 | - }); |
|
| 32 | + ->method('ask') |
|
| 33 | + ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 34 | + $results = ['y', 'y', 'echo \'foo\'', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
|
| 35 | + return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
|
| 36 | + }); |
|
| 37 | 37 | |
| 38 | 38 | $setup = new Advanced($io); |
| 39 | 39 | $setup->configureHooks($config); |
@@ -46,11 +46,11 @@ discard block |
||
| 46 | 46 | $config = $this->createConfigMock(); |
| 47 | 47 | $config->method('getHookConfig')->willReturn($this->createHookConfigMock()); |
| 48 | 48 | $io->expects($invocations) |
| 49 | - ->method('ask') |
|
| 50 | - ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 51 | - $results = ['y', 'y', '\\Foo\\Bar', 'y', 'foo:bar', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
|
| 52 | - return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
|
| 53 | - }); |
|
| 49 | + ->method('ask') |
|
| 50 | + ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 51 | + $results = ['y', 'y', '\\Foo\\Bar', 'y', 'foo:bar', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
|
| 52 | + return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
|
| 53 | + }); |
|
| 54 | 54 | |
| 55 | 55 | $io->expects($this->once())->method('askAndValidate')->willReturn('foo:bar'); |
| 56 | 56 | |
@@ -30,12 +30,12 @@ discard block |
||
| 30 | 30 | $config->expects($this->exactly(9))->method('getHookConfig')->willReturn($this->createHookConfigMock()); |
| 31 | 31 | $io->expects($invocations) |
| 32 | 32 | ->method('ask') |
| 33 | - ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 33 | + ->willReturnCallback(function($parameters) use ($invocations) { |
|
| 34 | 34 | $results = ['y', 'y', 'echo \'foo\'', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
| 35 | 35 | return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | - $setup = new Advanced($io); |
|
| 38 | + $setup = new Advanced($io); |
|
| 39 | 39 | $setup->configureHooks($config); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -47,14 +47,14 @@ discard block |
||
| 47 | 47 | $config->method('getHookConfig')->willReturn($this->createHookConfigMock()); |
| 48 | 48 | $io->expects($invocations) |
| 49 | 49 | ->method('ask') |
| 50 | - ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 50 | + ->willReturnCallback(function($parameters) use ($invocations) { |
|
| 51 | 51 | $results = ['y', 'y', '\\Foo\\Bar', 'y', 'foo:bar', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
| 52 | 52 | return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
| 53 | 53 | }); |
| 54 | 54 | |
| 55 | 55 | $io->expects($this->once())->method('askAndValidate')->willReturn('foo:bar'); |
| 56 | 56 | |
| 57 | - $setup = new Advanced($io); |
|
| 57 | + $setup = new Advanced($io); |
|
| 58 | 58 | $setup->configureHooks($config); |
| 59 | 59 | } |
| 60 | 60 | } |
@@ -33,15 +33,15 @@ discard block |
||
| 33 | 33 | $config = $this->createConfigMock(true); |
| 34 | 34 | $io = $this->createIOMock(); |
| 35 | 35 | $io->expects($invocations) |
| 36 | - ->method('ask') |
|
| 37 | - ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 38 | - $results = ['y', 'y', '\\Foo\\Bar', 'y', 'foo:bar', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
|
| 39 | - return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
|
| 40 | - }); |
|
| 36 | + ->method('ask') |
|
| 37 | + ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 38 | + $results = ['y', 'y', '\\Foo\\Bar', 'y', 'foo:bar', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
|
| 39 | + return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
|
| 40 | + }); |
|
| 41 | 41 | |
| 42 | 42 | $runner = new Creator($io, $config); |
| 43 | 43 | $runner->advanced(true) |
| 44 | - ->run(); |
|
| 44 | + ->run(); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -61,17 +61,17 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | $io = $this->createIOMock(); |
| 63 | 63 | $io->expects($invocations) |
| 64 | - ->method('ask') |
|
| 65 | - ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 66 | - $results = ['y', 'y', '\\Foo\\Bar', 'y', 'foo:bar', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
|
| 67 | - return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
|
| 68 | - }); |
|
| 64 | + ->method('ask') |
|
| 65 | + ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 66 | + $results = ['y', 'y', '\\Foo\\Bar', 'y', 'foo:bar', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
|
| 67 | + return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
|
| 68 | + }); |
|
| 69 | 69 | $io->expects($this->once())->method('askAndValidate')->willReturn('foo:bar'); |
| 70 | 70 | |
| 71 | 71 | $runner = new Creator($io, $config); |
| 72 | 72 | $runner->extend(true) |
| 73 | - ->advanced(true) |
|
| 74 | - ->run(); |
|
| 73 | + ->advanced(true) |
|
| 74 | + ->run(); |
|
| 75 | 75 | |
| 76 | 76 | $configFileContentAfter = $configDir->getChild('captainhook.json')->getContent(); |
| 77 | 77 | $this->assertFileExists($configFile); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | $io = $this->createIOMock(); |
| 35 | 35 | $io->expects($invocations) |
| 36 | 36 | ->method('ask') |
| 37 | - ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 37 | + ->willReturnCallback(function($parameters) use ($invocations) { |
|
| 38 | 38 | $results = ['y', 'y', '\\Foo\\Bar', 'y', 'foo:bar', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
| 39 | 39 | return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
| 40 | 40 | }); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $io = $this->createIOMock(); |
| 63 | 63 | $io->expects($invocations) |
| 64 | 64 | ->method('ask') |
| 65 | - ->willReturnCallback(function ($parameters) use ($invocations) { |
|
| 65 | + ->willReturnCallback(function($parameters) use ($invocations) { |
|
| 66 | 66 | $results = ['y', 'y', '\\Foo\\Bar', 'y', 'foo:bar', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n']; |
| 67 | 67 | return $results[$invocations->numberOfInvocations() - 1] ?? ''; |
| 68 | 68 | }); |
@@ -131,9 +131,9 @@ discard block |
||
| 131 | 131 | $template = $this->createTemplateMock(); |
| 132 | 132 | |
| 133 | 133 | $template->expects($this->once()) |
| 134 | - ->method('getCode') |
|
| 135 | - ->with('pre-commit') |
|
| 136 | - ->willReturn(''); |
|
| 134 | + ->method('getCode') |
|
| 135 | + ->with('pre-commit') |
|
| 136 | + ->willReturn(''); |
|
| 137 | 137 | |
| 138 | 138 | $runner = new Installer($io, $config, $repo, $template); |
| 139 | 139 | $runner->setHook('pre-commit'); |
@@ -168,8 +168,8 @@ discard block |
||
| 168 | 168 | $template = $this->createTemplateMock(); |
| 169 | 169 | |
| 170 | 170 | $file = $this->getMockBuilder(File::class) |
| 171 | - ->disableOriginalConstructor() |
|
| 172 | - ->getMock(); |
|
| 171 | + ->disableOriginalConstructor() |
|
| 172 | + ->getMock(); |
|
| 173 | 173 | |
| 174 | 174 | $runner = new FakeInstaller($io, $config, $repo, $template); |
| 175 | 175 | $file->method('isLink')->willReturn(true); |
@@ -189,8 +189,8 @@ discard block |
||
| 189 | 189 | $template = $this->createTemplateMock(); |
| 190 | 190 | |
| 191 | 191 | $file = $this->getMockBuilder(File::class) |
| 192 | - ->disableOriginalConstructor() |
|
| 193 | - ->getMock(); |
|
| 192 | + ->disableOriginalConstructor() |
|
| 193 | + ->getMock(); |
|
| 194 | 194 | |
| 195 | 195 | $runner = new FakeInstaller($io, $config, $repo, $template); |
| 196 | 196 | $file->method('isLink')->willReturn(true); |
@@ -260,14 +260,14 @@ discard block |
||
| 260 | 260 | $repo = new Repository($fakeRepo->getRoot()); |
| 261 | 261 | |
| 262 | 262 | $template->expects($this->once()) |
| 263 | - ->method('getCode') |
|
| 264 | - ->with('pre-commit') |
|
| 265 | - ->willReturn(''); |
|
| 263 | + ->method('getCode') |
|
| 264 | + ->with('pre-commit') |
|
| 265 | + ->willReturn(''); |
|
| 266 | 266 | |
| 267 | 267 | $runner = new Installer($io, $config, $repo, $template); |
| 268 | 268 | $runner->setHook('pre-commit') |
| 269 | - ->setMoveExistingTo('foo/bar/') |
|
| 270 | - ->run(); |
|
| 269 | + ->setMoveExistingTo('foo/bar/') |
|
| 270 | + ->run(); |
|
| 271 | 271 | |
| 272 | 272 | $this->assertFileExists($fakeRepo->getHookDir() . '/pre-commit'); |
| 273 | 273 | $this->assertFileExists($fakeRepo->getRoot() . '/foo/bar/pre-commit'); |
@@ -295,14 +295,14 @@ discard block |
||
| 295 | 295 | $repo = new Repository($fakeRepo->getRoot()); |
| 296 | 296 | |
| 297 | 297 | $template->expects($this->once()) |
| 298 | - ->method('getCode') |
|
| 299 | - ->with('pre-commit') |
|
| 300 | - ->willReturn(''); |
|
| 298 | + ->method('getCode') |
|
| 299 | + ->with('pre-commit') |
|
| 300 | + ->willReturn(''); |
|
| 301 | 301 | |
| 302 | 302 | $runner = new Installer($io, $config, $repo, $template); |
| 303 | 303 | $runner->setHook('pre-commit') |
| 304 | - ->setMoveExistingTo('foo/bar/') |
|
| 305 | - ->run(); |
|
| 304 | + ->setMoveExistingTo('foo/bar/') |
|
| 305 | + ->run(); |
|
| 306 | 306 | |
| 307 | 307 | $this->assertFileExists($fakeRepo->getHookDir() . '/pre-commit'); |
| 308 | 308 | } |
@@ -333,8 +333,8 @@ discard block |
||
| 333 | 333 | |
| 334 | 334 | $runner = new Installer($io, $config, $repo, $template); |
| 335 | 335 | $runner->setHook('pre-commit') |
| 336 | - ->setMoveExistingTo('foo') |
|
| 337 | - ->run(); |
|
| 336 | + ->setMoveExistingTo('foo') |
|
| 337 | + ->run(); |
|
| 338 | 338 | } |
| 339 | 339 | |
| 340 | 340 | public function testSkipExisting(): void |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | $this->statusOperator |
| 202 | 202 | ->expects($this->once()) |
| 203 | 203 | ->method('restoreWorkingTree') |
| 204 | - ->willReturnCallback(function (): bool { |
|
| 204 | + ->willReturnCallback(function(): bool { |
|
| 205 | 205 | if (getenv(PreserveWorkingTree::SKIP_POST_CHECKOUT_VAR) != '1') { |
| 206 | 206 | $this->fail(PreserveWorkingTree::SKIP_POST_CHECKOUT_VAR . ' did not have the correct value'); |
| 207 | 207 | } |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | $this->diffOperator |
| 212 | 212 | ->expects($this->once()) |
| 213 | 213 | ->method('applyPatches') |
| 214 | - ->with($this->callback(function ($value) use ($patchFileConstraint): bool { |
|
| 214 | + ->with($this->callback(function($value) use ($patchFileConstraint): bool { |
|
| 215 | 215 | $result = true; |
| 216 | 216 | foreach ($value as $item) { |
| 217 | 217 | $result = $result && $patchFileConstraint->evaluate($item, '', true); |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | $this->diffOperator |
| 267 | 267 | ->expects($this->exactly(3)) |
| 268 | 268 | ->method('applyPatches') |
| 269 | - ->with($this->callback(function ($value) use ($patchFileConstraint): bool { |
|
| 269 | + ->with($this->callback(function($value) use ($patchFileConstraint): bool { |
|
| 270 | 270 | $result = true; |
| 271 | 271 | foreach ($value as $item) { |
| 272 | 272 | $result = $result && $patchFileConstraint->evaluate($item, '', true); |
@@ -177,7 +177,7 @@ |
||
| 177 | 177 | false, |
| 178 | 178 | ['run-path' => '/usr/local/bin/captainhook', 'verbosity' => 'debug', 'custom' => ['foo' => 'bar']] |
| 179 | 179 | ); |
| 180 | - $json = $config->getJsonData(); |
|
| 180 | + $json = $config->getJsonData(); |
|
| 181 | 181 | |
| 182 | 182 | $this->assertIsArray($json); |
| 183 | 183 | $this->assertIsArray($json['config']); |
@@ -42,64 +42,64 @@ discard block |
||
| 42 | 42 | { |
| 43 | 43 | parent::configure(); |
| 44 | 44 | $this->setName('install') |
| 45 | - ->setDescription('Install hooks to your .git/hooks directory') |
|
| 46 | - ->setHelp('Install git hooks to your .git/hooks directory') |
|
| 47 | - ->addArgument( |
|
| 48 | - 'hook', |
|
| 49 | - InputArgument::OPTIONAL, |
|
| 50 | - 'Limit the hooks you want to install. ' . |
|
| 51 | - 'You can specify multiple hooks with comma as delimiter. ' . |
|
| 52 | - 'By default all hooks get installed' |
|
| 53 | - ) |
|
| 54 | - ->addOption( |
|
| 55 | - 'only-enabled', |
|
| 56 | - null, |
|
| 57 | - InputOption::VALUE_NONE, |
|
| 58 | - 'Limit the hooks you want to install to those enabled in your conf. ' . |
|
| 59 | - 'By default all hooks get installed' |
|
| 60 | - ) |
|
| 61 | - ->addOption( |
|
| 62 | - 'force', |
|
| 63 | - 'f', |
|
| 64 | - InputOption::VALUE_NONE, |
|
| 65 | - 'Force install without confirmation' |
|
| 66 | - ) |
|
| 67 | - ->addOption( |
|
| 68 | - 'skip-existing', |
|
| 69 | - 's', |
|
| 70 | - InputOption::VALUE_NONE, |
|
| 71 | - 'Do not overwrite existing hooks' |
|
| 72 | - ) |
|
| 73 | - ->addOption( |
|
| 74 | - 'move-existing-to', |
|
| 75 | - null, |
|
| 76 | - InputOption::VALUE_OPTIONAL, |
|
| 77 | - 'Move existing hooks to given directory' |
|
| 78 | - ) |
|
| 79 | - ->addOption( |
|
| 80 | - 'bootstrap', |
|
| 81 | - 'b', |
|
| 82 | - InputOption::VALUE_OPTIONAL, |
|
| 83 | - 'Path to composers vendor/autoload.php' |
|
| 84 | - ) |
|
| 85 | - ->addOption( |
|
| 86 | - 'run-mode', |
|
| 87 | - 'm', |
|
| 88 | - InputOption::VALUE_OPTIONAL, |
|
| 89 | - 'Git hook run mode [php|shell|docker]' |
|
| 90 | - ) |
|
| 91 | - ->addOption( |
|
| 92 | - 'run-exec', |
|
| 93 | - 'e', |
|
| 94 | - InputOption::VALUE_OPTIONAL, |
|
| 95 | - 'The Docker command to start your container e.g. \'docker exec CONTAINER\'' |
|
| 96 | - ) |
|
| 97 | - ->addOption( |
|
| 98 | - 'run-path', |
|
| 99 | - 'p', |
|
| 100 | - InputOption::VALUE_OPTIONAL, |
|
| 101 | - 'The path to the CaptainHook executable \'/usr/bin/captainhook\'' |
|
| 102 | - ) |
|
| 45 | + ->setDescription('Install hooks to your .git/hooks directory') |
|
| 46 | + ->setHelp('Install git hooks to your .git/hooks directory') |
|
| 47 | + ->addArgument( |
|
| 48 | + 'hook', |
|
| 49 | + InputArgument::OPTIONAL, |
|
| 50 | + 'Limit the hooks you want to install. ' . |
|
| 51 | + 'You can specify multiple hooks with comma as delimiter. ' . |
|
| 52 | + 'By default all hooks get installed' |
|
| 53 | + ) |
|
| 54 | + ->addOption( |
|
| 55 | + 'only-enabled', |
|
| 56 | + null, |
|
| 57 | + InputOption::VALUE_NONE, |
|
| 58 | + 'Limit the hooks you want to install to those enabled in your conf. ' . |
|
| 59 | + 'By default all hooks get installed' |
|
| 60 | + ) |
|
| 61 | + ->addOption( |
|
| 62 | + 'force', |
|
| 63 | + 'f', |
|
| 64 | + InputOption::VALUE_NONE, |
|
| 65 | + 'Force install without confirmation' |
|
| 66 | + ) |
|
| 67 | + ->addOption( |
|
| 68 | + 'skip-existing', |
|
| 69 | + 's', |
|
| 70 | + InputOption::VALUE_NONE, |
|
| 71 | + 'Do not overwrite existing hooks' |
|
| 72 | + ) |
|
| 73 | + ->addOption( |
|
| 74 | + 'move-existing-to', |
|
| 75 | + null, |
|
| 76 | + InputOption::VALUE_OPTIONAL, |
|
| 77 | + 'Move existing hooks to given directory' |
|
| 78 | + ) |
|
| 79 | + ->addOption( |
|
| 80 | + 'bootstrap', |
|
| 81 | + 'b', |
|
| 82 | + InputOption::VALUE_OPTIONAL, |
|
| 83 | + 'Path to composers vendor/autoload.php' |
|
| 84 | + ) |
|
| 85 | + ->addOption( |
|
| 86 | + 'run-mode', |
|
| 87 | + 'm', |
|
| 88 | + InputOption::VALUE_OPTIONAL, |
|
| 89 | + 'Git hook run mode [php|shell|docker]' |
|
| 90 | + ) |
|
| 91 | + ->addOption( |
|
| 92 | + 'run-exec', |
|
| 93 | + 'e', |
|
| 94 | + InputOption::VALUE_OPTIONAL, |
|
| 95 | + 'The Docker command to start your container e.g. \'docker exec CONTAINER\'' |
|
| 96 | + ) |
|
| 97 | + ->addOption( |
|
| 98 | + 'run-path', |
|
| 99 | + 'p', |
|
| 100 | + InputOption::VALUE_OPTIONAL, |
|
| 101 | + 'The path to the CaptainHook executable \'/usr/bin/captainhook\'' |
|
| 102 | + ) |
|
| 103 | 103 | ->addOption( |
| 104 | 104 | 'run-git', |
| 105 | 105 | 'd', |
@@ -129,11 +129,11 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | $installer = new Installer($io, $config, $repo, $template); |
| 131 | 131 | $installer->setHook(IOUtil::argToString($input->getArgument('hook'))) |
| 132 | - ->setForce(IOUtil::argToBool($input->getOption('force'))) |
|
| 133 | - ->setSkipExisting(IOUtil::argToBool($input->getOption('skip-existing'))) |
|
| 134 | - ->setMoveExistingTo(IOUtil::argToString($input->getOption('move-existing-to'))) |
|
| 135 | - ->setOnlyEnabled(IOUtil::argToBool($input->getOption('only-enabled'))) |
|
| 136 | - ->run(); |
|
| 132 | + ->setForce(IOUtil::argToBool($input->getOption('force'))) |
|
| 133 | + ->setSkipExisting(IOUtil::argToBool($input->getOption('skip-existing'))) |
|
| 134 | + ->setMoveExistingTo(IOUtil::argToString($input->getOption('move-existing-to'))) |
|
| 135 | + ->setOnlyEnabled(IOUtil::argToBool($input->getOption('only-enabled'))) |
|
| 136 | + ->run(); |
|
| 137 | 137 | |
| 138 | 138 | return 0; |
| 139 | 139 | } catch (Exception $e) { |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | if (empty($directories)) { |
| 112 | 112 | return $files; |
| 113 | 113 | } |
| 114 | - return array_filter($files, function ($file) use ($directories) { |
|
| 114 | + return array_filter($files, function($file) use ($directories) { |
|
| 115 | 115 | foreach ($directories as $directory) { |
| 116 | 116 | if (str_starts_with($file, $directory)) { |
| 117 | 117 | return true; |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * @param array<int, string>|string $types |
| 75 | 75 | * @param array<int, string>|string $filter |
| 76 | 76 | */ |
| 77 | - public function __construct(array|string $types, array|string $filter = []) |
|
| 77 | + public function __construct(array | string $types, array | string $filter = []) |
|
| 78 | 78 | { |
| 79 | 79 | $this->suffixes = is_array($types) ? $types : explode(',', $types); |
| 80 | 80 | $this->diffFilter = FilterUtil::filterFromConfigValue($filter); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | * @param array<int, string>|string $directories |
| 63 | 63 | * @param array<int, string>|string $diffFilter |
| 64 | 64 | */ |
| 65 | - public function __construct(array|string $directories, array|string $diffFilter = []) |
|
| 65 | + public function __construct(array | string $directories, array | string $diffFilter = []) |
|
| 66 | 66 | { |
| 67 | 67 | $this->directories = is_array($directories) ? $directories : [$directories]; |
| 68 | 68 | $this->diffFilter = FilterUtil::filterFromConfigValue($diffFilter); |