@@ -45,11 +45,11 @@ discard block |
||
| 45 | 45 | $lang = $this->container->lang; |
| 46 | 46 | $lang = $lang ?: $this->defaultLang; |
| 47 | 47 | |
| 48 | - if (!file_exists($viewName . $lang . '.ini')) { |
|
| 48 | + if (!file_exists($viewName.$lang.'.ini')) { |
|
| 49 | 49 | return; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | - $this->language = parse_ini_file($viewName . $lang . '.ini', true); |
|
| 52 | + $this->language = parse_ini_file($viewName.$lang.'.ini', true); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | if (!empty($this->language[$name])) { |
| 68 | 68 | return $this->language[$name]; |
| 69 | 69 | } else { |
| 70 | - throw new Exception($name . ' not defined into lang file'); |
|
| 70 | + throw new Exception($name.' not defined into lang file'); |
|
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | public function get($url, array $data = []) |
| 128 | 128 | { |
| 129 | 129 | if (count($data) > 0) { |
| 130 | - $this->setopt(CURLOPT_URL, $url . '?' . http_build_query($data)); |
|
| 130 | + $this->setopt(CURLOPT_URL, $url.'?'.http_build_query($data)); |
|
| 131 | 131 | } else { |
| 132 | 132 | $this->setopt(CURLOPT_URL, $url); |
| 133 | 133 | } |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | */ |
| 207 | 207 | public function put($url, array $data = []) |
| 208 | 208 | { |
| 209 | - $this->setopt(CURLOPT_URL, $url . '?' . http_build_query($data)); |
|
| 209 | + $this->setopt(CURLOPT_URL, $url.'?'.http_build_query($data)); |
|
| 210 | 210 | $this->setopt(CURLOPT_CUSTOMREQUEST, 'PUT'); |
| 211 | 211 | $this->_exec(); |
| 212 | 212 | } |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | */ |
| 242 | 242 | public function delete($url, array $data = []) |
| 243 | 243 | { |
| 244 | - $this->setopt(CURLOPT_URL, $url . '?' . http_build_query($data)); |
|
| 244 | + $this->setopt(CURLOPT_URL, $url.'?'.http_build_query($data)); |
|
| 245 | 245 | $this->setopt(CURLOPT_CUSTOMREQUEST, 'DELETE'); |
| 246 | 246 | $this->_exec(); |
| 247 | 247 | } |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | public function setBasicAuthentication($username, $password) |
| 260 | 260 | { |
| 261 | 261 | $this->setHttpAuth(self::AUTH_BASIC); |
| 262 | - $this->setopt(CURLOPT_USERPWD, $username . ':' . $password); |
|
| 262 | + $this->setopt(CURLOPT_USERPWD, $username.':'.$password); |
|
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | /** |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | */ |
| 289 | 289 | public function setHeader($key, $value) |
| 290 | 290 | { |
| 291 | - $this->_headers[$key] = $key . ': ' . $value; |
|
| 291 | + $this->_headers[$key] = $key.': '.$value; |
|
| 292 | 292 | $this->setopt(CURLOPT_HTTPHEADER, array_values($this->_headers)); |
| 293 | 293 | } |
| 294 | 294 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | return true; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | - $this->error = 'Failed to set file permissions for "' . $remote_file . '"'; |
|
| 153 | + $this->error = 'Failed to set file permissions for "'.$remote_file.'"'; |
|
| 154 | 154 | |
| 155 | 155 | return false; |
| 156 | 156 | } |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | $this->_stream = $func($this->_host, $this->_port, $this->_timeout); |
| 167 | 167 | |
| 168 | 168 | if (!$this->_stream) { |
| 169 | - $this->error = 'Failed to connect ' . $this->_host . '.'; |
|
| 169 | + $this->error = 'Failed to connect '.$this->_host.'.'; |
|
| 170 | 170 | |
| 171 | 171 | return false; |
| 172 | 172 | } |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | return true; |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | - $this->error = 'Failed to connect to ' . $this->_host . ' (login failed)'; |
|
| 182 | + $this->error = 'Failed to connect to '.$this->_host.' (login failed)'; |
|
| 183 | 183 | |
| 184 | 184 | return false; |
| 185 | 185 | } |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | return true; |
| 198 | 198 | } |
| 199 | 199 | |
| 200 | - $this->error = 'Failed to delete file "' . $remote_file . '"'; |
|
| 200 | + $this->error = 'Failed to delete file "'.$remote_file.'"'; |
|
| 201 | 201 | |
| 202 | 202 | return false; |
| 203 | 203 | } |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | return true; |
| 218 | 218 | } |
| 219 | 219 | |
| 220 | - $this->error = 'Failed to download file "' . $remote_file . '"'; |
|
| 220 | + $this->error = 'Failed to download file "'.$remote_file.'"'; |
|
| 221 | 221 | |
| 222 | 222 | return false; |
| 223 | 223 | } |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | return true; |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | - $this->error = 'Failed to create directory "' . $directory . '"'; |
|
| 256 | + $this->error = 'Failed to create directory "'.$directory.'"'; |
|
| 257 | 257 | |
| 258 | 258 | return false; |
| 259 | 259 | } |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | return true; |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | - $this->error = 'Failed to upload file "' . $local_file . '"'; |
|
| 276 | + $this->error = 'Failed to upload file "'.$local_file.'"'; |
|
| 277 | 277 | |
| 278 | 278 | return false; |
| 279 | 279 | } |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | return true; |
| 303 | 303 | } |
| 304 | 304 | |
| 305 | - $this->error = 'Failed to rename file "' . $old_name . '"'; |
|
| 305 | + $this->error = 'Failed to rename file "'.$old_name.'"'; |
|
| 306 | 306 | |
| 307 | 307 | return false; |
| 308 | 308 | } |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | return true; |
| 321 | 321 | } |
| 322 | 322 | |
| 323 | - $this->error = 'Failed to remove directory "' . $directory . '"'; |
|
| 323 | + $this->error = 'Failed to remove directory "'.$directory.'"'; |
|
| 324 | 324 | |
| 325 | 325 | return false; |
| 326 | 326 | } |
@@ -123,12 +123,12 @@ |
||
| 123 | 123 | |
| 124 | 124 | switch ($required) { |
| 125 | 125 | case true: |
| 126 | - $char = $char ? $char . ':' : $char; |
|
| 127 | - $name = $name ? $name . ':' : $name; |
|
| 126 | + $char = $char ? $char.':' : $char; |
|
| 127 | + $name = $name ? $name.':' : $name; |
|
| 128 | 128 | break; |
| 129 | 129 | case false: |
| 130 | - $char = $char ? $char . '::' : $char; |
|
| 131 | - $name = $name ? $name . '::' : $name; |
|
| 130 | + $char = $char ? $char.'::' : $char; |
|
| 131 | + $name = $name ? $name.'::' : $name; |
|
| 132 | 132 | break; |
| 133 | 133 | } |
| 134 | 134 | |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public static function link($name, $url, array $attributes = []) |
| 71 | 71 | { |
| 72 | - return static::openTag('link', array_merge($attributes, ['href' => $url])) . |
|
| 73 | - $name . |
|
| 72 | + return static::openTag('link', array_merge($attributes, ['href' => $url])). |
|
| 73 | + $name. |
|
| 74 | 74 | static::closeTag('link'); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | public static function scriptFile($file) |
| 118 | 118 | { |
| 119 | - return static::openTag('script', ['src' => $file, 'type' => 'text/javascript']) . static::closeTag('script'); |
|
| 119 | + return static::openTag('script', ['src' => $file, 'type' => 'text/javascript']).static::closeTag('script'); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
@@ -132,8 +132,8 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | public static function css($text, array $attributes = []) |
| 134 | 134 | { |
| 135 | - return static::openTag('style', array_merge($attributes, ['type' => 'text/css'])) . |
|
| 136 | - $text . |
|
| 135 | + return static::openTag('style', array_merge($attributes, ['type' => 'text/css'])). |
|
| 136 | + $text. |
|
| 137 | 137 | static::closeTag('style'); |
| 138 | 138 | } |
| 139 | 139 | |
@@ -152,8 +152,8 @@ discard block |
||
| 152 | 152 | public static function script($text, array $attributes = [], $type = 'text/javascript') |
| 153 | 153 | { |
| 154 | 154 | return static::openTag('script', |
| 155 | - array_merge($attributes, ['type' => $type])) . |
|
| 156 | - ' /*<![CDATA[*/ ' . $text . ' /*]]>*/ ' . |
|
| 155 | + array_merge($attributes, ['type' => $type])). |
|
| 156 | + ' /*<![CDATA[*/ '.$text.' /*]]>*/ '. |
|
| 157 | 157 | static::closeTag('script'); |
| 158 | 158 | } |
| 159 | 159 | |
@@ -184,6 +184,6 @@ discard block |
||
| 184 | 184 | */ |
| 185 | 185 | public static function title($name) |
| 186 | 186 | { |
| 187 | - return static::openTag('title') . $name . static::closeTag('title'); |
|
| 187 | + return static::openTag('title').$name.static::closeTag('title'); |
|
| 188 | 188 | } |
| 189 | 189 | } |
@@ -32,10 +32,10 @@ discard block |
||
| 32 | 32 | { |
| 33 | 33 | $result = ''; |
| 34 | 34 | foreach ($attributes AS $elem => $value) { |
| 35 | - $result .= ' ' . $elem . '="' . $value . '" '; |
|
| 35 | + $result .= ' '.$elem.'="'.$value.'" '; |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - return '<' . $name . $result . '/>'; |
|
| 38 | + return '<'.$name.$result.'/>'; |
|
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
@@ -53,10 +53,10 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | $result = ''; |
| 55 | 55 | foreach ($attributes AS $key => $value) { |
| 56 | - $result .= ' ' . $key . '="' . $value . '"'; |
|
| 56 | + $result .= ' '.$key.'="'.$value.'"'; |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - return '<' . $name . $result . '>'; |
|
| 59 | + return '<'.$name.$result.'>'; |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public static function closeTag($name) |
| 73 | 73 | { |
| 74 | - return '</' . $name . '>'; |
|
| 74 | + return '</'.$name.'>'; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | |
@@ -110,8 +110,8 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | public static function mailto($name, $email, array $attributes = []) |
| 112 | 112 | { |
| 113 | - return static::openTag('a', array_merge($attributes, ['href' => 'mailto:' . $email])) . |
|
| 114 | - $name . |
|
| 113 | + return static::openTag('a', array_merge($attributes, ['href' => 'mailto:'.$email])). |
|
| 114 | + $name. |
|
| 115 | 115 | static::closeTag('a'); |
| 116 | 116 | } |
| 117 | 117 | |
@@ -129,8 +129,8 @@ discard block |
||
| 129 | 129 | */ |
| 130 | 130 | public static function href($name, $url, array $attributes = []) |
| 131 | 131 | { |
| 132 | - return static::openTag('a', array_merge($attributes, ['href' => $url])) . |
|
| 133 | - $name . |
|
| 132 | + return static::openTag('a', array_merge($attributes, ['href' => $url])). |
|
| 133 | + $name. |
|
| 134 | 134 | static::closeTag('a'); |
| 135 | 135 | } |
| 136 | 136 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | */ |
| 149 | 149 | public static function heading($num, $value = null, array $attributes = []) |
| 150 | 150 | { |
| 151 | - return static::openTag('h' . $num, $attributes) . $value . static::closeTag('h' . $num); |
|
| 151 | + return static::openTag('h'.$num, $attributes).$value.static::closeTag('h'.$num); |
|
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | /** |
@@ -172,9 +172,9 @@ discard block |
||
| 172 | 172 | $areas .= static::tag('area', $coord); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - return static::image($alt, $source, array_merge($attributeImg, ['usemap' => $name])) . |
|
| 176 | - static::openTag('map', ['name' => $name, 'id' => $name]) . |
|
| 177 | - $areas . |
|
| 175 | + return static::image($alt, $source, array_merge($attributeImg, ['usemap' => $name])). |
|
| 176 | + static::openTag('map', ['name' => $name, 'id' => $name]). |
|
| 177 | + $areas. |
|
| 178 | 178 | static::closeTag('map'); |
| 179 | 179 | } |
| 180 | 180 | |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | $paramsConverted .= static::tag('param', ['name' => $key, 'value' => $val]); |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | - return static::openTag('object', $attributes) . $paramsConverted . static::closeTag('object'); |
|
| 222 | + return static::openTag('object', $attributes).$paramsConverted.static::closeTag('object'); |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | /** |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | { |
| 237 | 237 | $attributes['source'] = $source; |
| 238 | 238 | |
| 239 | - return static::openTag('embed', $attributes) . static::closeTag('embed'); |
|
| 239 | + return static::openTag('embed', $attributes).static::closeTag('embed'); |
|
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | /** |
@@ -271,6 +271,6 @@ discard block |
||
| 271 | 271 | $result .= static::closeTag('li'); |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | - return static::openTag($parentTag, $attributes) . $result . static::closeTag($parentTag); |
|
| 274 | + return static::openTag($parentTag, $attributes).$result.static::closeTag($parentTag); |
|
| 275 | 275 | } |
| 276 | 276 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public static function button($text, array $attributes = []) |
| 98 | 98 | { |
| 99 | - return static::openTag('button', $attributes) . $text . static::closeTag('button'); |
|
| 99 | + return static::openTag('button', $attributes).$text.static::closeTag('button'); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | return static::openTag('textarea', array_merge($attributes, [ |
| 117 | 117 | 'id' => $name, |
| 118 | 118 | 'name' => $name |
| 119 | - ])) . $text . static::closeTag('textarea'); |
|
| 119 | + ])).$text.static::closeTag('textarea'); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | public static function legend($text, array $attributes = []) |
| 134 | 134 | { |
| 135 | - return static::openTag('legend', $attributes) . $text . static::closeTag('legend'); |
|
| 135 | + return static::openTag('legend', $attributes).$text.static::closeTag('legend'); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | /** |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | { |
| 152 | 152 | return static::openTag('label', array_merge($attributes, [ |
| 153 | 153 | 'for' => $elemId |
| 154 | - ])) . $name . static::closeTag('label'); |
|
| 154 | + ])).$name.static::closeTag('label'); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | |
| 214 | 214 | $attributes['name'] .= array_key_exists('multiple', $attributes) ? '[]' : ''; |
| 215 | 215 | |
| 216 | - return static::openTag('select', $attributes) . $opts . static::closeTag('select'); |
|
| 216 | + return static::openTag('select', $attributes).$opts.static::closeTag('select'); |
|
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | /** |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | return static::openTag('optgroup', array_merge($attributes, [ |
| 243 | 243 | 'label' => $label |
| 244 | - ])) . $opts . static::closeTag('optgroup'); |
|
| 244 | + ])).$opts.static::closeTag('optgroup'); |
|
| 245 | 245 | } |
| 246 | 246 | |
| 247 | 247 | /** |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | { |
| 261 | 261 | return static::openTag('option', array_merge($attributes, [ |
| 262 | 262 | 'value' =>$value |
| 263 | - ])) . $text . static::closeTag('option'); |
|
| 263 | + ])).$text.static::closeTag('option'); |
|
| 264 | 264 | } |
| 265 | 265 | |
| 266 | 266 | /** |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | ); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - return static::beginTable($attributes) . $output . static::endTable(); |
|
| 56 | + return static::beginTable($attributes).$output.static::endTable(); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - return static::openTag('tr', $attributes) . $output . static::closeTag('tr'); |
|
| 88 | + return static::openTag('tr', $attributes).$output.static::closeTag('tr'); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | */ |
| 102 | 102 | public static function tableCell($text, array $attributes = []) |
| 103 | 103 | { |
| 104 | - return static::openTag('td', $attributes) . $text . static::closeTag('td'); |
|
| 104 | + return static::openTag('td', $attributes).$text.static::closeTag('td'); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | public static function tableHeading($text, array $attributes = []) |
| 119 | 119 | { |
| 120 | - return static::openTag('th', $attributes) . $text . static::closeTag('th'); |
|
| 120 | + return static::openTag('th', $attributes).$text.static::closeTag('th'); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
@@ -160,6 +160,6 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public static function tableCaption($text, array $attributes = []) |
| 162 | 162 | { |
| 163 | - return static::openTag('caption', $attributes) . $text . static::closeTag('caption'); |
|
| 163 | + return static::openTag('caption', $attributes).$text.static::closeTag('caption'); |
|
| 164 | 164 | } |
| 165 | 165 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | ]); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - return static::openTag('video', $attributes) . $srcs . $noCodec . static::closeTag('video'); |
|
| 68 | + return static::openTag('video', $attributes).$srcs.$noCodec.static::closeTag('video'); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | ]); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - return static::openTag('audio', $attributes) . $srcs . $noCodec . static::closeTag('audio'); |
|
| 101 | + return static::openTag('audio', $attributes).$srcs.$noCodec.static::closeTag('audio'); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
@@ -114,6 +114,6 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | public static function canvas(array $attributes = [], $noCodec = '') |
| 116 | 116 | { |
| 117 | - return static::openTag('canvas', $attributes) . $noCodec . static::closeTag('canvas'); |
|
| 117 | + return static::openTag('canvas', $attributes).$noCodec.static::closeTag('canvas'); |
|
| 118 | 118 | } |
| 119 | 119 | } |