@@ -30,8 +30,7 @@ |
||
30 | 30 | if (version_compare(PHP_VERSION, '5.3', '>=')) |
31 | 31 | { |
32 | 32 | error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED); |
33 | - } |
|
34 | - else |
|
33 | + } else |
|
35 | 34 | { |
36 | 35 | error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE); |
37 | 36 | } |
@@ -1402,7 +1402,7 @@ |
||
1402 | 1402 | new ClassMetaDataFactory(new StaticMethodLoader()), |
1403 | 1403 | new ConstraintValidatorFactory() |
1404 | 1404 | ); |
1405 | - }else{ |
|
1405 | + } else{ |
|
1406 | 1406 | $validator = new Validator( |
1407 | 1407 | new ClassMetadataFactory(new StaticMethodLoader()), |
1408 | 1408 | new ConstraintValidatorFactory(), |
@@ -30,8 +30,9 @@ |
||
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 | } |
@@ -34,7 +34,8 @@ |
||
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 | } |