@@ -187,16 +187,16 @@ discard block |
||
187 | 187 | { |
188 | 188 | $pos = strpos($source, $rawTag) - 1; |
189 | 189 | echo substr($source, 0, $pos); |
190 | - return substr($source, ( $pos + strlen($rawTag) + 2)); |
|
190 | + return substr($source, ($pos + strlen($rawTag) + 2)); |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | public function getHref($type, $params) |
194 | 194 | { |
195 | 195 | $href = ''; |
196 | 196 | if (is_string($params)) { |
197 | - $href = ($this->app->type != 'app' ? '/' . $this->app->name : '' ) . $params; |
|
197 | + $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $params; |
|
198 | 198 | } elseif (empty($params['template']) && !empty($params['file'])) { |
199 | - $href = ($this->app->type != 'app' ? '/' . $this->app->name : '' ) . $params['file']; |
|
199 | + $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $params['file']; |
|
200 | 200 | } elseif (!empty($params['template']) && !empty($params['file'])) { |
201 | 201 | $href = $this->app->templatesPath . "/{$this->template->name}/{$type}/{$params['file']}"; |
202 | 202 | } |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | |
256 | 256 | $this->checkNeedLibs(); |
257 | 257 | $this->parseCss(); |
258 | - echo "\n <script src='" . Statics::file(($this->app->type != 'app' ? '/' . $this->app->name : '' ) . "/static/system/js/Inji.js") . "'></script>"; |
|
258 | + echo "\n <script src='" . Statics::file(($this->app->type != 'app' ? '/' . $this->app->name : '') . "/static/system/js/Inji.js") . "'></script>"; |
|
259 | 259 | } |
260 | 260 | |
261 | 261 | public function parseCss() |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | if (file_exists($path)) { |
280 | 280 | $this->loadedCss[$href] = $href; |
281 | 281 | $urls[$href] = $path; |
282 | - $timeStr.=filemtime($path); |
|
282 | + $timeStr .= filemtime($path); |
|
283 | 283 | } else { |
284 | 284 | echo "\n <link href='{$href}' rel='stylesheet' type='text/css' />"; |
285 | 285 | } |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | if (strpos($css, '//') !== false) |
331 | 331 | $href = $css; |
332 | 332 | else |
333 | - $href = ($this->app->type != 'app' ? '/' . $this->app->name : '' ) . $css; |
|
333 | + $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $css; |
|
334 | 334 | $hrefs[$href] = $href; |
335 | 335 | } |
336 | 336 | break; |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | if (strpos($css, '//') !== false) |
357 | 357 | $href = $css; |
358 | 358 | else |
359 | - $href = ($this->app->type != 'app' ? '/' . $this->app->name : '' ) . $css; |
|
359 | + $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $css; |
|
360 | 360 | $hrefs[$href] = $href; |
361 | 361 | } |
362 | 362 | break; |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | if (file_exists($path)) { |
418 | 418 | $nativeUrl[$script] = $script; |
419 | 419 | $urls[$script] = $path; |
420 | - $timeStr.=filemtime($path); |
|
420 | + $timeStr .= filemtime($path); |
|
421 | 421 | } else { |
422 | 422 | $noParsedScripts[$script] = $script; |
423 | 423 | } |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | if (!empty($script['name'])) { |
433 | 433 | $onLoadModules[$script['name']] = $script['name']; |
434 | 434 | } |
435 | - $timeStr.=filemtime($path); |
|
435 | + $timeStr .= filemtime($path); |
|
436 | 436 | } else { |
437 | 437 | $noParsedScripts[$script] = $script; |
438 | 438 | } |