Passed
Push — master ( ba3204...969249 )
by Thierry
02:16
created
src/Di/Container.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function has(string $sClass): bool
143 143
     {
144
-        if($this->xContainer != null && $this->xContainer->has($sClass))
144
+        if ($this->xContainer != null && $this->xContainer->has($sClass))
145 145
         {
146 146
             return true;
147 147
         }
@@ -172,13 +172,13 @@  discard block
 block discarded – undo
172 172
     {
173 173
         try
174 174
         {
175
-            if($this->xContainer != null && $this->xContainer->has($sClass))
175
+            if ($this->xContainer != null && $this->xContainer->has($sClass))
176 176
             {
177 177
                 return $this->xContainer->get($sClass);
178 178
             }
179 179
             return $this->offsetGet($sClass);
180 180
         }
181
-        catch(Exception|Throwable $e)
181
+        catch (Exception | Throwable $e)
182 182
         {
183 183
             $xTranslator = $this->g(Translator::class);
184 184
             $sMessage = $xTranslator->trans('errors.class.container', ['name' => $sClass]);
@@ -238,22 +238,22 @@  discard block
 block discarded – undo
238 238
      */
239 239
     public function make($xClass)
240 240
     {
241
-        if(is_string($xClass))
241
+        if (is_string($xClass))
242 242
         {
243 243
             $xClass = new ReflectionClass($xClass); // Create the reflection class instance
244 244
         }
245
-        if(!($xClass instanceof ReflectionClass))
245
+        if (!($xClass instanceof ReflectionClass))
246 246
         {
247 247
             return null;
248 248
         }
249 249
         // Use the Reflection class to get the parameters of the constructor
250
-        if(($constructor = $xClass->getConstructor()) === null)
250
+        if (($constructor = $xClass->getConstructor()) === null)
251 251
         {
252 252
             return $xClass->newInstance();
253 253
         }
254 254
         $parameters = $constructor->getParameters();
255 255
         $parameterInstances = [];
256
-        foreach($parameters as $parameter)
256
+        foreach ($parameters as $parameter)
257 257
         {
258 258
             // Get the parameter instance from the DI
259 259
             $parameterInstances[] = $this->get($parameter->getClass()->getName());
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,8 +177,7 @@
 block discarded – undo
177 177
                 return $this->xContainer->get($sClass);
178 178
             }
179 179
             return $this->offsetGet($sClass);
180
-        }
181
-        catch(Exception|Throwable $e)
180
+        } catch(Exception|Throwable $e)
182 181
         {
183 182
             $xTranslator = $this->g(Translator::class);
184 183
             $sMessage = $xTranslator->trans('errors.class.container', ['name' => $sClass]);
Please login to merge, or discard this patch.
src/Di/Traits/RegisterTrait.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,8 +118,7 @@
 block discarded – undo
118 118
         try
119 119
         {
120 120
             $this->val($sReflectionClass, new ReflectionClass($sClassName));
121
-        }
122
-        catch(ReflectionException $e)
121
+        } catch(ReflectionException $e)
123 122
         {
124 123
             $xTranslator = $this->g(Translator::class);
125 124
             $sMessage = $xTranslator->trans('errors.class.invalid', ['name' => $sClassName]);
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
     private function getCallableObjectOptions(array $aConfigOptions, array $aAnnotationOptions): array
37 37
     {
38 38
         $aOptions = [];
39
-        foreach($aConfigOptions as $sNames => $aFunctionOptions)
39
+        foreach ($aConfigOptions as $sNames => $aFunctionOptions)
40 40
         {
41 41
             $aFunctionNames = explode(',', $sNames); // Names are in comma-separated list.
42
-            foreach($aFunctionNames as $sFunctionName)
42
+            foreach ($aFunctionNames as $sFunctionName)
43 43
             {
44 44
                 $aOptions[$sFunctionName] = array_merge($aOptions[$sFunctionName] ?? [], $aFunctionOptions);
45 45
             }
46 46
         }
47
-        foreach($aAnnotationOptions as $sFunctionName => $aFunctionOptions)
47
+        foreach ($aAnnotationOptions as $sFunctionName => $aFunctionOptions)
48 48
         {
49 49
             $aOptions[$sFunctionName] = array_merge($aOptions[$sFunctionName] ?? [], $aFunctionOptions);
50 50
         }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $aMethods = $xCallableObject->getPublicMethods($aProtectedMethods);
67 67
         $aProperties = $xCallableObject->getProperties();
68 68
         [$bExcluded, $aAnnotationOptions, $aAnnotationProtected] = $xAnnotationReader->getAttributes($sClassName, $aMethods, $aProperties);
69
-        if($bExcluded)
69
+        if ($bExcluded)
70 70
         {
71 71
             $xCallableObject->configure('excluded', true);
72 72
             return;
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
         // Functions options
79 79
         $aCallableOptions = [];
80 80
         $aOptions = $this->getCallableObjectOptions($aOptions['functions'], $aAnnotationOptions);
81
-        foreach($aOptions as $sFunctionName => $aFunctionOptions)
81
+        foreach ($aOptions as $sFunctionName => $aFunctionOptions)
82 82
         {
83
-            foreach($aFunctionOptions as $sOptionName => $xOptionValue)
83
+            foreach ($aFunctionOptions as $sOptionName => $xOptionValue)
84 84
             {
85
-                if(substr($sOptionName, 0, 2) !== '__')
85
+                if (substr($sOptionName, 0, 2) !== '__')
86 86
                 {
87 87
                     // Options for javascript code.
88 88
                     $aCallableOptions[$sFunctionName][$sOptionName] = $xOptionValue;
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $sReflectionClass = $sClassName . '_ReflectionClass';
112 112
 
113 113
         // Make sure the registered class exists
114
-        if(isset($aOptions['include']))
114
+        if (isset($aOptions['include']))
115 115
         {
116 116
             require_once($aOptions['include']);
117 117
         }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         {
121 121
             $this->val($sReflectionClass, new ReflectionClass($sClassName));
122 122
         }
123
-        catch(ReflectionException $e)
123
+        catch (ReflectionException $e)
124 124
         {
125 125
             $xTranslator = $this->g(Translator::class);
126 126
             $sMessage = $xTranslator->trans('errors.class.invalid', ['name' => $sClassName]);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         $this->set($sClassName, function($c) use($sClassName, $sReflectionClass) {
147 147
             $xRegisteredObject = $this->make($c->g($sReflectionClass));
148 148
             // Initialize the object
149
-            if($xRegisteredObject instanceof CallableClass)
149
+            if ($xRegisteredObject instanceof CallableClass)
150 150
             {
151 151
                 // Set the protected attributes of the object
152 152
                 $cSetter = function($c, $sClassName) {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
             // Run the callback for class initialisation
161 161
             $aCallbacks = $c->g(CallbackManager::class)->getInitCallbacks();
162
-            foreach($aCallbacks as $xCallback)
162
+            foreach ($aCallbacks as $xCallback)
163 163
             {
164 164
                 call_user_func($xCallback, $xRegisteredObject);
165 165
             }
Please login to merge, or discard this patch.
src/Request/Call/JsCall.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,9 +105,9 @@
 block discarded – undo
105 105
      */
106 106
     public function addParameters(array $aParameters): JsCall
107 107
     {
108
-        foreach($aParameters as $xParameter)
108
+        foreach ($aParameters as $xParameter)
109 109
         {
110
-            if($xParameter instanceof JsCall)
110
+            if ($xParameter instanceof JsCall)
111 111
             {
112 112
                 $this->addParameter(Parameter::JS_VALUE, 'function(){' . $xParameter->getScript() . ';}');
113 113
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,8 +159,7 @@
 block discarded – undo
159 159
             if($xParameter instanceof JsCall)
160 160
             {
161 161
                 $this->addParameter(Parameter::JS_VALUE, 'function(){' . $xParameter->getScript() . ';}');
162
-            }
163
-            else
162
+            } else
164 163
             {
165 164
                 $this->pushParameter(Parameter::make($xParameter));
166 165
             }
Please login to merge, or discard this patch.
src/Request/Call/Call.php 2 patches
Spacing   +16 added lines, -17 removed lines patch added patch discarded remove patch
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
79 79
      */
80 80
     private function _makeUniqueJsVar(ParameterInterface $xParameter): ParameterInterface
81 81
     {
82
-        if($xParameter instanceof DomSelector)
82
+        if ($xParameter instanceof DomSelector)
83 83
         {
84 84
             $sParameterStr = $xParameter->getScript();
85
-            if(!isset($this->aVariables[$sParameterStr]))
85
+            if (!isset($this->aVariables[$sParameterStr]))
86 86
             {
87 87
                 // The value is not yet defined. A new variable is created.
88 88
                 $sVarName = 'jxnVar' . $this->nVarId;
@@ -109,18 +109,18 @@  discard block
 block discarded – undo
109 109
      */
110 110
     private function makePhrase(array $aArgs): string
111 111
     {
112
-        if(empty($aArgs))
112
+        if (empty($aArgs))
113 113
         {
114 114
             return '';
115 115
         }
116 116
         // The first array entry is the message.
117 117
         $sPhrase = array_shift($aArgs);
118
-        if(empty($aArgs))
118
+        if (empty($aArgs))
119 119
         {
120 120
             return $sPhrase;
121 121
         }
122 122
         $nParamId = 1;
123
-        foreach($aArgs as &$xParameter)
123
+        foreach ($aArgs as &$xParameter)
124 124
         {
125 125
             $xParameter = $this->_makeUniqueJsVar($xParameter);
126 126
             $xParameter = "'$nParamId':" . $xParameter->getScript();
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     private function makeMessage(): string
139 139
     {
140
-        if(!($sPhrase = $this->makePhrase($this->aMessageArgs)))
140
+        if (!($sPhrase = $this->makePhrase($this->aMessageArgs)))
141 141
         {
142 142
             return '';
143 143
         }
@@ -166,23 +166,22 @@  discard block
 block discarded – undo
166 166
         // This array will avoid declaring multiple variables with the same value.
167 167
         // The array key is the variable value, while the array value is the variable name.
168 168
         $this->aVariables = []; // Array of local variables.
169
-        foreach($this->aParameters as &$xParameter)
169
+        foreach ($this->aParameters as &$xParameter)
170 170
         {
171 171
             $xParameter = $this->_makeUniqueJsVar($xParameter);
172 172
         }
173 173
 
174 174
         $sMessageScript = $this->makeMessage();
175 175
         $sScript = parent::getScript();
176
-        if($this->sCondition === '__confirm__')
176
+        if ($this->sCondition === '__confirm__')
177 177
         {
178 178
             $sConfirmPhrase = $this->makePhrase($this->aConfirmArgs);
179 179
             $sScript = $this->xDialogLibraryManager->getQuestionLibrary()
180 180
                 ->confirm($sConfirmPhrase, $sScript, $sMessageScript);
181 181
         }
182
-        elseif($this->sCondition !== '')
182
+        elseif ($this->sCondition !== '')
183 183
         {
184
-            $sScript = empty($sMessageScript) ? 'if(' . $this->sCondition . '){' . $sScript . ';}' :
185
-                'if(' . $this->sCondition . '){' . $sScript . ';}else{' . $sMessageScript . ';}';
184
+            $sScript = empty($sMessageScript) ? 'if(' . $this->sCondition . '){' . $sScript . ';}' : 'if(' . $this->sCondition . '){' . $sScript . ';}else{' . $sMessageScript . ';}';
186 185
         }
187 186
         return $this->sVars . $sScript;
188 187
     }
@@ -194,9 +193,9 @@  discard block
 block discarded – undo
194 193
      */
195 194
     public function hasPageNumber(): bool
196 195
     {
197
-        foreach($this->aParameters as $xParameter)
196
+        foreach ($this->aParameters as $xParameter)
198 197
         {
199
-            if($xParameter->getType() === Parameter::PAGE_NUMBER)
198
+            if ($xParameter->getType() === Parameter::PAGE_NUMBER)
200 199
             {
201 200
                 return true;
202 201
             }
@@ -214,9 +213,9 @@  discard block
 block discarded – undo
214 213
     public function setPageNumber(int $nPageNumber): Call
215 214
     {
216 215
         // Set the value of the Parameter::PAGE_NUMBER parameter
217
-        foreach($this->aParameters as $xParameter)
216
+        foreach ($this->aParameters as $xParameter)
218 217
         {
219
-            if($xParameter->getType() === Parameter::PAGE_NUMBER)
218
+            if ($xParameter->getType() === Parameter::PAGE_NUMBER)
220 219
             {
221 220
                 $xParameter->setValue($nPageNumber);
222 221
                 break;
@@ -237,7 +236,7 @@  discard block
 block discarded – undo
237 236
     public function pages(int $nCurrentPage, int $nItemsPerPage, int $nItemsTotal): array
238 237
     {
239 238
         // Append the page number to the parameter list, if not yet given.
240
-        if(!$this->hasPageNumber())
239
+        if (!$this->hasPageNumber())
241 240
         {
242 241
             $this->addParameter(Parameter::PAGE_NUMBER, 0);
243 242
         }
@@ -256,7 +255,7 @@  discard block
 block discarded – undo
256 255
     public function paginate(int $nCurrentPage, int $nItemsPerPage, int $nItemsTotal): Paginator
257 256
     {
258 257
         // Append the page number to the parameter list, if not yet given.
259
-        if(!$this->hasPageNumber())
258
+        if (!$this->hasPageNumber())
260 259
         {
261 260
             $this->addParameter(Parameter::PAGE_NUMBER, 0);
262 261
         }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@  discard block
 block discarded – undo
89 89
                 $this->aVariables[$sParameterStr] = $sVarName;
90 90
                 $this->sVars .= "$sVarName=$xParameter;";
91 91
                 $this->nVarId++;
92
-            }
93
-            else
92
+            } else
94 93
             {
95 94
                 // The value is already defined. The corresponding variable is assigned.
96 95
                 $sVarName = $this->aVariables[$sParameterStr];
@@ -178,8 +177,7 @@  discard block
 block discarded – undo
178 177
             $sConfirmPhrase = $this->makePhrase($this->aConfirmArgs);
179 178
             $sScript = $this->xDialogLibraryManager->getQuestionLibrary()
180 179
                 ->confirm($sConfirmPhrase, $sScript, $sMessageScript);
181
-        }
182
-        elseif($this->sCondition !== '')
180
+        } elseif($this->sCondition !== '')
183 181
         {
184 182
             $sScript = empty($sMessageScript) ? 'if(' . $this->sCondition . '){' . $sScript . ';}' :
185 183
                 'if(' . $this->sCondition . '){' . $sScript . ';}else{' . $sMessageScript . ';}';
Please login to merge, or discard this patch.
src/Request/Call/Paginator.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     protected function updateTotalPages(): Paginator
147 147
     {
148
-        $this->nTotalPages = ($this->nItemsPerPage === 0 ? 0 : (int)ceil($this->nTotalItems / $this->nItemsPerPage));
148
+        $this->nTotalPages = ($this->nItemsPerPage === 0 ? 0 : (int) ceil($this->nTotalItems / $this->nItemsPerPage));
149 149
         return $this;
150 150
     }
151 151
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     protected function getPrevLink(): array
222 222
     {
223
-        if($this->nCurrentPage <= 1)
223
+        if ($this->nCurrentPage <= 1)
224 224
         {
225 225
             return ['disabled', $this->sPreviousText, ''];
226 226
         }
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      */
235 235
     protected function getNextLink(): array
236 236
     {
237
-        if($this->nCurrentPage >= $this->nTotalPages)
237
+        if ($this->nCurrentPage >= $this->nTotalPages)
238 238
         {
239 239
             return ['disabled', $this->sNextText, ''];
240 240
         }
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      */
251 251
     protected function getPageLink(int $nNumber): array
252 252
     {
253
-        if($nNumber < 1)
253
+        if ($nNumber < 1)
254 254
         {
255 255
             return ['disabled', $this->sEllipsysText, ''];
256 256
         }
@@ -269,9 +269,9 @@  discard block
 block discarded – undo
269 269
     {
270 270
         $aPageNumbers = [];
271 271
 
272
-        if($this->nTotalPages <= $this->nMaxPages)
272
+        if ($this->nTotalPages <= $this->nMaxPages)
273 273
         {
274
-            for($i = 0; $i < $this->nTotalPages; $i++)
274
+            for ($i = 0; $i < $this->nTotalPages; $i++)
275 275
             {
276 276
                 $aPageNumbers[] = $i + 1;
277 277
             }
@@ -280,11 +280,11 @@  discard block
 block discarded – undo
280 280
         }
281 281
 
282 282
         // Determine the sliding range, centered around the current page.
283
-        $nNumAdjacents = (int)floor(($this->nMaxPages - 4) / 2);
283
+        $nNumAdjacents = (int) floor(($this->nMaxPages - 4) / 2);
284 284
 
285 285
         $nSlidingStart = 1;
286 286
         $nSlidingEndOffset = $nNumAdjacents + 3 - $this->nCurrentPage;
287
-        if($nSlidingEndOffset < 0)
287
+        if ($nSlidingEndOffset < 0)
288 288
         {
289 289
             $nSlidingStart = $this->nCurrentPage - $nNumAdjacents;
290 290
             $nSlidingEndOffset = 0;
@@ -292,23 +292,23 @@  discard block
 block discarded – undo
292 292
 
293 293
         $nSlidingEnd = $this->nTotalPages;
294 294
         $nSlidingStartOffset = $this->nCurrentPage + $nNumAdjacents + 2 - $this->nTotalPages;
295
-        if($nSlidingStartOffset < 0)
295
+        if ($nSlidingStartOffset < 0)
296 296
         {
297 297
             $nSlidingEnd = $this->nCurrentPage + $nNumAdjacents;
298 298
             $nSlidingStartOffset = 0;
299 299
         }
300 300
 
301 301
         // Build the list of page numbers.
302
-        if($nSlidingStart > 1)
302
+        if ($nSlidingStart > 1)
303 303
         {
304 304
             $aPageNumbers[] = 1;
305 305
             $aPageNumbers[] = 0; // Ellipsys;
306 306
         }
307
-        for($i = $nSlidingStart - $nSlidingStartOffset; $i <= $nSlidingEnd + $nSlidingEndOffset; $i++)
307
+        for ($i = $nSlidingStart - $nSlidingStartOffset; $i <= $nSlidingEnd + $nSlidingEndOffset; $i++)
308 308
         {
309 309
             $aPageNumbers[] = $i;
310 310
         }
311
-        if($nSlidingEnd < $this->nTotalPages)
311
+        if ($nSlidingEnd < $this->nTotalPages)
312 312
         {
313 313
             $aPageNumbers[] = 0; // Ellipsys;
314 314
             $aPageNumbers[] = $this->nTotalPages;
@@ -341,13 +341,13 @@  discard block
 block discarded – undo
341 341
      */
342 342
     public function pages(): array
343 343
     {
344
-        if($this->nTotalPages < 2)
344
+        if ($this->nTotalPages < 2)
345 345
         {
346 346
             return [];
347 347
         }
348 348
 
349 349
         return array_map(function($aPage) {
350
-            return (object)['type' => $aPage[0], 'text' => $aPage[1], 'call' => $aPage[2]];
350
+            return (object) ['type' => $aPage[0], 'text' => $aPage[1], 'call' => $aPage[2]];
351 351
         }, $this->links());
352 352
     }
353 353
 
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
      */
376 376
     public function __toString()
377 377
     {
378
-        if($this->nTotalPages < 2)
378
+        if ($this->nTotalPages < 2)
379 379
         {
380 380
             return '';
381 381
         }
Please login to merge, or discard this patch.
src/Request/Call/Parameter.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -116,19 +116,19 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public static function make($xValue): ParameterInterface
118 118
     {
119
-        if($xValue instanceof ParameterInterface)
119
+        if ($xValue instanceof ParameterInterface)
120 120
         {
121 121
             return $xValue;
122 122
         }
123
-        if(is_numeric($xValue))
123
+        if (is_numeric($xValue))
124 124
         {
125 125
             return new Parameter(self::NUMERIC_VALUE, $xValue);
126 126
         }
127
-        if(is_string($xValue))
127
+        if (is_string($xValue))
128 128
         {
129 129
             return new Parameter(self::QUOTED_VALUE, $xValue);
130 130
         }
131
-        if(is_bool($xValue))
131
+        if (is_bool($xValue))
132 132
         {
133 133
             return new Parameter(self::BOOL_VALUE, $xValue);
134 134
         }
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      */
231 231
     protected function getNumericValueScript(): string
232 232
     {
233
-        return (string)$this->xValue;
233
+        return (string) $this->xValue;
234 234
     }
235 235
 
236 236
     /**
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     protected function getUnquotedValueScript(): string
242 242
     {
243
-        return (string)$this->xValue;
243
+        return (string) $this->xValue;
244 244
     }
245 245
 
246 246
     /**
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     protected function getPageNumberScript(): string
264 264
     {
265
-        return (string)$this->xValue;
265
+        return (string) $this->xValue;
266 266
     }
267 267
 
268 268
     /**
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     public function getScript(): string
274 274
     {
275 275
         $sMethodName = 'get' . $this->sType . 'Script';
276
-        if(!method_exists($this, $sMethodName))
276
+        if (!method_exists($this, $sMethodName))
277 277
         {
278 278
             return '';
279 279
         }
Please login to merge, or discard this patch.
src/Request/Handler/Psr/PsrRequestHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         // and the other classes will get this request from there.
73 73
         $this->di->val(ServerRequestInterface::class, $request);
74 74
 
75
-        if(!$this->xRequestHandler->canProcessRequest())
75
+        if (!$this->xRequestHandler->canProcessRequest())
76 76
         {
77 77
             // Unable to find a plugin to process the request
78 78
             throw new RequestException($this->xTranslator->trans('errors.request.plugin'));
Please login to merge, or discard this patch.
src/Request/Handler/Psr/PsrAjaxMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         // and the other classes will get this request from there.
65 65
         $this->di->val(ServerRequestInterface::class, $request);
66 66
 
67
-        if(!$this->xRequestHandler->canProcessRequest())
67
+        if (!$this->xRequestHandler->canProcessRequest())
68 68
         {
69 69
             // Unable to find a plugin to process the request
70 70
             return $handler->handle($request);
Please login to merge, or discard this patch.
src/Request/Handler/CallbackManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     public function popBootCallbacks(): array
67 67
     {
68
-        if(empty($this->aBootCallbacks))
68
+        if (empty($this->aBootCallbacks))
69 69
         {
70 70
             return [];
71 71
         }
Please login to merge, or discard this patch.