From 77c72ee5b2feabccd404f30f83ff89f5637dd0e0 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Tue, 1 Jun 2021 11:51:27 +0100 Subject: [PATCH] CodeStyle --- app/Services/ModuleService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/ModuleService.php b/app/Services/ModuleService.php index b2dd4f12fd..4abe300148 100644 --- a/app/Services/ModuleService.php +++ b/app/Services/ModuleService.php @@ -588,7 +588,7 @@ public function findByComponent(string $interface, Tree $tree, UserInterface $us * * @return Collection */ - public function findByInterface(string $interface, $include_disabled = false, $sort = false): Collection + public function findByInterface(string $interface, bool $include_disabled = false, bool $sort = false): Collection { $modules = $this->all($include_disabled) ->filter($this->interfaceFilter($interface)); @@ -741,9 +741,9 @@ private function customModules(): Collection * * @param string $filename * - * @return mixed + * @return ModuleInterface|null */ - private static function load(string $filename) + private static function load(string $filename): ?ModuleInterface { try { return include $filename;