@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | * @see ../docs/config/README.md |
| 11 | 11 | */ |
| 12 | 12 | abstract class Config extends Registry { |
| 13 | - private $locked = false; |
|
| 13 | + private $locked = false; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Config constructor. |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function __construct(array $arrayConfig = []) { |
| 21 | 21 | parent::__construct(); |
| 22 | - foreach($arrayConfig as $key => $value) |
|
| 22 | + foreach ($arrayConfig as $key => $value) |
|
| 23 | 23 | $this->offsetSet($key, $value); |
| 24 | 24 | |
| 25 | 25 | $this->onConstruct(); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | public function toArray() { |
| 44 | 44 | return array_map( |
| 45 | - function ($value) { |
|
| 45 | + function($value) { |
|
| 46 | 46 | // $value may be another Config object, if so then we toArray() it also. |
| 47 | 47 | return $this->hasToArray($value) ? $value->toArray() : $value; |
| 48 | 48 | }, |
@@ -24,12 +24,12 @@ |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public static function required($name) : Particle { |
| 27 | - $v = new Particle\Validator();; |
|
| 27 | + $v = new Particle\Validator(); ; |
|
| 28 | 28 | return new self($name, $v, $v->required($name)); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public static function optional($name) : Particle { |
| 32 | - $v = new Particle\Validator();; |
|
| 32 | + $v = new Particle\Validator(); ; |
|
| 33 | 33 | return new self($name, $v, $v->optional($name)); |
| 34 | 34 | } |
| 35 | 35 | |