Completed
Push — 4.0 ( 4d1c3b...6206cc )
by Marco
11:58
created
src/Router/RoutingTable.php 1 patch
Braces   +11 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,10 +66,11 @@  discard block
 block discarded – undo
66 66
 
67 67
         $regex = $this->readpath($folders);
68 68
 
69
-        if (isset($this->routes[$regex]))
70
-            return $this->routes[$regex];
71
-        else
72
-            return null;
69
+        if (isset($this->routes[$regex])) {
70
+                    return $this->routes[$regex];
71
+        } else {
72
+                    return null;
73
+        }
73 74
 
74 75
     }
75 76
 
@@ -79,7 +80,9 @@  discard block
 block discarded – undo
79 80
 
80 81
         $regex = $this->readpath($folders);
81 82
 
82
-        if (isset($this->routes[$regex])) unset($this->routes[$regex]);
83
+        if (isset($this->routes[$regex])) {
84
+            unset($this->routes[$regex]);
85
+        }
83 86
 
84 87
     }
85 88
 
@@ -97,7 +100,9 @@  discard block
 block discarded – undo
97 100
 
98 101
     private function readpath($folders = array(), &$value = null, $regex = '') {
99 102
 
100
-        if (!empty($folders) && empty($folders[0])) array_shift($folders);
103
+        if (!empty($folders) && empty($folders[0])) {
104
+            array_shift($folders);
105
+        }
101 106
 
102 107
         if (empty($folders)) {
103 108
 
Please login to merge, or discard this patch.
src/Service/AbstractService.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,9 @@
 block discarded – undo
104 104
 
105 105
         foreach ( $supported_methods as $method ) {
106 106
 
107
-            if ( method_exists($this, strtolower($method)) ) array_push($implemented_methods,$method);
107
+            if ( method_exists($this, strtolower($method)) ) {
108
+                array_push($implemented_methods,$method);
109
+            }
108 110
 
109 111
         }
110 112
 
Please login to merge, or discard this patch.