@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | FileHelper::mkdir($this->_path); |
24 | 24 | |
25 | - foreach ($this->getItems() as $id => $config) { |
|
25 | + foreach ($this->getItems() as $id => $config) { |
|
26 | 26 | $type = 'Directory'; |
27 | 27 | if (isset($config['template']) || isset($config['copy'])) { |
28 | 28 | $type = 'File'; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | } |
32 | 32 | $defaults = [ |
33 | 33 | 'class' => "hidev\\components\\$type", |
34 | - 'path' => $this->_path . '/' . $id, |
|
34 | + 'path' => $this->_path.'/'.$id, |
|
35 | 35 | ]; |
36 | 36 | $config = array_merge($defaults, $config ?: []); |
37 | 37 | $object = Yii::createObject($config); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | $level = $die ? Logger::LEVEL_ERROR : Logger::LEVEL_WARNING; |
35 | - Yii::getLogger()->log('Failed to read file: ' . $path, $level, 'file'); |
|
35 | + Yii::getLogger()->log('Failed to read file: '.$path, $level, 'file'); |
|
36 | 36 | |
37 | 37 | return false; |
38 | 38 | } |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | unlink($tmp); |
65 | 65 | } |
66 | 66 | } |
67 | - Yii::warning('Written file: ' . $path, 'file'); |
|
67 | + Yii::warning('Written file: '.$path, 'file'); |
|
68 | 68 | |
69 | 69 | return true; |
70 | 70 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $path = rtrim(trim($path), '/'); |
82 | 82 | if (!file_exists($path)) { |
83 | 83 | mkdir($path, 0777, true); |
84 | - Yii::warning('Created dir: ' . $path . '/', 'file'); |
|
84 | + Yii::warning('Created dir: '.$path.'/', 'file'); |
|
85 | 85 | |
86 | 86 | return true; |
87 | 87 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | public static function symlink($src, $dst) |
99 | 99 | { |
100 | 100 | try { |
101 | - if(is_link($dst)) { |
|
101 | + if (is_link($dst)) { |
|
102 | 102 | unlink($dst); |
103 | 103 | } |
104 | 104 |