@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * Get field definition from FIELDS, including parent classes. |
| 33 | 33 | */ |
| 34 | - protected static function fieldType(string $field, bool $strict=false) |
|
| 34 | + protected static function fieldType(string $field, bool $strict = false) |
|
| 35 | 35 | { |
| 36 | 36 | $class = get_called_class(); |
| 37 | 37 | while ($class && $class != self::class) { |
@@ -51,11 +51,11 @@ discard block |
||
| 51 | 51 | private function fieldException($field, $message) |
| 52 | 52 | { |
| 53 | 53 | return new InvalidArgumentException( |
| 54 | - get_called_class()."->$field must $message" |
|
| 54 | + get_called_class() . "->$field must $message" |
|
| 55 | 55 | ); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - protected function setField(string $field, $value, bool $strict=true) |
|
| 58 | + protected function setField(string $field, $value, bool $strict = true) |
|
| 59 | 59 | { |
| 60 | 60 | if ($field == '@context') { |
| 61 | 61 | return; |
@@ -71,9 +71,9 @@ discard block |
||
| 71 | 71 | } elseif (is_array($type)) { # Set or Listing |
| 72 | 72 | if ($type[0] == 'Set') { |
| 73 | 73 | if (is_array($value)) { |
| 74 | - $class = 'JSKOS\\'.$type[1]; |
|
| 74 | + $class = 'JSKOS\\' . $type[1]; |
|
| 75 | 75 | $value = new Set( |
| 76 | - array_map(function ($m) use ($class) { |
|
| 76 | + array_map(function($m) use ($class) { |
|
| 77 | 77 | if (is_null($m)) { |
| 78 | 78 | return null; |
| 79 | 79 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | } else { |
| 134 | 134 | trigger_error( |
| 135 | - "Undefined property: ".get_called_class()."::$$field", |
|
| 135 | + "Undefined property: " . get_called_class() . "::$$field", |
|
| 136 | 136 | \E_USER_NOTICE |
| 137 | 137 | ); |
| 138 | 138 | } |