@@ -45,7 +45,7 @@ |
||
| 45 | 45 | ->isRequired() |
| 46 | 46 | ->beforeNormalization() |
| 47 | 47 | ->ifString() |
| 48 | - ->then(static function ($value) { |
|
| 48 | + ->then(static function($value) { |
|
| 49 | 49 | if (\is_string($value)) { |
| 50 | 50 | $value = [$value]; |
| 51 | 51 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | if ($groups) { |
| 67 | 67 | $groups = \is_string($groups) ? [$groups] : $groups; |
| 68 | 68 | |
| 69 | - return array_filter($this->groups, static function ($t) use ($groups) { |
|
| 69 | + return array_filter($this->groups, static function($t) use ($groups) { |
|
| 70 | 70 | return \in_array($t->getName(), $groups, true); |
| 71 | 71 | }); |
| 72 | 72 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | if ($tags) { |
| 85 | 85 | $tags = \is_string($tags) ? [$tags] : $tags; |
| 86 | 86 | |
| 87 | - return array_filter($this->tags, static function ($t) use ($tags) { |
|
| 87 | + return array_filter($this->tags, static function($t) use ($tags) { |
|
| 88 | 88 | return \in_array($t->getName(), $tags, true); |
| 89 | 89 | }); |
| 90 | 90 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | { |
| 131 | 131 | foreach ($checkServiceMap as $checkId => $check) { |
| 132 | 132 | $checkServiceId = $check['serviceId']; |
| 133 | - $checkProxy = new Proxy(function () use ($checkServiceId, $checkId) { |
|
| 133 | + $checkProxy = new Proxy(function() use ($checkServiceId, $checkId) { |
|
| 134 | 134 | $this->checks[$checkId] = $this->container->get($checkServiceId); |
| 135 | 135 | |
| 136 | 136 | return $this->checks[$checkId]; |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | ->children() |
| 42 | 42 | ->arrayNode('check') |
| 43 | 43 | ->beforeNormalization() |
| 44 | - ->always(static function ($value) { |
|
| 44 | + ->always(static function($value) { |
|
| 45 | 45 | if (isset($value['extensionName']) && !\is_array($value['extensionName'])) { |
| 46 | 46 | $value['extensionName'] = [$value['extensionName']]; |
| 47 | 47 | } |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - $res = array_filter($res, static function ($v) { |
|
| 72 | + $res = array_filter($res, static function($v) { |
|
| 73 | 73 | return \is_array($v) ? !empty($v) : (null !== $v); |
| 74 | 74 | }); |
| 75 | 75 | |
@@ -191,7 +191,7 @@ |
||
| 191 | 191 | */ |
| 192 | 192 | private function createFile(string $basePath, string $from, string $to, array $tplData) |
| 193 | 193 | { |
| 194 | - $r = array_filter($this->tpls, static function (SplFileInfo $f) use ($from) { |
|
| 194 | + $r = array_filter($this->tpls, static function(SplFileInfo $f) use ($from) { |
|
| 195 | 195 | return $f->getBasename() === $from; |
| 196 | 196 | }); |
| 197 | 197 | |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | $containerParams = []; |
| 94 | 94 | |
| 95 | 95 | if (isset($config['checks'])) { |
| 96 | - $config['checks'] = array_filter($config['checks'], static function ($i) { |
|
| 96 | + $config['checks'] = array_filter($config['checks'], static function($i) { |
|
| 97 | 97 | return $i; |
| 98 | 98 | }); |
| 99 | 99 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | $configurationClasses = $this->getConfigClasses(); |
| 82 | 82 | |
| 83 | - $addChecks = function ($rootNode) use ($configurationClasses, $builder) { |
|
| 83 | + $addChecks = function($rootNode) use ($configurationClasses, $builder) { |
|
| 84 | 84 | foreach ($configurationClasses as $conf) { |
| 85 | 85 | $conf = new $conf(); |
| 86 | 86 | foreach (get_class_methods($conf) as $method) { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $node = $builder |
| 100 | 100 | ->root('checks', 'array') |
| 101 | 101 | ->beforeNormalization() |
| 102 | - ->always(static function ($value) { |
|
| 102 | + ->always(static function($value) { |
|
| 103 | 103 | foreach ($value as $k => $v) { |
| 104 | 104 | $newK = str_replace('(s)', '_factory', $k); |
| 105 | 105 | if ($newK !== $k) { |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | ->isRequired() |
| 46 | 46 | ->beforeNormalization() |
| 47 | 47 | ->ifString() |
| 48 | - ->then(static function ($value) { |
|
| 48 | + ->then(static function($value) { |
|
| 49 | 49 | if (\is_string($value)) { |
| 50 | 50 | $value = [$value]; |
| 51 | 51 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | ->isRequired() |
| 46 | 46 | ->beforeNormalization() |
| 47 | 47 | ->ifString() |
| 48 | - ->then(static function ($value) { |
|
| 48 | + ->then(static function($value) { |
|
| 49 | 49 | if (\is_string($value)) { |
| 50 | 50 | $value = [$value]; |
| 51 | 51 | } |