Completed
Push — master ( a8f177...c2a983 )
by Marcus
16:16
created
src/Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@  discard block
 block discarded – undo
52 52
             }
53 53
         } else {
54 54
             $routes = require __DIR__.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'routes.php';
55
-            $customRoutesFile = PATH_BASEDIR . 'customization/routes.yml';
55
+            $customRoutesFile = PATH_BASEDIR.'customization/routes.yml';
56 56
             if (is_file($customRoutesFile)) {
57
-                try{
57
+                try {
58 58
                     $customRoutes = Yaml::parse(file_get_contents($customRoutesFile));
59 59
                     if (!empty($customRoutes['literal'])) {
60 60
                         $routes['literal'] = array_merge($routes['literal'], $customRoutes['literal']);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             } else {
76 76
                 if (!empty($routes['regex'])) {
77 77
                     foreach ($routes['regex'] as $regex) {
78
-                        $result = preg_match('(^' . $regex['regex'] . '$)', $this->sPath, $matches);
78
+                        $result = preg_match('(^'.$regex['regex'].'$)', $this->sPath, $matches);
79 79
                         if ($result) {
80 80
                             $class = $regex['controller'];
81 81
                             break;
Please login to merge, or discard this patch.