Completed
Pull Request — master (#6)
by
unknown
25:42 queued 10:44
created
src/components/Directory.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/helpers/FileHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.