This commit is contained in:
2022-10-05 15:08:53 +02:00
parent a90e87b1be
commit c1d96af85f
153 changed files with 3797 additions and 3874 deletions

View File

@@ -70,14 +70,14 @@ class ConfigRepository
private function getCharges(bool $onlyActive = false): array
{
return $onlyActive ?
array_filter($this->charges, function ($el) { return $el['active']; })
array_filter($this->charges, static function ($el) { return $el['active']; })
: $this->charges;
}
private function getResources(bool $onlyActive = false): array
{
return $onlyActive ?
array_filter($this->resources, function ($el) { return $el['active']; })
array_filter($this->resources, static function ($el) { return $el['active']; })
: $this->resources;
}