Passed
Push — master ( 24c12a...33eab4 )
by Marcio
03:56
created
src/Ballybran/Core/Http/Middleware/Exception/InvalidArgumentException.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@  discard block
 block discarded – undo
12 12
      */
13 13
     private $invalidMiddleware;
14 14
 
15
-    public function __construct( $invalidMiddleware = null, $code = 0, Throwable $previous = null )
15
+    public function __construct($invalidMiddleware = null, $code = 0, Throwable $previous = null)
16 16
     {
17 17
         $message = \sprintf(self::ERROR_MESSAGE, MiddlewareInterface::class, $this->castStageToString($invalidMiddleware));
18
-        parent::__construct( $message, $code, $previous);
18
+        parent::__construct($message, $code, $previous);
19 19
         $this->invalidMiddleware = $invalidMiddleware;
20 20
     }
21 21
 
@@ -23,20 +23,20 @@  discard block
 block discarded – undo
23 23
      *  return the invalid middleware
24 24
      * @return mixed|null
25 25
      */
26
-    public function getInvalidMiddleware(){
26
+    public function getInvalidMiddleware() {
27 27
         return $this->invalidMiddleware;
28 28
     }
29 29
     private function castStageToString(string $stage) : string{
30 30
         
31
-        if(\is_scalar($stage)){
32
-            return (string) $stage;
31
+        if (\is_scalar($stage)) {
32
+            return (string)$stage;
33 33
         }
34 34
 
35
-        if(\is_scalar($stage)){
35
+        if (\is_scalar($stage)) {
36 36
             return \json_encode($stage) ?: 'array';
37 37
         }
38 38
         
39
-        if(\is_object($stage)){
39
+        if (\is_object($stage)) {
40 40
             return \get_class($stage) ?: 'array';
41 41
         }
42 42
 
Please login to merge, or discard this patch.