Completed
Pull Request — master (#66)
by
unknown
03:12
created
Zewa/App.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -231,9 +231,9 @@
 block discarded – undo
231 231
     public function getConfiguration($config = null)
232 232
     {
233 233
         if ($config !== null) {
234
-            if (! empty($this->configuration->$config)) {
234
+            if (!empty($this->configuration->$config)) {
235 235
                 return $this->configuration->$config;
236
-            } elseif (! empty($this->files{$config})) {
236
+            } elseif (!empty($this->files{$config})) {
237 237
                 $vars = include $this->files{$config};
238 238
 
239 239
                 if ($vars === false) {
Please login to merge, or discard this patch.
Zewa/Router.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         if (!preg_match("/^[a-z0-9:_\/\.\[\]-]+$/i", $uri)
135 135
             || array_filter(
136 136
                 $uriChunks,
137
-                function ($uriChunk) {
137
+                function($uriChunk) {
138 138
                     if (strpos($uriChunk, '__') !== false) {
139 139
                         return true;
140 140
                     }
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
         $normalizedURI = ltrim(preg_replace('/\?.*/', '', $normalizedURI), '/');
220 220
 
221
-        if (! empty($this->configuration->routes)) {
221
+        if (!empty($this->configuration->routes)) {
222 222
             $normalizedURI = $this->discoverRoute($normalizedURI);
223 223
         }
224 224
         
@@ -237,11 +237,11 @@  discard block
 block discarded – undo
237 237
 
238 238
                 $uri = $reroute;
239 239
 
240
-                if (! empty($params)) {
240
+                if (!empty($params)) {
241 241
                     $pat = '/(\$\d+)/';
242 242
                     $uri = preg_replace_callback(
243 243
                         $pat,
244
-                        function () use (&$params) {
244
+                        function() use (&$params) {
245 245
                             $first = $params[0];
246 246
                             array_shift($params);
247 247
                             return $first;
Please login to merge, or discard this patch.