@@ -65,19 +65,19 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | $this->hash = md5($this->sourcePath); |
| 67 | 67 | |
| 68 | - $this->publishPath = '/' . (($dir = $view->container->assetsDirName) ? $dir : 'assets') . '/' . $this->hash; |
|
| 68 | + $this->publishPath = '/'.(($dir = $view->container->assetsDirName) ? $dir : 'assets').'/'.$this->hash; |
|
| 69 | 69 | |
| 70 | 70 | $web = $this->view->container->kernel->getWebDir(); |
| 71 | 71 | |
| 72 | 72 | if (!file_exists($this->sourcePath)) { |
| 73 | - throw new Exception('Asset dir not exists: ' . $this->sourcePath); |
|
| 73 | + throw new Exception('Asset dir not exists: '.$this->sourcePath); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - if (!is_dir($web . $this->publishPath) && (!mkdir($web . $this->publishPath, 0777) && !is_dir($web . $this->publishPath))) { |
|
| 77 | - throw new Exception('Could not access to publish dir: ' . $this->publishPath); |
|
| 76 | + if (!is_dir($web.$this->publishPath) && (!mkdir($web.$this->publishPath, 0777) && !is_dir($web.$this->publishPath))) { |
|
| 77 | + throw new Exception('Could not access to publish dir: '.$this->publishPath); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - FileHelper::recurseCopyIfEdited($this->sourcePath, $web . $this->publishPath, $this->excludes); |
|
| 80 | + FileHelper::recurseCopyIfEdited($this->sourcePath, $web.$this->publishPath, $this->excludes); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | $this->js = [$this->js]; |
| 103 | 103 | } |
| 104 | 104 | foreach ($this->js AS $script) { |
| 105 | - $this->view->registerScriptFile($this->publishPath . $script, $this->isHead); |
|
| 105 | + $this->view->registerScriptFile($this->publishPath.$script, $this->isHead); |
|
| 106 | 106 | } |
| 107 | 107 | } |
| 108 | 108 | if ($this->css) { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $this->css = [$this->css]; |
| 111 | 111 | } |
| 112 | 112 | foreach ($this->css AS $style) { |
| 113 | - $this->view->registerCssFile($this->publishPath . $style, $this->isHead); |
|
| 113 | + $this->view->registerCssFile($this->publishPath.$style, $this->isHead); |
|
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | 116 | } |
@@ -28,7 +28,6 @@ |
||
| 28 | 28 | * |
| 29 | 29 | * @access public |
| 30 | 30 | * |
| 31 | - * @param array $params configuration array |
|
| 32 | 31 | * |
| 33 | 32 | * @result void |
| 34 | 33 | */ |
@@ -259,7 +259,7 @@ |
||
| 259 | 259 | public function setBasicAuthentication($username, $password) |
| 260 | 260 | { |
| 261 | 261 | $this->setHttpAuth(static::AUTH_BASIC); |
| 262 | - $this->setopt(CURLOPT_USERPWD, $username . ':' . $password); |
|
| 262 | + $this->setopt(CURLOPT_USERPWD, $username.':'.$password); |
|
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | /** |