@@ -694,7 +694,7 @@ discard block |
||
694 | 694 | } catch (Throwable $exception) { |
695 | 695 | $module_name = basename(dirname($filename)); |
696 | 696 | $message = 'Fatal error in module: ' . $module_name; |
697 | - $message .= '<br>' . $exception; |
|
697 | + $message .= '<br>' . $exception; |
|
698 | 698 | FlashMessages::addMessage($message, 'danger'); |
699 | 699 | } |
700 | 700 | return null; |
@@ -805,7 +805,7 @@ discard block |
||
805 | 805 | public function findByName(string $module_name, bool $include_disabled = false): ?ModuleInterface |
806 | 806 | { |
807 | 807 | return $this->all($include_disabled) |
808 | - ->first(static function (ModuleInterface $module) use ($module_name): bool { |
|
808 | + ->first(static function (ModuleInterface $module) use ($module_name) : bool { |
|
809 | 809 | return $module->name() === $module_name; |
810 | 810 | }); |
811 | 811 | } |