@@ -81,7 +81,9 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function put($file, $content, $flag = null, $recursive = false) |
83 | 83 | { |
84 | - if ($recursive) $this->createParentFolder($file); |
|
84 | + if ($recursive) { |
|
85 | + $this->createParentFolder($file); |
|
86 | + } |
|
85 | 87 | return file_put_contents($this->getPath($file), $content, $flag); |
86 | 88 | } |
87 | 89 | |
@@ -92,7 +94,9 @@ discard block |
||
92 | 94 | * @return bool |
93 | 95 | */ |
94 | 96 | public function createParentFolder($file) { |
95 | - if ( ! file_exists($folder = dirname($file))) return mkdir(dirname($file), 0775, true); |
|
97 | + if ( ! file_exists($folder = dirname($file))) { |
|
98 | + return mkdir(dirname($file), 0775, true); |
|
99 | + } |
|
96 | 100 | } |
97 | 101 | |
98 | 102 | /** |