@@ -39,8 +39,9 @@ |
||
| 39 | 39 | { |
| 40 | 40 | $dir = base_path($path); |
| 41 | 41 | |
| 42 | - if (!is_dir($dir)) |
|
| 43 | - $this->fileSystem->mkdir($dir, 0755); |
|
| 42 | + if (!is_dir($dir)) { |
|
| 43 | + $this->fileSystem->mkdir($dir, 0755); |
|
| 44 | + } |
|
| 44 | 45 | |
| 45 | 46 | return $dir; |
| 46 | 47 | } |
@@ -5,19 +5,19 @@ |
||
| 5 | 5 | |
| 6 | 6 | class FileSystem extends SymphonyFilesystem |
| 7 | 7 | {
|
| 8 | - public function clone($src, $dest){
|
|
| 9 | - $src = $this->getFullSourcePath($src); |
|
| 8 | + public function clone($src, $dest){
|
|
| 9 | + $src = $this->getFullSourcePath($src); |
|
| 10 | 10 | |
| 11 | - $dest = base_path($dest); |
|
| 11 | + $dest = base_path($dest); |
|
| 12 | 12 | |
| 13 | - if (is_dir($src)) {
|
|
| 14 | - $this->mirror($src, $dest."/".basename($src)); |
|
| 15 | - }else{
|
|
| 16 | - $this->copy($src, $dest); |
|
| 17 | - } |
|
| 18 | - } |
|
| 13 | + if (is_dir($src)) {
|
|
| 14 | + $this->mirror($src, $dest."/".basename($src)); |
|
| 15 | + }else{
|
|
| 16 | + $this->copy($src, $dest); |
|
| 17 | + } |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - public function getFullSourcePath($path){
|
|
| 21 | - return realpath(__DIR__ . "/../resources/" . $path); |
|
| 22 | - } |
|
| 20 | + public function getFullSourcePath($path){
|
|
| 21 | + return realpath(__DIR__ . "/../resources/" . $path); |
|
| 22 | + } |
|
| 23 | 23 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | if (is_dir($src)) {
|
| 14 | 14 | $this->mirror($src, $dest."/".basename($src)); |
| 15 | - }else{
|
|
| 15 | + } else{
|
|
| 16 | 16 | $this->copy($src, $dest); |
| 17 | 17 | } |
| 18 | 18 | } |