@@ -65,7 +65,7 @@ |
||
65 | 65 | $this->getFormat(), |
66 | 66 | $path |
67 | 67 | ); |
68 | - }catch (ExceptionInterface $e){ |
|
68 | + } catch (ExceptionInterface $e){ |
|
69 | 69 | throw new RuntimeException(sprintf( |
70 | 70 | "There was an error saving files: \n\n reason: \n %s", |
71 | 71 | $e->getMessage() |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | try{ |
47 | 47 | return new Media($this->ffmpeg->open($path), $path, $is_tmp); |
48 | - }catch (ExceptionInterface $e){ |
|
48 | + } catch (ExceptionInterface $e){ |
|
49 | 49 | throw new RuntimeException(sprintf("There was an error opening this file: \n\n reason: \n %s", $e->getMessage())); |
50 | 50 | } |
51 | 51 | } |
@@ -185,7 +185,9 @@ discard block |
||
185 | 185 | { |
186 | 186 | static::makeDir($destination); |
187 | 187 | foreach (scandir($source) as $file) { |
188 | - if (in_array($file, [".", ".."])) continue; |
|
188 | + if (in_array($file, [".", ".."])) { |
|
189 | + continue; |
|
190 | + } |
|
189 | 191 | if (copy($source . $file, $destination . $file)) { |
190 | 192 | unlink($source . $file); |
191 | 193 | } |
@@ -207,7 +209,9 @@ discard block |
||
207 | 209 | } |
208 | 210 | |
209 | 211 | foreach (scandir($dir) as $item) { |
210 | - if (in_array($item, [".", ".."])) continue; |
|
212 | + if (in_array($item, [".", ".."])) { |
|
213 | + continue; |
|
214 | + } |
|
211 | 215 | if (!static::deleteDirectory($dir . DIRECTORY_SEPARATOR . $item)) { |
212 | 216 | return false; |
213 | 217 | } |