@@ -478,7 +478,7 @@ |
||
478 | 478 | return true; |
479 | 479 | } |
480 | 480 | |
481 | - $cache_key = 'canShow' . $this->xref . ':' . $this->tree->id() . ':' . $access_level; |
|
481 | + $cache_key = 'canShow' . $this->xref . ':' . $this->tree->id() . ':' . $access_level; |
|
482 | 482 | |
483 | 483 | return app('cache.array')->rememberForever($cache_key, function () use ($access_level) { |
484 | 484 | return $this->canShowRecord($access_level); |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | public static function getModuleByName(string $module_name): ?ModuleInterface |
380 | 380 | { |
381 | 381 | return self::all() |
382 | - ->filter(function (ModuleInterface $module) use ($module_name): bool { |
|
382 | + ->filter(function (ModuleInterface $module) use ($module_name) : bool { |
|
383 | 383 | return $module->isEnabled() && $module->getName() === $module_name; |
384 | 384 | }) |
385 | 385 | ->first(); |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | public static function getModuleByClassName(string $class_name): ?ModuleInterface |
396 | 396 | { |
397 | 397 | return self::all() |
398 | - ->filter(function (ModuleInterface $module) use ($class_name): bool { |
|
398 | + ->filter(function (ModuleInterface $module) use ($class_name) : bool { |
|
399 | 399 | return $module->isEnabled() && $module instanceof $class_name; |
400 | 400 | }) |
401 | 401 | ->first(); |
@@ -155,7 +155,7 @@ |
||
155 | 155 | // $ancestors starts array at index 1 we need to start at 0 |
156 | 156 | for ($i = 0; $i < $this->treesize; ++$i) { |
157 | 157 | $this->nodes[$i] = [ |
158 | - 'indi' => $ancestors->get($i+1), |
|
158 | + 'indi' => $ancestors->get($i + 1), |
|
159 | 159 | 'x' => 0, |
160 | 160 | 'y' => 0, |
161 | 161 | ]; |
@@ -291,7 +291,7 @@ |
||
291 | 291 | 'provider' => 'openstreetmap', |
292 | 292 | 'style' => 'mapnik', |
293 | 293 | ]; |
294 | - self::$map_providers = [ |
|
294 | + self::$map_providers = [ |
|
295 | 295 | 'openstreetmap' => [ |
296 | 296 | 'name' => 'OpenStreetMap', |
297 | 297 | 'styles' => ['mapnik' => 'Mapnik'], |