@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $builder |
| 66 | 66 | ->children() |
| 67 | 67 | ->booleanNode('branchAndPathCoverage') |
| 68 | - ->defaultNull() // use null to mean auto |
|
| 68 | + ->defaultNull() // use null to mean auto |
|
| 69 | 69 | ->end() |
| 70 | 70 | ->arrayNode('filter') |
| 71 | 71 | ->addDefaultsIfNotSet() |
@@ -80,17 +80,17 @@ discard block |
||
| 80 | 80 | ->addDefaultsIfNotSet() |
| 81 | 81 | ->children() |
| 82 | 82 | ->arrayNode('directories') |
| 83 | - ->useAttributeAsKey('name') |
|
| 84 | - ->normalizeKeys(false) |
|
| 85 | - ->prototype('array') |
|
| 86 | - ->children() |
|
| 87 | - ->scalarNode('prefix')->defaultValue('')->end() |
|
| 88 | - ->scalarNode('suffix')->defaultValue('.php')->end() |
|
| 89 | - ->end() |
|
| 90 | - ->end() |
|
| 83 | + ->useAttributeAsKey('name') |
|
| 84 | + ->normalizeKeys(false) |
|
| 85 | + ->prototype('array') |
|
| 86 | + ->children() |
|
| 87 | + ->scalarNode('prefix')->defaultValue('')->end() |
|
| 88 | + ->scalarNode('suffix')->defaultValue('.php')->end() |
|
| 89 | + ->end() |
|
| 90 | + ->end() |
|
| 91 | 91 | ->end() |
| 92 | 92 | ->arrayNode('files') |
| 93 | - ->prototype('scalar')->end() |
|
| 93 | + ->prototype('scalar')->end() |
|
| 94 | 94 | ->end() |
| 95 | 95 | ->end() |
| 96 | 96 | ->end() |
@@ -98,17 +98,17 @@ discard block |
||
| 98 | 98 | ->addDefaultsIfNotSet() |
| 99 | 99 | ->children() |
| 100 | 100 | ->arrayNode('directories') |
| 101 | - ->useAttributeAsKey('name') |
|
| 102 | - ->normalizeKeys(false) |
|
| 103 | - ->prototype('array') |
|
| 104 | - ->children() |
|
| 105 | - ->scalarNode('prefix')->defaultValue('')->end() |
|
| 106 | - ->scalarNode('suffix')->defaultValue('.php')->end() |
|
| 107 | - ->end() |
|
| 108 | - ->end() |
|
| 101 | + ->useAttributeAsKey('name') |
|
| 102 | + ->normalizeKeys(false) |
|
| 103 | + ->prototype('array') |
|
| 104 | + ->children() |
|
| 105 | + ->scalarNode('prefix')->defaultValue('')->end() |
|
| 106 | + ->scalarNode('suffix')->defaultValue('.php')->end() |
|
| 107 | + ->end() |
|
| 108 | + ->end() |
|
| 109 | 109 | ->end() |
| 110 | 110 | ->arrayNode('files') |
| 111 | - ->prototype('scalar')->end() |
|
| 111 | + ->prototype('scalar')->end() |
|
| 112 | 112 | ->end() |
| 113 | 113 | ->end() |
| 114 | 114 | ->end() |
@@ -213,19 +213,19 @@ discard block |
||
| 213 | 213 | public function initCodeCoverageV9(Filter $filter, array $filterConfig, ?bool $branchPathConfig, OutputInterface $output): CodeCoverage |
| 214 | 214 | { |
| 215 | 215 | // set up filter |
| 216 | - array_walk($filterConfig['include']['directories'], static function (array $dir, string $path, Filter $filter): void { |
|
| 216 | + array_walk($filterConfig['include']['directories'], static function(array $dir, string $path, Filter $filter): void { |
|
| 217 | 217 | $filter->includeDirectory($path, $dir['suffix'], $dir['prefix']); |
| 218 | 218 | }, $filter); |
| 219 | 219 | |
| 220 | - array_walk($filterConfig['include']['files'], static function (string $file, string $key, Filter $filter): void { |
|
| 220 | + array_walk($filterConfig['include']['files'], static function(string $file, string $key, Filter $filter): void { |
|
| 221 | 221 | $filter->includeFile($file); |
| 222 | 222 | }, $filter); |
| 223 | 223 | |
| 224 | - array_walk($filterConfig['exclude']['directories'], static function (array $dir, string $path, Filter $filter): void { |
|
| 224 | + array_walk($filterConfig['exclude']['directories'], static function(array $dir, string $path, Filter $filter): void { |
|
| 225 | 225 | $filter->excludeDirectory($path, $dir['suffix'], $dir['prefix']); |
| 226 | 226 | }, $filter); |
| 227 | 227 | |
| 228 | - array_walk($filterConfig['exclude']['files'], static function (string $file, string $key, Filter $filter): void { |
|
| 228 | + array_walk($filterConfig['exclude']['files'], static function(string $file, string $key, Filter $filter): void { |
|
| 229 | 229 | $filter->excludeFile($file); |
| 230 | 230 | }, $filter); |
| 231 | 231 | |
@@ -267,19 +267,19 @@ discard block |
||
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | // set up filter |
| 270 | - array_walk($config['include']['directories'], static function (array $dir, string $path, Filter $filter): void { |
|
| 270 | + array_walk($config['include']['directories'], static function(array $dir, string $path, Filter $filter): void { |
|
| 271 | 271 | $filter->addDirectoryToWhitelist($path, $dir['suffix'], $dir['prefix']); |
| 272 | 272 | }, $filter); |
| 273 | 273 | |
| 274 | - array_walk($config['include']['files'], static function (string $file, string $key, Filter $filter): void { |
|
| 274 | + array_walk($config['include']['files'], static function(string $file, string $key, Filter $filter): void { |
|
| 275 | 275 | $filter->addFileToWhitelist($file); |
| 276 | 276 | }, $filter); |
| 277 | 277 | |
| 278 | - array_walk($config['exclude']['directories'], static function (array $dir, string $path, Filter $filter): void { |
|
| 278 | + array_walk($config['exclude']['directories'], static function(array $dir, string $path, Filter $filter): void { |
|
| 279 | 279 | $filter->removeDirectoryFromWhitelist($path, $dir['suffix'], $dir['prefix']); |
| 280 | 280 | }, $filter); |
| 281 | 281 | |
| 282 | - array_walk($config['exclude']['files'], static function (string $file, string $key, Filter $filter): void { |
|
| 282 | + array_walk($config['exclude']['files'], static function(string $file, string $key, Filter $filter): void { |
|
| 283 | 283 | $filter->removeFileFromWhitelist($file); |
| 284 | 284 | }, $filter); |
| 285 | 285 | |