Completed
Pull Request — master (#2022)
by
unknown
08:53
created
src/Commands/BaseCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         return 'Application In Production';
65 65
     }
66 66
 
67
-    public function getConfirmableCallback(): \Closure|bool|null
67
+    public function getConfirmableCallback(): \Closure | bool | null
68 68
     {
69 69
         return null;
70 70
     }
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
     {
77 77
         if ($this instanceof ConfirmableCommand) {
78 78
             if ($this->isProhibited() ||
79
-                ! $this->confirmToProceed($this->getConfirmableLabel(), $this->getConfirmableCallback())) {
79
+                !$this->confirmToProceed($this->getConfirmableLabel(), $this->getConfirmableCallback())) {
80 80
                 return Command::FAILURE;
81 81
             }
82 82
         }
83 83
 
84
-        if (! is_null($info = $this->getInfo())) {
84
+        if (!is_null($info = $this->getInfo())) {
85 85
             $this->components->info($info);
86 86
         }
87 87
 
@@ -104,17 +104,17 @@  discard block
 block discarded – undo
104 104
             return;
105 105
         }
106 106
 
107
-        if (! empty($input->getArgument('module'))) {
107
+        if (!empty($input->getArgument('module'))) {
108 108
             return;
109 109
         }
110 110
 
111 111
         $selected_item = multisearch(
112 112
             label: 'Select Modules',
113
-            options: function (string $search_value) use ($modules) {
113
+            options: function(string $search_value) use ($modules) {
114 114
                 return collect([
115 115
                     self::ALL,
116 116
                     ...$modules,
117
-                ])->when(strlen($search_value) > 0, function (Collection &$modules) use ($search_value) {
117
+                ])->when(strlen($search_value) > 0, function(Collection & $modules) use ($search_value) {
118 118
                     return $modules->filter(fn ($item) => str_contains(strtolower($item), strtolower($search_value)));
119 119
                 })->values()->toArray();
120 120
             },
Please login to merge, or discard this patch.
config/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             'vite' => ['LOWER_NAME', 'STUDLY_NAME', 'KEBAB_NAME'],
45 45
             'json' => ['LOWER_NAME', 'STUDLY_NAME', 'KEBAB_NAME', 'MODULE_NAMESPACE', 'PROVIDER_NAMESPACE'],
46 46
             'views/index' => ['LOWER_NAME'],
47
-            'views/master' => ['LOWER_NAME', 'STUDLY_NAME', 'KEBAB_NAME',],
47
+            'views/master' => ['LOWER_NAME', 'STUDLY_NAME', 'KEBAB_NAME', ],
48 48
             'scaffold/config' => ['STUDLY_NAME'],
49 49
             'composer' => [
50 50
                 'LOWER_NAME',
Please login to merge, or discard this patch.
src/ModuleManifest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function getManifest(): array
68 68
     {
69
-        if (! is_null($this->manifest)) {
69
+        if (!is_null($this->manifest)) {
70 70
             return $this->manifest;
71 71
         }
72 72
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         // todo check this section store on module.php or not?
91 91
         $this->getModulesData()
92
-            ->each(function (array $manifest) {
92
+            ->each(function(array $manifest) {
93 93
                 if (empty($manifest['files'])) {
94 94
                     return;
95 95
                 }
@@ -102,17 +102,17 @@  discard block
 block discarded – undo
102 102
 
103 103
     public function getModulesData(): Collection
104 104
     {
105
-        if (! empty(self::$manifestData) && ! app()->runningUnitTests()) {
105
+        if (!empty(self::$manifestData) && !app()->runningUnitTests()) {
106 106
             return self::$manifestData;
107 107
         }
108 108
 
109 109
         self::$manifestData = $this->paths
110
-            ->flatMap(function ($path) {
110
+            ->flatMap(function($path) {
111 111
                 $manifests = $this->files->glob("{$path}/module.json");
112 112
                 is_array($manifests) || $manifests = [];
113 113
 
114 114
                 return collect($manifests)
115
-                    ->map(function ($manifest) {
115
+                    ->map(function($manifest) {
116 116
                         return [
117 117
                             'module_directory' => dirname($manifest),
118 118
                             ...$this->files->json($manifest),
Please login to merge, or discard this patch.