Passed
Pull Request — master (#268)
by
unknown
03:12
created
src/Libraries/Module/ModuleManager.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      * @param string $srcPath
221 221
      * @param string $dstPath
222 222
      */
223
-    private function processTemplates(string $srcPath, string &$dstPath){
223
+    private function processTemplates(string $srcPath, string &$dstPath) {
224 224
         $dstPath = str_replace('.tpl', '.php', $dstPath);
225 225
         $content = $this->fs->get($srcPath);
226 226
         $processedContent = $this->replacePlaceholders($content);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
     private function replacePlaceholders(string $content): string
235 235
     {
236 236
         $placeholders = [
237
-            '{{MODULE_NAMESPACE}}' => $this->getBaseNamespace() .'\\' . $this->getModuleName(),
237
+            '{{MODULE_NAMESPACE}}' => $this->getBaseNamespace() . '\\' . $this->getModuleName(),
238 238
             '{{MODULE_NAME}}' => $this->getModuleName(),
239 239
         ];
240 240
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,8 +207,7 @@
 block discarded – undo
207 207
             } else {
208 208
                 if ($processTemplates) {
209 209
                     $this->processTemplates($srcPath, $dstPath);
210
-                }
211
-                else {
210
+                } else {
212 211
                     $this->fs->copy($srcPath, $dstPath);
213 212
                 }
214 213
                 $copiedFiles[] = $dstPath;
Please login to merge, or discard this patch.
src/Libraries/Database/Adapters/Idiorm/Statements/Result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function get(): array
32 32
     {
33
-        return array_map(function ($element) {
33
+        return array_map(function($element) {
34 34
             $item = clone $this;
35 35
             $item->updateOrmModel($element);
36 36
             return $item;
Please login to merge, or discard this patch.
src/Model/ModelCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     {
83 83
         $this->processModels();
84 84
 
85
-        $this->models = array_filter($this->models, function ($m) use ($model) {
85
+        $this->models = array_filter($this->models, function($m) use ($model) {
86 86
             return $m !== $model;
87 87
         });
88 88
 
Please login to merge, or discard this patch.
src/Model/QtModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
      */
93 93
     public function get(): ModelCollection
94 94
     {
95
-        $models = array_map(function ($item) {
95
+        $models = array_map(function($item) {
96 96
             return wrapToModel($item, static::class);
97 97
         }, $this->ormInstance->get());
98 98
 
Please login to merge, or discard this patch.
src/Paginator/Paginator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             ->offset($this->perPage * ($this->page - 1))
90 90
             ->get();
91 91
 
92
-            $models = array_map(function ($item) {
92
+            $models = array_map(function($item) {
93 93
                 return wrapToModel($item, $this->modelClass);
94 94
             }, $ormInstances);
95 95
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      */
170 170
     public function lastPageNumber(): int
171 171
     {
172
-        return (int)ceil($this->total() / $this->perPage);
172
+        return (int) ceil($this->total() / $this->perPage);
173 173
     }
174 174
 
175 175
     /**
Please login to merge, or discard this patch.
src/Libraries/Auth/Adapters/JwtAuthAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
     {
135 135
         $user = $this->authService->get('uuid', $uuid);
136 136
 
137
-        if($user) {
137
+        if ($user) {
138 138
             $this->setUpdatedTokens($user);
139 139
             return true;
140 140
         }
Please login to merge, or discard this patch.
src/Router/RouteDispatcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,10 +95,10 @@  discard block
 block discarded – undo
95 95
 
96 96
         return $loader->loadClassFromFile(
97 97
             $controllerPath,
98
-            function () {
98
+            function() {
99 99
                 return ControllerException::controllerNotFound(current_controller());
100 100
             },
101
-            function () {
101
+            function() {
102 102
                 return ControllerException::controllerNotDefined(current_controller());
103 103
             }
104 104
         );
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     private static function routeParams(): array
146 146
     {
147
-        return array_map(function ($param) {
147
+        return array_map(function($param) {
148 148
             return $param['value'];
149 149
         }, route_params());
150 150
     }
Please login to merge, or discard this patch.