@@ -50,7 +50,9 @@ discard block |
||
50 | 50 | */ |
51 | 51 | protected function getCached() |
52 | 52 | { |
53 | - if(!$this->config->get('modules.cache.enabled')) return $this->readJson(); |
|
53 | + if(!$this->config->get('modules.cache.enabled')) { |
|
54 | + return $this->readJson(); |
|
55 | + } |
|
54 | 56 | |
55 | 57 | return $this->cache->remember($this->cacheKey, $this->cacheLifetime, function () { |
56 | 58 | return $this->readJson(); |
@@ -84,7 +86,9 @@ discard block |
||
84 | 86 | */ |
85 | 87 | protected function readJson() |
86 | 88 | { |
87 | - if(!$this->files->exists($this->fileInstalled)) return []; |
|
89 | + if(!$this->files->exists($this->fileInstalled)) { |
|
90 | + return []; |
|
91 | + } |
|
88 | 92 | return json_decode($this->files->get($this->fileInstalled), true); |
89 | 93 | } |
90 | 94 | |
@@ -117,7 +121,9 @@ discard block |
||
117 | 121 | */ |
118 | 122 | public function isStatus(Module $module, $status) |
119 | 123 | { |
120 | - if(!isset($this->installed[$module->getName()])) return false; |
|
124 | + if(!isset($this->installed[$module->getName()])) { |
|
125 | + return false; |
|
126 | + } |
|
121 | 127 | return $this->installed[$module->getName()] == $status; |
122 | 128 | } |
123 | 129 | |
@@ -144,7 +150,9 @@ discard block |
||
144 | 150 | */ |
145 | 151 | public function delete(Module $module) |
146 | 152 | { |
147 | - if(!isset($this->installed[$module->getName()])) return; |
|
153 | + if(!isset($this->installed[$module->getName()])) { |
|
154 | + return; |
|
155 | + } |
|
148 | 156 | unset($this->installed[$module->getName()]); |
149 | 157 | $this->writeJson(); |
150 | 158 | $this->forgetCache(); |