@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | public function __construct($dir = null) |
16 | 16 | { |
17 | - $this->dir = $dir ?? getcwd().DIRECTORY_SEPARATOR.'account'; |
|
17 | + $this->dir = $dir ?? getcwd() . DIRECTORY_SEPARATOR . 'account'; |
|
18 | 18 | |
19 | 19 | if (!is_dir($this->dir)) { |
20 | 20 | /** @scrutinizer ignore-unhandled */ @mkdir($this->dir); |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | |
60 | 60 | private function getMetadataFilename($key) |
61 | 61 | { |
62 | - $key=str_replace('*', 'wildcard', $key); |
|
63 | - $file=$this->dir.DIRECTORY_SEPARATOR.$key; |
|
62 | + $key = str_replace('*', 'wildcard', $key); |
|
63 | + $file = $this->dir . DIRECTORY_SEPARATOR . $key; |
|
64 | 64 | return $file; |
65 | 65 | } |
66 | 66 | /** |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function getMetadata($key) |
70 | 70 | { |
71 | - $file=$this->getMetadataFilename($key); |
|
71 | + $file = $this->getMetadataFilename($key); |
|
72 | 72 | if (!file_exists($file)) { |
73 | 73 | return null; |
74 | 74 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function setMetadata($key, $value) |
82 | 82 | { |
83 | - $file=$this->getMetadataFilename($key); |
|
83 | + $file = $this->getMetadataFilename($key); |
|
84 | 84 | if (is_null($value)) { |
85 | 85 | //nothing to store, ensure file is removed |
86 | 86 | if (file_exists($file)) { |