Passed
Push — master ( 5e8129...bc1c32 )
by Vince
04:39 queued 02:56
created
src/core/auth/authorise.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
                         ->decode()
118 118
                     ;
119 119
                 }
120
-            }else{
120
+            } else{
121 121
 
122 122
                 $this->header->unauthorised();
123 123
             }
Please login to merge, or discard this patch.
src/core/endpoints/map.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $directory = $customService['directory'];
84 84
             $middleware = $customService['namespace'];
85 85
 
86
-        }else {
86
+        } else {
87 87
             $middleware = 'responsible';
88 88
 
89 89
             $endpoint = str_replace(
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                 if (class_exists($child) && method_exists($child, 'register')) {
142 142
                     self::$middleWareClass = new $child;
143 143
                     $this->registry[$point] = self::$middleWareClass->register();
144
-                }else{
144
+                } else{
145 145
                     (new exception\errorException)
146 146
                         ->setOptions($this->getOptions())
147 147
                         ->message("Class Error:: class {$child} needs to exist. See documentation on setting up a service.")
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
                         if( is_array($classScope) && isset($classScope[$position]) ) {
240 240
                             $endpointSettings['model']['scope'] = $classScope[$position];
241 241
 
242
-                        }else{
242
+                        } else{
243 243
 
244 244
                             if( !is_array($classScope) ) {
245 245
                                 $endpointSettings['model']['scope'] = $classScope;
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
                             if( is_array($classScope) && isset($classScope[$position]) ) {
300 300
                                 $scope = $classScope[$position];
301 301
 
302
-                            }else{
302
+                            } else{
303 303
 
304 304
                                 if( !is_array($classScope) ) {
305 305
                                     $scope = $classScope;
Please login to merge, or discard this patch.
src/responsible.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         // Authenticate the API connections
145 145
         try {
146 146
             $this->server->authenticate();
147
-        }catch (responsibleException | \Exception $e) {
147
+        } catch (responsibleException | \Exception $e) {
148 148
             self::$response = $e->getMessage();
149 149
             return;
150 150
         }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                 $this->getRateLimit(),
156 156
                 $this->getRateWindow()
157 157
             );
158
-        }catch (responsibleException | \Exception $e) {
158
+        } catch (responsibleException | \Exception $e) {
159 159
             self::$response = $e->getMessage();
160 160
             return;
161 161
         }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         // Build the APIs internal router
164 164
         try {
165 165
             $this->server->route($route);
166
-        }catch (responsibleException | \Exception $e) {
166
+        } catch (responsibleException | \Exception $e) {
167 167
             self::$response = $e->getMessage();
168 168
             return;
169 169
         }
Please login to merge, or discard this patch.