@@ -96,19 +96,19 @@ discard block |
||
| 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 |
||
| 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; |