@@ -91,7 +91,7 @@ |
||
91 | 91 | $containerParams = []; |
92 | 92 | |
93 | 93 | if (isset($config['checks'])) { |
94 | - $config['checks'] = array_filter($config['checks'], function ($i) { |
|
94 | + $config['checks'] = array_filter($config['checks'], function($i) { |
|
95 | 95 | return $i; |
96 | 96 | }); |
97 | 97 |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $configurationClasses = $this->getConfigClasses(); |
80 | 80 | |
81 | - $addChecks = function ($rootNode) use ($configurationClasses, $builder) { |
|
81 | + $addChecks = function($rootNode) use ($configurationClasses, $builder) { |
|
82 | 82 | foreach ($configurationClasses as $conf) { |
83 | 83 | $conf = new $conf(); |
84 | 84 | foreach (get_class_methods($conf) as $method) { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $node = $builder |
98 | 98 | ->root('checks', 'array') |
99 | 99 | ->beforeNormalization() |
100 | - ->always(function ($value) { |
|
100 | + ->always(function($value) { |
|
101 | 101 | foreach ($value as $k => $v) { |
102 | 102 | $newK = str_replace('(s)', '_factory', $k); |
103 | 103 | if ($newK != $k) { |
@@ -67,7 +67,7 @@ |
||
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
70 | - $res = array_filter($res, function ($v) { |
|
70 | + $res = array_filter($res, function($v) { |
|
71 | 71 | return \is_array($v) ? !empty($v) : (null !== $v); |
72 | 72 | }); |
73 | 73 |
@@ -189,7 +189,7 @@ |
||
189 | 189 | */ |
190 | 190 | private function createFile(string $basePath, string $from, string $to, array $tplData) |
191 | 191 | { |
192 | - $r = array_filter($this->tpls, function (SplFileInfo $f) use ($from) { |
|
192 | + $r = array_filter($this->tpls, function(SplFileInfo $f) use ($from) { |
|
193 | 193 | return $f->getBasename() == $from; |
194 | 194 | }); |
195 | 195 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ->isRequired() |
44 | 44 | ->beforeNormalization() |
45 | 45 | ->ifString() |
46 | - ->then(function ($value) { |
|
46 | + ->then(function($value) { |
|
47 | 47 | if (\is_string($value)) { |
48 | 48 | $value = [$value]; |
49 | 49 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | ->children() |
40 | 40 | ->arrayNode('check') |
41 | 41 | ->beforeNormalization() |
42 | - ->always(function ($value) { |
|
42 | + ->always(function($value) { |
|
43 | 43 | if (isset($value['extensionName']) && !\is_array($value['extensionName'])) { |
44 | 44 | $value['extensionName'] = [$value['extensionName']]; |
45 | 45 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | if ($groups) { |
60 | 60 | $groups = \is_string($groups) ? [$groups] : $groups; |
61 | 61 | |
62 | - return array_filter($this->groups, function ($t) use ($groups) { |
|
62 | + return array_filter($this->groups, function($t) use ($groups) { |
|
63 | 63 | return \in_array($t->getName(), $groups); |
64 | 64 | }); |
65 | 65 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | if ($tags) { |
88 | 88 | $tags = \is_string($tags) ? [$tags] : $tags; |
89 | 89 | |
90 | - return array_filter($this->tags, function ($t) use ($tags) { |
|
90 | + return array_filter($this->tags, function($t) use ($tags) { |
|
91 | 91 | return \in_array($t->getName(), $tags); |
92 | 92 | }); |
93 | 93 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | { |
114 | 114 | foreach ($checkServiceMap as $checkId => $check) { |
115 | 115 | $checkServiceId = $check['serviceId']; |
116 | - $checkProxy = new Proxy(function () use ($checkServiceId, $checkId) { |
|
116 | + $checkProxy = new Proxy(function() use ($checkServiceId, $checkId) { |
|
117 | 117 | $this->checks[$checkId] = $this->container->get($checkServiceId); |
118 | 118 | |
119 | 119 | return $this->checks[$checkId]; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ->isRequired() |
44 | 44 | ->beforeNormalization() |
45 | 45 | ->ifString() |
46 | - ->then(function ($value) { |
|
46 | + ->then(function($value) { |
|
47 | 47 | if (\is_string($value)) { |
48 | 48 | $value = [$value]; |
49 | 49 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ->isRequired() |
44 | 44 | ->beforeNormalization() |
45 | 45 | ->ifString() |
46 | - ->then(function ($value) { |
|
46 | + ->then(function($value) { |
|
47 | 47 | if (\is_string($value)) { |
48 | 48 | $value = [$value]; |
49 | 49 | } |