@@ -98,7 +98,7 @@ |
||
98 | 98 | * Check that given value is valid. |
99 | 99 | * |
100 | 100 | * @param $value mixed Checked value. |
101 | - * @return true On success validation. |
|
101 | + * @return boolean On success validation. |
|
102 | 102 | * @throws AssertException On assertion fail. |
103 | 103 | */ |
104 | 104 | public function validate($value) |
@@ -47,7 +47,7 @@ |
||
47 | 47 | public function configure(array $properties) |
48 | 48 | { |
49 | 49 | foreach ($properties as $name => $value) { |
50 | - $methodName = 'set' . ucfirst(strtolower($name)); |
|
50 | + $methodName = 'set'.ucfirst(strtolower($name)); |
|
51 | 51 | if (method_exists($this, $methodName)) { |
52 | 52 | $this->$methodName($value); |
53 | 53 | } |
@@ -50,8 +50,8 @@ |
||
50 | 50 | |
51 | 51 | if ($value === null) { |
52 | 52 | throw new InvalidKeyException( |
53 | - "Value '{$key}' does not correspond to a valid enum key. Presented keys: '" . |
|
54 | - implode("', '", array_keys($values)) . "'" |
|
53 | + "Value '{$key}' does not correspond to a valid enum key. Presented keys: '". |
|
54 | + implode("', '", array_keys($values))."'" |
|
55 | 55 | ); |
56 | 56 | } |
57 | 57 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | $fieldType = array_shift($declaration); |
23 | 23 | |
24 | - $class = "\\Zerg\\Field\\" . ucfirst(strtolower($fieldType)); |
|
24 | + $class = "\\Zerg\\Field\\".ucfirst(strtolower($fieldType)); |
|
25 | 25 | if (class_exists($class)) { |
26 | 26 | $reflection = new \ReflectionClass($class); |
27 | 27 | return $reflection->newInstanceArgs($declaration); |
@@ -79,8 +79,8 @@ |
||
79 | 79 | $field = $this->default; |
80 | 80 | } else { |
81 | 81 | throw new InvalidKeyException( |
82 | - "Value '{$key}' does not correspond to a valid conditional key. Presented keys: '" . |
|
83 | - implode("', '", array_keys($this->fields)) . "'" |
|
82 | + "Value '{$key}' does not correspond to a valid conditional key. Presented keys: '". |
|
83 | + implode("', '", array_keys($this->fields))."'" |
|
84 | 84 | ); |
85 | 85 | } |
86 | 86 |