Completed
Push — master ( 9620dc...f09c52 )
by Nicolas
04:04 queued 12s
created
src/Activators/FileActivator.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,9 @@  discard block
 block discarded – undo
75 75
 	 */
76 76
 	private function getModulesStatuses()
77 77
 	{
78
-		if(!$this->config->get('modules.cache.enabled')) return $this->readJson();
78
+		if(!$this->config->get('modules.cache.enabled')) {
79
+		    return $this->readJson();
80
+		}
79 81
 		
80 82
 		return $this->cache->remember($this->cacheKey, $this->cacheLifetime, function () {
81 83
             return $this->readJson();
@@ -109,7 +111,9 @@  discard block
 block discarded – undo
109 111
 	 */
110 112
 	private function readJson()
111 113
 	{
112
-		if(!$this->files->exists($this->statusesFile)) return [];
114
+		if(!$this->files->exists($this->statusesFile)) {
115
+		    return [];
116
+		}
113 117
 		return json_decode($this->files->get($this->statusesFile), true);
114 118
 	}
115 119
 
@@ -193,7 +197,9 @@  discard block
 block discarded – undo
193 197
      */
194 198
     public function delete(Module $module)
195 199
     {
196
-    	if(!isset($this->modulesStatuses[$module->getName()])) return;
200
+    	if(!isset($this->modulesStatuses[$module->getName()])) {
201
+    	    return;
202
+    	}
197 203
     	unset($this->modulesStatuses[$module->getName()]);
198 204
     	$this->writeJson();
199 205
     	$this->flushCache();
Please login to merge, or discard this patch.