Completed
Push — master ( d9f7fe...0d6725 )
by Igor
02:53
created
src/Bundle/Debug/Wrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     public static function handleFatal()
46 46
     {
47 47
         $error = error_get_last();
48
-        if(null !== $error) {
48
+        if (null !== $error) {
49 49
             self::render($error["type"], $error["message"], $error["file"], $error["line"]);
50 50
         }
51 51
     }
Please login to merge, or discard this patch.
src/Bundle/Template/Native.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,22 +34,22 @@  discard block
 block discarded – undo
34 34
         $cacheName = $name;
35 35
         if (false === strpos($name, '.')) {
36 36
             if (!empty($name)) {
37
-                $name = '.' . $name;
37
+                $name = '.'.$name;
38 38
             }
39
-            $name = 'view' . $name . '.html.php';
39
+            $name = 'view'.$name.'.html.php';
40 40
             $this->isRouteView = true;
41 41
 
42 42
             $stack = debug_backtrace();
43 43
             foreach ($stack as $item) {
44
-                if (false !== stripos($item['file'], DIRECTORY_SEPARATOR . 'Route' . DIRECTORY_SEPARATOR)) {
45
-                    $cacheName = pathinfo($item['file'], PATHINFO_DIRNAME) . '/' . $name;
46
-                    $cacheName = explode('Route' . DIRECTORY_SEPARATOR, $cacheName)[1];
44
+                if (false !== stripos($item['file'], DIRECTORY_SEPARATOR.'Route'.DIRECTORY_SEPARATOR)) {
45
+                    $cacheName = pathinfo($item['file'], PATHINFO_DIRNAME).'/'.$name;
46
+                    $cacheName = explode('Route'.DIRECTORY_SEPARATOR, $cacheName)[1];
47 47
                     $cacheName = str_replace(['/', '\\'], '_', $cacheName);
48 48
                     break;
49 49
                 }
50 50
             }
51 51
         }
52
-        $path = $this->packageRoot . '/view/_cache/' . str_replace('/', '_', $cacheName);
52
+        $path = $this->packageRoot.'/view/_cache/'.str_replace('/', '_', $cacheName);
53 53
 
54 54
         if (!file_exists($path)) {
55 55
             $code = $this->compile($name, true, true);
@@ -96,13 +96,13 @@  discard block
 block discarded – undo
96 96
             $path = '';
97 97
             $stack = debug_backtrace();
98 98
             foreach ($stack as $item) {
99
-                if (false !== stripos($item['file'], DIRECTORY_SEPARATOR . 'Route' . DIRECTORY_SEPARATOR)) {
100
-                    $path = pathinfo($item['file'], PATHINFO_DIRNAME) . '/' . $name;
99
+                if (false !== stripos($item['file'], DIRECTORY_SEPARATOR.'Route'.DIRECTORY_SEPARATOR)) {
100
+                    $path = pathinfo($item['file'], PATHINFO_DIRNAME).'/'.$name;
101 101
                     break;
102 102
                 }
103 103
             }
104 104
         } else {
105
-            $path = $this->packageRoot . '/view/' . $name;
105
+            $path = $this->packageRoot.'/view/'.$name;
106 106
         }
107 107
 
108 108
         if (file_exists($path)) {
Please login to merge, or discard this patch.
src/Core/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         /**
66 66
          * Request URL.
67 67
          */
68
-        $this->url = '/' . $url;
68
+        $this->url = '/'.$url;
69 69
 
70 70
         /**
71 71
          * Get method.
Please login to merge, or discard this patch.
src/Core/Application.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,17 +22,17 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function __construct($appRoot)
24 24
     {
25
-        $appRoot = rtrim($appRoot, '/') . '/';
25
+        $appRoot = rtrim($appRoot, '/').'/';
26 26
         $this->packageRoot = $appRoot;
27 27
 
28 28
         /**
29 29
          * Register autoload to app/$package/src dir's.
30 30
          */
31
-        spl_autoload_register(function ($path) use ($appRoot) {
31
+        spl_autoload_register(function($path) use ($appRoot) {
32 32
             $path = explode('\\', $path);
33
-            array_shift($path);                           // Vendor
34
-            $package = $appRoot . array_shift($path);     // Package
35
-            $path = $package . '/src/' . implode('/', $path) . '.php';
33
+            array_shift($path); // Vendor
34
+            $package = $appRoot.array_shift($path); // Package
35
+            $path = $package.'/src/'.implode('/', $path).'.php';
36 36
             if (file_exists($path)) {
37 37
                 require_once $path;
38 38
             }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $request = new Request($languageList, $packageList, $url);
55 55
 
56
-        $this->packageRoot .= $request->package() . '/';
56
+        $this->packageRoot .= $request->package().'/';
57 57
 
58 58
         /**
59 59
          * Process request.
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
             /**
66 66
              * Path to router class.
67 67
              */
68
-            $path = $this->packageRoot . 'CustomRoute.php';
68
+            $path = $this->packageRoot.'CustomRoute.php';
69 69
             if (file_exists($path)) {
70 70
                 require $path;
71 71
                 /**
72 72
                  * Name of router class.
73 73
                  */
74
-                $route = $request->package() . '\\CustomRoute';
74
+                $route = $request->package().'\\CustomRoute';
75 75
                 /**
76 76
                  * @var IRoute $route
77 77
                  */
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $response->setStatusCode(404);
99 99
 
100 100
         $content = '404 Not Found';
101
-        if (file_exists($this->packageRoot . '/view/404.html.php')) {
101
+        if (file_exists($this->packageRoot.'/view/404.html.php')) {
102 102
             $content = (new Native($this->packageRoot))->getContent('404.html.php');
103 103
         }
104 104
 
Please login to merge, or discard this patch.