Completed
Pull Request — master (#790)
by
unknown
03:19
created
src/Activators/FileActivator.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.