@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | /** |
168 | 168 | * Return whether a property exists |
169 | 169 | * |
170 | - * @param \stdClass|string $iri IRI |
|
170 | + * @param \stdClass $iri IRI |
|
171 | 171 | * @return boolean Property exists |
172 | 172 | */ |
173 | 173 | public function offsetExists($iri) |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | /** |
181 | 181 | * Set a particular property |
182 | 182 | * |
183 | - * @param \stdClass|string $iri IRI |
|
183 | + * @param \stdClass $iri IRI |
|
184 | 184 | * @param array $value Property values |
185 | 185 | */ |
186 | 186 | public function offsetSet($iri, $value) |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | /** |
197 | 197 | * Get a particular property |
198 | 198 | * |
199 | - * @param \stdClass|string $iri IRI |
|
199 | + * @param \stdClass $iri IRI |
|
200 | 200 | * @return array Property values |
201 | 201 | */ |
202 | 202 | public function &offsetGet($iri) |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | return; |
161 | 161 | } |
162 | 162 | |
163 | - $propertyValues =& $this->offsetGet($iri); |
|
163 | + $propertyValues = & $this->offsetGet($iri); |
|
164 | 164 | $propertyValues = array_merge($propertyValues, $values); |
165 | 165 | } |
166 | 166 | |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | { |
226 | 226 | $values = $this->values; |
227 | 227 | return array_map( |
228 | - function ($cursor) use ($values) { |
|
228 | + function($cursor) use ($values) { |
|
229 | 229 | return $values[$cursor]; |
230 | 230 | }, |
231 | 231 | $this->nameToCursor |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | protected static function createTypes(array $types) |
90 | 90 | { |
91 | 91 | return array_map( |
92 | - function ($type) { |
|
92 | + function($type) { |
|
93 | 93 | return (object)['profile' => self::MF2_PROFILE_URI, 'name' => $type]; |
94 | 94 | }, $types |
95 | 95 | ); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | protected static function createProperty(array $propertyValues) |
124 | 124 | { |
125 | 125 | return array_map( |
126 | - function ($propertyValue) { |
|
126 | + function($propertyValue) { |
|
127 | 127 | if (is_array($propertyValue)) { |
128 | 128 | return isset($propertyValue['type']) ? self::createItem($propertyValue) : $propertyValue; |
129 | 129 | } |