Completed
Push — master ( 1046fe...dee123 )
by dima
02:31
created
app/Controllers/ModuleController.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,9 @@
 block discarded – undo
30 30
     public function setParams(array $params = array()){
31 31
 
32 32
 	foreach($params as $param => $value){
33
-	    if((new \ReflectionClass($this))->hasProperty($param) === false)
34
-		throw new \Exception(sprintf("param '%s' not found in module '%s'", $param, self::class));
33
+	    if((new \ReflectionClass($this))->hasProperty($param) === false) {
34
+	    		throw new \Exception(sprintf("param '%s' not found in module '%s'", $param, self::class));
35
+	    }
35 36
 
36 37
 	    $this->{$param} = $value;
37 38
 	}
Please login to merge, or discard this patch.
app/Console/Commands/SeedResetCommand.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,8 @@
 block discarded – undo
34 34
 
35 35
 	if($class::reset()){
36 36
 	    $output->writeln(sprintf("Seed %s reset success!", $class));
37
-	} else
38
-	    $output->writeln("Command seed:reset fail to execute!");
37
+	} else {
38
+		    $output->writeln("Command seed:reset fail to execute!");
39
+	}
39 40
     }
40 41
 }
Please login to merge, or discard this patch.