@@ -89,17 +89,17 @@ discard block |
||
| 89 | 89 | ->addDefaultsIfNotSet() |
| 90 | 90 | ->children() |
| 91 | 91 | ->arrayNode('directories') |
| 92 | - ->useAttributeAsKey('name') |
|
| 93 | - ->normalizeKeys(false) |
|
| 94 | - ->prototype('array') |
|
| 95 | - ->children() |
|
| 96 | - ->scalarNode('prefix')->defaultValue('')->end() |
|
| 97 | - ->scalarNode('suffix')->defaultValue('.php')->end() |
|
| 98 | - ->end() |
|
| 99 | - ->end() |
|
| 92 | + ->useAttributeAsKey('name') |
|
| 93 | + ->normalizeKeys(false) |
|
| 94 | + ->prototype('array') |
|
| 95 | + ->children() |
|
| 96 | + ->scalarNode('prefix')->defaultValue('')->end() |
|
| 97 | + ->scalarNode('suffix')->defaultValue('.php')->end() |
|
| 98 | + ->end() |
|
| 99 | + ->end() |
|
| 100 | 100 | ->end() |
| 101 | 101 | ->arrayNode('files') |
| 102 | - ->prototype('scalar')->end() |
|
| 102 | + ->prototype('scalar')->end() |
|
| 103 | 103 | ->end() |
| 104 | 104 | ->end() |
| 105 | 105 | ->end() |
@@ -107,17 +107,17 @@ discard block |
||
| 107 | 107 | ->addDefaultsIfNotSet() |
| 108 | 108 | ->children() |
| 109 | 109 | ->arrayNode('directories') |
| 110 | - ->useAttributeAsKey('name') |
|
| 111 | - ->normalizeKeys(false) |
|
| 112 | - ->prototype('array') |
|
| 113 | - ->children() |
|
| 114 | - ->scalarNode('prefix')->defaultValue('')->end() |
|
| 115 | - ->scalarNode('suffix')->defaultValue('.php')->end() |
|
| 116 | - ->end() |
|
| 117 | - ->end() |
|
| 110 | + ->useAttributeAsKey('name') |
|
| 111 | + ->normalizeKeys(false) |
|
| 112 | + ->prototype('array') |
|
| 113 | + ->children() |
|
| 114 | + ->scalarNode('prefix')->defaultValue('')->end() |
|
| 115 | + ->scalarNode('suffix')->defaultValue('.php')->end() |
|
| 116 | + ->end() |
|
| 117 | + ->end() |
|
| 118 | 118 | ->end() |
| 119 | 119 | ->arrayNode('files') |
| 120 | - ->prototype('scalar')->end() |
|
| 120 | + ->prototype('scalar')->end() |
|
| 121 | 121 | ->end() |
| 122 | 122 | ->end() |
| 123 | 123 | ->end() |
@@ -197,19 +197,19 @@ |
||
| 197 | 197 | public function initCodeCoverage(Filter $filter, array $config): CodeCoverage |
| 198 | 198 | { |
| 199 | 199 | // set up filter |
| 200 | - array_walk($config['include']['directories'], static function ($dir, $path, $filter): void { |
|
| 200 | + array_walk($config['include']['directories'], static function($dir, $path, $filter): void { |
|
| 201 | 201 | $filter->includeDirectory($path, $dir['suffix'], $dir['prefix']); |
| 202 | 202 | }, $filter); |
| 203 | 203 | |
| 204 | - array_walk($config['include']['files'], static function ($file, $key, $filter): void { |
|
| 204 | + array_walk($config['include']['files'], static function($file, $key, $filter): void { |
|
| 205 | 205 | $filter->includeFile($file); |
| 206 | 206 | }, $filter); |
| 207 | 207 | |
| 208 | - array_walk($config['exclude']['directories'], static function ($dir, $path, $filter): void { |
|
| 208 | + array_walk($config['exclude']['directories'], static function($dir, $path, $filter): void { |
|
| 209 | 209 | $filter->excludeDirectory($path, $dir['suffix'], $dir['prefix']); |
| 210 | 210 | }, $filter); |
| 211 | 211 | |
| 212 | - array_walk($config['exclude']['files'], static function ($file, $key, $filter): void { |
|
| 212 | + array_walk($config['exclude']['files'], static function($file, $key, $filter): void { |
|
| 213 | 213 | $filter->excludeFile($file); |
| 214 | 214 | }, $filter); |
| 215 | 215 | |