@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | ->defaultValue(sys_get_temp_dir() . '/behat-code-coverage-cache') |
69 | 69 | ->end() |
70 | 70 | ->booleanNode('branchAndPathCoverage') |
71 | - ->defaultNull() // use null to mean auto |
|
71 | + ->defaultNull() // use null to mean auto |
|
72 | 72 | ->end() |
73 | 73 | ->arrayNode('filter') |
74 | 74 | ->addDefaultsIfNotSet() |
@@ -83,17 +83,17 @@ discard block |
||
83 | 83 | ->addDefaultsIfNotSet() |
84 | 84 | ->children() |
85 | 85 | ->arrayNode('directories') |
86 | - ->useAttributeAsKey('name') |
|
87 | - ->normalizeKeys(false) |
|
88 | - ->prototype('array') |
|
89 | - ->children() |
|
90 | - ->scalarNode('prefix')->defaultValue('')->end() |
|
91 | - ->scalarNode('suffix')->defaultValue('.php')->end() |
|
92 | - ->end() |
|
93 | - ->end() |
|
86 | + ->useAttributeAsKey('name') |
|
87 | + ->normalizeKeys(false) |
|
88 | + ->prototype('array') |
|
89 | + ->children() |
|
90 | + ->scalarNode('prefix')->defaultValue('')->end() |
|
91 | + ->scalarNode('suffix')->defaultValue('.php')->end() |
|
92 | + ->end() |
|
93 | + ->end() |
|
94 | 94 | ->end() |
95 | 95 | ->arrayNode('files') |
96 | - ->prototype('scalar')->end() |
|
96 | + ->prototype('scalar')->end() |
|
97 | 97 | ->end() |
98 | 98 | ->end() |
99 | 99 | ->end() |
@@ -101,17 +101,17 @@ discard block |
||
101 | 101 | ->addDefaultsIfNotSet() |
102 | 102 | ->children() |
103 | 103 | ->arrayNode('directories') |
104 | - ->useAttributeAsKey('name') |
|
105 | - ->normalizeKeys(false) |
|
106 | - ->prototype('array') |
|
107 | - ->children() |
|
108 | - ->scalarNode('prefix')->defaultValue('')->end() |
|
109 | - ->scalarNode('suffix')->defaultValue('.php')->end() |
|
110 | - ->end() |
|
111 | - ->end() |
|
104 | + ->useAttributeAsKey('name') |
|
105 | + ->normalizeKeys(false) |
|
106 | + ->prototype('array') |
|
107 | + ->children() |
|
108 | + ->scalarNode('prefix')->defaultValue('')->end() |
|
109 | + ->scalarNode('suffix')->defaultValue('.php')->end() |
|
110 | + ->end() |
|
111 | + ->end() |
|
112 | 112 | ->end() |
113 | 113 | ->arrayNode('files') |
114 | - ->prototype('scalar')->end() |
|
114 | + ->prototype('scalar')->end() |
|
115 | 115 | ->end() |
116 | 116 | ->end() |
117 | 117 | ->end() |
@@ -207,19 +207,19 @@ |
||
207 | 207 | public function initCodeCoverage(Filter $filter, array $filterConfig, ?bool $branchPathConfig, string $cacheDir, OutputInterface $output): CodeCoverage |
208 | 208 | { |
209 | 209 | // set up filter |
210 | - array_walk($filterConfig['include']['directories'], static function (array $dir, string $path, Filter $filter): void { |
|
210 | + array_walk($filterConfig['include']['directories'], static function(array $dir, string $path, Filter $filter): void { |
|
211 | 211 | $filter->includeDirectory($path, $dir['suffix'], $dir['prefix']); |
212 | 212 | }, $filter); |
213 | 213 | |
214 | - array_walk($filterConfig['include']['files'], static function (string $file, string $key, Filter $filter): void { |
|
214 | + array_walk($filterConfig['include']['files'], static function(string $file, string $key, Filter $filter): void { |
|
215 | 215 | $filter->includeFile($file); |
216 | 216 | }, $filter); |
217 | 217 | |
218 | - array_walk($filterConfig['exclude']['directories'], static function (array $dir, string $path, Filter $filter): void { |
|
218 | + array_walk($filterConfig['exclude']['directories'], static function(array $dir, string $path, Filter $filter): void { |
|
219 | 219 | $filter->excludeDirectory($path, $dir['suffix'], $dir['prefix']); |
220 | 220 | }, $filter); |
221 | 221 | |
222 | - array_walk($filterConfig['exclude']['files'], static function (string $file, string $key, Filter $filter): void { |
|
222 | + array_walk($filterConfig['exclude']['files'], static function(string $file, string $key, Filter $filter): void { |
|
223 | 223 | $filter->excludeFile($file); |
224 | 224 | }, $filter); |
225 | 225 |