@@ -42,8 +42,8 @@ |
||
42 | 42 | |
43 | 43 | $checks = $this->runnerManager->findChecks(); |
44 | 44 | |
45 | - uasort($checks, function (CheckInterface $a, CheckInterface $b) { |
|
46 | - return ($a->getGroup() === $b->getGroup()) ? 0 : ($a->getGroup() < $b->getGroup()?-1:1); |
|
45 | + uasort($checks, function(CheckInterface $a, CheckInterface $b) { |
|
46 | + return ($a->getGroup() === $b->getGroup()) ? 0 : ($a->getGroup() < $b->getGroup() ?-1 : 1); |
|
47 | 47 | }); |
48 | 48 | |
49 | 49 | return $this->render('@TviMonitor/ui/index.html.twig', [ |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $groups = (array) (null === $groups ? [] : (\is_string($groups) ? [$groups] : $groups)); |
45 | 45 | $tags = (array) (null === $tags ? [] : (\is_string($tags) ? [$tags] : $tags)); |
46 | 46 | |
47 | - $check = array_filter($this->toArray(), static function (CheckInterface $c) use ($ids, $groups, $tags) { |
|
47 | + $check = array_filter($this->toArray(), static function(CheckInterface $c) use ($ids, $groups, $tags) { |
|
48 | 48 | $inIds = ($ids) ? \in_array($c->getId(), $ids, true) : true; |
49 | 49 | $inGroups = ($groups) ? \in_array($c->getGroup(), $groups, true) : true; |
50 | 50 | $inTags = ($tags) ? (bool) array_intersect($c->getTags(), $tags) : true; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | if ($groups) { |
66 | 66 | $groups = \is_string($groups) ? [$groups] : $groups; |
67 | 67 | |
68 | - return array_filter($this->groups, static function ($t) use ($groups) { |
|
68 | + return array_filter($this->groups, static function($t) use ($groups) { |
|
69 | 69 | return \in_array($t->getName(), $groups, true); |
70 | 70 | }); |
71 | 71 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | if ($tags) { |
84 | 84 | $tags = \is_string($tags) ? [$tags] : $tags; |
85 | 85 | |
86 | - return array_filter($this->tags, static function ($t) use ($tags) { |
|
86 | + return array_filter($this->tags, static function($t) use ($tags) { |
|
87 | 87 | return \in_array($t->getName(), $tags, true); |
88 | 88 | }); |
89 | 89 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | { |
147 | 147 | foreach ($checkConfs as $id => $setting) { |
148 | 148 | $serviceId = $setting['serviceId']; |
149 | - $checkProxy = new Proxy(function () use ($serviceId, $id) { |
|
149 | + $checkProxy = new Proxy(function() use ($serviceId, $id) { |
|
150 | 150 | $this->checks[$id] = $this->container->get($serviceId); |
151 | 151 | |
152 | 152 | return $this->checks[$id]; |