@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Midnight\Block\Storage; |
| 5 | 5 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | private function buildPath($id): string |
| 44 | 44 | { |
| 45 | - return $this->getDirectory() . DIRECTORY_SEPARATOR . $id; |
|
| 45 | + return $this->getDirectory().DIRECTORY_SEPARATOR.$id; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | public function setDirectory($directory) |
| 61 | 61 | { |
| 62 | 62 | if (!file_exists($directory)) { |
| 63 | - set_error_handler(function () { /* ignore errors */ |
|
| 63 | + set_error_handler(function() { /* ignore errors */ |
|
| 64 | 64 | }); |
| 65 | 65 | if (!mkdir($directory) && !is_dir($directory)) { |
| 66 | 66 | throw new \RuntimeException(sprintf('Directory "%s" was not created', $directory)); |