@@ -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() |
@@ -202,19 +202,19 @@ |
||
| 202 | 202 | public function initCodeCoverage(Filter $filter, array $filterConfig, ?bool $branchPathConfig, OutputInterface $output): CodeCoverage |
| 203 | 203 | { |
| 204 | 204 | // set up filter |
| 205 | - array_walk($filterConfig['include']['directories'], static function (array $dir, string $path, Filter $filter): void { |
|
| 205 | + array_walk($filterConfig['include']['directories'], static function(array $dir, string $path, Filter $filter): void { |
|
| 206 | 206 | $filter->includeDirectory($path, $dir['suffix'], $dir['prefix']); |
| 207 | 207 | }, $filter); |
| 208 | 208 | |
| 209 | - array_walk($filterConfig['include']['files'], static function (string $file, string $key, Filter $filter): void { |
|
| 209 | + array_walk($filterConfig['include']['files'], static function(string $file, string $key, Filter $filter): void { |
|
| 210 | 210 | $filter->includeFile($file); |
| 211 | 211 | }, $filter); |
| 212 | 212 | |
| 213 | - array_walk($filterConfig['exclude']['directories'], static function (array $dir, string $path, Filter $filter): void { |
|
| 213 | + array_walk($filterConfig['exclude']['directories'], static function(array $dir, string $path, Filter $filter): void { |
|
| 214 | 214 | $filter->excludeDirectory($path, $dir['suffix'], $dir['prefix']); |
| 215 | 215 | }, $filter); |
| 216 | 216 | |
| 217 | - array_walk($filterConfig['exclude']['files'], static function (string $file, string $key, Filter $filter): void { |
|
| 217 | + array_walk($filterConfig['exclude']['files'], static function(string $file, string $key, Filter $filter): void { |
|
| 218 | 218 | $filter->excludeFile($file); |
| 219 | 219 | }, $filter); |
| 220 | 220 | |