Completed
Push — master ( a3fe05...1bec27 )
by
unknown
07:48 queued 14s
created
src/helpers.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 use Illuminate\Foundation\Vite;
4 4
 use Illuminate\Support\Facades\Vite as ViteFacade;
5 5
 
6
-if (! function_exists('module_path')) {
6
+if (!function_exists('module_path')) {
7 7
     function module_path($name, $path = '')
8 8
     {
9 9
         $module = app('modules')->find($name);
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     }
13 13
 }
14 14
 
15
-if (! function_exists('config_path')) {
15
+if (!function_exists('config_path')) {
16 16
     /**
17 17
      * Get the configuration path.
18 18
      */
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     }
23 23
 }
24 24
 
25
-if (! function_exists('public_path')) {
25
+if (!function_exists('public_path')) {
26 26
     /**
27 27
      * Get the path to the public folder.
28 28
      */
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     }
33 33
 }
34 34
 
35
-if (! function_exists('module_vite')) {
35
+if (!function_exists('module_vite')) {
36 36
     /**
37 37
      * support for vite
38 38
      */
Please login to merge, or discard this patch.
src/Commands/UpdatePhpunitCoverage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@
 block discarded – undo
31 31
         $phpunitXmlPath = base_path('phpunit.xml');
32 32
         $modulesStatusPath = base_path('modules_statuses.json');
33 33
 
34
-        if (! file_exists($phpunitXmlPath)) {
34
+        if (!file_exists($phpunitXmlPath)) {
35 35
             $this->error("phpunit.xml file not found: {$phpunitXmlPath}");
36 36
 
37 37
             return 100;
38 38
         }
39 39
 
40
-        if (! file_exists($modulesStatusPath)) {
40
+        if (!file_exists($modulesStatusPath)) {
41 41
             $this->error("Modules statuses file not found: {$modulesStatusPath}");
42 42
 
43 43
             return 99;
Please login to merge, or discard this patch.
src/Commands/Actions/ModelPruneCommand.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return;
51 51
         }
52 52
 
53
-        if (! empty($input->getArgument('module'))) {
53
+        if (!empty($input->getArgument('module'))) {
54 54
             return;
55 55
         }
56 56
 
@@ -77,15 +77,15 @@  discard block
 block discarded – undo
77 77
      */
78 78
     protected function models(): Collection
79 79
     {
80
-        if (! empty($models = $this->option('model'))) {
81
-            return collect($models)->filter(function ($model) {
80
+        if (!empty($models = $this->option('model'))) {
81
+            return collect($models)->filter(function($model) {
82 82
                 return class_exists($model);
83 83
             })->values();
84 84
         }
85 85
 
86 86
         $except = $this->option('except');
87 87
 
88
-        if (! empty($models) && ! empty($except)) {
88
+        if (!empty($models) && !empty($except)) {
89 89
             throw new InvalidArgumentException('The --models and --except options cannot be combined.');
90 90
         }
91 91
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         }
110 110
 
111 111
         return collect(Finder::create()->in($path)->files()->name('*.php'))
112
-            ->map(function ($model) {
112
+            ->map(function($model) {
113 113
 
114 114
                 $namespace = config('modules.namespace');
115 115
 
@@ -120,13 +120,13 @@  discard block
 block discarded – undo
120 120
                 );
121 121
             })
122 122
             ->values()
123
-            ->when(! empty($except), function ($models) use ($except) {
124
-                return $models->reject(function ($model) use ($except) {
123
+            ->when(!empty($except), function($models) use ($except) {
124
+                return $models->reject(function($model) use ($except) {
125 125
                     return in_array($model, $except);
126 126
                 });
127
-            })->filter(function ($model) {
127
+            })->filter(function($model) {
128 128
                 return class_exists($model);
129
-            })->filter(function ($model) {
129
+            })->filter(function($model) {
130 130
                 return $this->isPrunable($model);
131 131
             })->values();
132 132
     }
Please login to merge, or discard this patch.