@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | } |
43 | 43 | } |
44 | 44 | |
45 | - protected function setField(string $field, $value, bool $strict=true) |
|
45 | + protected function setField(string $field, $value, bool $strict = true) |
|
46 | 46 | { |
47 | 47 | if ($field == '@context') { |
48 | 48 | return; |
@@ -63,9 +63,9 @@ discard block |
||
63 | 63 | } elseif (is_array($type)) { # Set or Listing |
64 | 64 | if ($type[0] == 'Set') { |
65 | 65 | if (is_array($value)) { |
66 | - $class = 'JSKOS\\'.$type[1]; |
|
66 | + $class = 'JSKOS\\' . $type[1]; |
|
67 | 67 | $value = new Set( |
68 | - array_map(function ($m) use ($class) { |
|
68 | + array_map(function($m) use ($class) { |
|
69 | 69 | if (is_null($m)) { |
70 | 70 | return null; |
71 | 71 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | }, $value) |
77 | 77 | ); |
78 | 78 | } elseif (!is_a($value, 'JSKOS\Set')) { |
79 | - $msg = get_called_class()."->$field must be a Set"; |
|
79 | + $msg = get_called_class() . "->$field must be a Set"; |
|
80 | 80 | throw new InvalidArgumentException($msg); |
81 | 81 | } else { |
82 | 82 | # TODO: check member types |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | if ($type == 'ConceptScheme') { |
101 | 101 | $value = new ConceptScheme($value); |
102 | 102 | } else { |
103 | - $msg = get_called_class()."->$field must match JSKOS\DataType::is$type"; |
|
103 | + $msg = get_called_class() . "->$field must match JSKOS\DataType::is$type"; |
|
104 | 104 | throw new InvalidArgumentException($msg); |
105 | 105 | } |
106 | 106 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | } else { |
127 | 127 | trigger_error( |
128 | - "Undefined property: ".get_called_class()."::$$field", |
|
128 | + "Undefined property: " . get_called_class() . "::$$field", |
|
129 | 129 | \E_USER_NOTICE |
130 | 130 | ); |
131 | 131 | } |