@@ -12,5 +12,5 @@ |
||
| 12 | 12 | | |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -require __DIR__.'/vendor/autoload.php'; |
|
| 15 | +require __DIR__ . '/vendor/autoload.php'; |
|
| 16 | 16 | |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | protected function isValid($file) |
| 15 | 15 | { |
| 16 | - return ! is_null(json_decode(@file_get_contents($file))); |
|
| 16 | + return !is_null(json_decode(@file_get_contents($file))); |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | $errors = []; |
| 37 | 37 | |
| 38 | 38 | foreach ($this->files as $file) { |
| 39 | - if (! is_file($file) || ! $this->isValid($file)) { |
|
| 39 | + if (!is_file($file) || !$this->isValid($file)) { |
|
| 40 | 40 | $errors[] = $file; |
| 41 | 41 | } |
| 42 | 42 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $doc = new \DOMDocument(); |
| 17 | 17 | |
| 18 | - if (! @$doc->load($file)) { |
|
| 18 | + if (!@$doc->load($file)) { |
|
| 19 | 19 | return false; |
| 20 | 20 | } |
| 21 | 21 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $builder->down()->withData('error', 'Contents mismatch'); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - if (! StorageFacade::disk($name)->delete($file)) { |
|
| 33 | + if (!StorageFacade::disk($name)->delete($file)) { |
|
| 34 | 34 | $builder->down()->withData('error', 'Could not delete file'); |
| 35 | 35 | } |
| 36 | 36 | } catch (\Exception $exception) { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $paths = $this->getParam('paths', []); |
| 20 | 20 | |
| 21 | 21 | foreach ($paths as $path) { |
| 22 | - if (! is_dir($path) || ! is_readable($path)) { |
|
| 22 | + if (!is_dir($path) || !is_readable($path)) { |
|
| 23 | 23 | $builder->down()->withData('path', $path); |
| 24 | 24 | } |
| 25 | 25 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $files = $this->getParam('files', []); |
| 20 | 20 | |
| 21 | 21 | foreach ($files as $file) { |
| 22 | - if (! is_file($file) || ! is_writeable($file)) { |
|
| 22 | + if (!is_file($file) || !is_writeable($file)) { |
|
| 23 | 23 | $builder->down()->withData('file', $file); |
| 24 | 24 | } |
| 25 | 25 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $paths = $this->getParam('paths', []); |
| 20 | 20 | |
| 21 | 21 | foreach ($paths as $path) { |
| 22 | - if (! is_dir($path) || ! is_writeable($path)) { |
|
| 22 | + if (!is_dir($path) || !is_writeable($path)) { |
|
| 23 | 23 | $builder->down()->withData('path', $path); |
| 24 | 24 | } |
| 25 | 25 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $files = $this->getParam('files', []); |
| 20 | 20 | |
| 21 | 21 | foreach ($files as $file) { |
| 22 | - if (! is_file($file) || ! is_readable($file)) { |
|
| 22 | + if (!is_file($file) || !is_readable($file)) { |
|
| 23 | 23 | $builder->down()->withData('file', $file); |
| 24 | 24 | } |
| 25 | 25 | } |