Completed
Push — master ( 06565c...caab92 )
by Marcus
07:07
created
src/Router.php 1 patch
Spacing   +4 added lines, -4 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,9 +75,9 @@  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
-                            $class = '\\HaaseIT\\HCSF\\Controller\\' . $regex['controller'];
80
+                            $class = '\\HaaseIT\\HCSF\\Controller\\'.$regex['controller'];
81 81
                             break;
82 82
                         }
83 83
                     }
Please login to merge, or discard this patch.