Completed
Push — master ( e6cea4...6d9945 )
by Dmytro
01:56
created
framework/core/Route.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -96,19 +96,19 @@  discard block
 block discarded – undo
96 96
      * @return string URL.
97 97
      */
98 98
     public function getUrl($action = null, $id = null, $getParams = []) {
99
-        $url = $this->controller . "/";
99
+        $url = $this->controller."/";
100 100
 
101 101
         $action = is_null($action) ? $this->action : $action;
102 102
         if (!is_null($id)) {
103
-            $url.= $action . "/" . $id;
103
+            $url .= $action."/".$id;
104 104
         } else {
105
-            $url.= $action;
105
+            $url .= $action;
106 106
         }
107 107
 
108 108
         if (!empty($getParams)) {
109
-            $url.= "?";
109
+            $url .= "?";
110 110
             foreach ($getParams as $key => $value) {
111
-                $url.= $key . "=" . $value;
111
+                $url .= $key."=".$value;
112 112
             }
113 113
         }
114 114
 
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
      * @return string
122 122
      */
123 123
     public function tplPath() {
124
-        $path = $this->controller . "/" . $this->controller;
124
+        $path = $this->controller."/".$this->controller;
125 125
         if (!empty($this->action)) {
126
-            $path.= "_" . $this->action;
126
+            $path .= "_".$this->action;
127 127
         }
128 128
 
129 129
         return $path;
Please login to merge, or discard this patch.