@@ -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 | } |
@@ -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 | } |
@@ -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 |
@@ -93,7 +93,7 @@ |
||
93 | 93 | |
94 | 94 | if ($tags) { |
95 | 95 | $tags = $this->runnerManager->findTags($check->getTags()); |
96 | - $tags = array_map(static function ($t) { |
|
96 | + $tags = array_map(static function($t) { |
|
97 | 97 | return $t->getLabel(); |
98 | 98 | }, $tags); |
99 | 99 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $groups = (array) (null === $groups ? [] : (\is_string($groups) ? [$groups] : $groups)); |
51 | 51 | $tags = (array) (null === $tags ? [] : (\is_string($tags) ? [$tags] : $tags)); |
52 | 52 | |
53 | - $check = array_filter($this->toArray(), static function (CheckInterface $c) use ($alias, $groups, $tags) { |
|
53 | + $check = array_filter($this->toArray(), static function(CheckInterface $c) use ($alias, $groups, $tags) { |
|
54 | 54 | $inAlias = ($alias) ? \in_array($c->getId(), $alias, true) : true; |
55 | 55 | $inGroups = ($groups) ? \in_array($c->getGroup(), $groups, true) : true; |
56 | 56 | $inTags = ($tags) ? (bool) array_intersect($c->getTags(), $tags) : true; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | if ($groups) { |
72 | 72 | $groups = \is_string($groups) ? [$groups] : $groups; |
73 | 73 | |
74 | - return array_filter($this->groups, static function ($t) use ($groups) { |
|
74 | + return array_filter($this->groups, static function($t) use ($groups) { |
|
75 | 75 | return \in_array($t->getName(), $groups, true); |
76 | 76 | }); |
77 | 77 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | if ($tags) { |
90 | 90 | $tags = \is_string($tags) ? [$tags] : $tags; |
91 | 91 | |
92 | - return array_filter($this->tags, static function ($t) use ($tags) { |
|
92 | + return array_filter($this->tags, static function($t) use ($tags) { |
|
93 | 93 | return \in_array($t->getName(), $tags, true); |
94 | 94 | }); |
95 | 95 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | { |
122 | 122 | foreach ($checkServiceMap as $checkId => $check) { |
123 | 123 | $serviceId = $check['serviceId']; |
124 | - $checkProxy = new Proxy(function () use ($serviceId, $checkId) { |
|
124 | + $checkProxy = new Proxy(function() use ($serviceId, $checkId) { |
|
125 | 125 | $this->checks[$checkId] = $this->container->get($serviceId); |
126 | 126 | |
127 | 127 | return $this->checks[$checkId]; |
@@ -78,11 +78,11 @@ discard block |
||
78 | 78 | |
79 | 79 | $checkPligins = $this->checkPlugins; |
80 | 80 | |
81 | - $addChecks = function ($rootNode) use ($checkPligins, $builder) { |
|
81 | + $addChecks = function($rootNode) use ($checkPligins, $builder) { |
|
82 | 82 | foreach ($this->checkPluginClasses as $checkPluginClass) { |
83 | 83 | $checkPligin = new $checkPluginClass(); |
84 | 84 | |
85 | - $confMethods = array_filter(get_class_methods($checkPligin), static function ($n) { |
|
85 | + $confMethods = array_filter(get_class_methods($checkPligin), static function($n) { |
|
86 | 86 | return preg_match('/Conf$/', $n); |
87 | 87 | }); |
88 | 88 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $node = $builder |
109 | 109 | ->root('checks', 'array') |
110 | 110 | ->beforeNormalization() |
111 | - ->always(static function ($value) { |
|
111 | + ->always(static function($value) { |
|
112 | 112 | $value = $value ? $value : []; |
113 | 113 | foreach ($value as $k => $v) { |
114 | 114 | $newK = str_replace('(s)', '_factory', $k); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | try { |
110 | 110 | list($checks, $groups, $tags) = $this->getFilterParams($request); |
111 | 111 | |
112 | - $checks = array_filter($checks, static function ($i) { |
|
112 | + $checks = array_filter($checks, static function($i) { |
|
113 | 113 | return null !== $i; |
114 | 114 | }); |
115 | 115 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $tags = $check->getTags(); |
155 | 155 | |
156 | 156 | $d = ['check' => $check->getId(), 'label' => $check->getLabel(), 'group' => $check->getGroup(), 'tags' => $tags, 'Descr' => $check->getDescr()]; |
157 | - $d = array_filter($d, static function ($v) { |
|
157 | + $d = array_filter($d, static function($v) { |
|
158 | 158 | return !empty($v); |
159 | 159 | }); |
160 | 160 | $data[] = $d; |