Completed
Pull Request — master (#2042)
by Solomon
05:44
created
src/helpers.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 use Illuminate\Support\Facades\Vite as ViteFacade;
6 6
 use Nwidart\Modules\Laravel\Module;
7 7
 
8
-if (! function_exists('module')) {
8
+if (!function_exists('module')) {
9 9
     /**
10 10
      * Retrieves a module status or its instance.
11 11
      *
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
      * @param  bool  $instance  Whether to return the module's instance instead of the status. Defaults to false [status].
14 14
      * @return bool|Module The module instance or its status.
15 15
      */
16
-    function module(string $name, bool $instance = false): bool|Module
16
+    function module(string $name, bool $instance = false): bool | Module
17 17
     {
18 18
         $modules = app('modules');
19
-        if (! $modules->has($name)) {
19
+        if (!$modules->has($name)) {
20 20
             Log::error("Module '$name' not found.");
21 21
 
22 22
             return false;
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     }
27 27
 }
28 28
 
29
-if (! function_exists('module_path')) {
29
+if (!function_exists('module_path')) {
30 30
     function module_path(string $name, string $path = ''): string
31 31
     {
32 32
         $module = module($name, true);
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     }
36 36
 }
37 37
 
38
-if (! function_exists('config_path')) {
38
+if (!function_exists('config_path')) {
39 39
     /**
40 40
      * Get the configuration path.
41 41
      */
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     }
46 46
 }
47 47
 
48
-if (! function_exists('public_path')) {
48
+if (!function_exists('public_path')) {
49 49
     /**
50 50
      * Get the path to the public folder.
51 51
      */
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     }
56 56
 }
57 57
 
58
-if (! function_exists('module_vite')) {
58
+if (!function_exists('module_vite')) {
59 59
     /**
60 60
      * support for vite
61 61
      */
Please login to merge, or discard this patch.