Completed
Push — master ( d5a58b...b5d275 )
by Marcus
01:53
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
                     $routes['literal'] = array_merge($routes['literal'], $customRoutes['literal']);
60 60
                     $routes['regex'] = array_merge($routes['regex'], $customRoutes['regex']);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             } else {
72 72
                 if (!empty($routes['regex'])) {
73 73
                     foreach ($routes['regex'] as $regex) {
74
-                        $result = preg_match('(^' . $regex['regex'] . '$)', $this->sPath, $matches);
74
+                        $result = preg_match('(^'.$regex['regex'].'$)', $this->sPath, $matches);
75 75
                         if ($result) {
76 76
                             $class = $regex['controller'];
77 77
                             break;
Please login to merge, or discard this patch.