@@ -183,7 +183,7 @@ |
||
183 | 183 | return; |
184 | 184 | } |
185 | 185 | |
186 | - $propertyValues =& $this->offsetGet($iri); |
|
186 | + $propertyValues = & $this->offsetGet($iri); |
|
187 | 187 | $propertyValues = array_merge($propertyValues, $values); |
188 | 188 | } |
189 | 189 |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | /** |
168 | 168 | * Return whether a property exists |
169 | 169 | * |
170 | - * @param \stdClass|Iri|string $iri IRI |
|
170 | + * @param Iri $iri IRI |
|
171 | 171 | * @return boolean Property exists |
172 | 172 | */ |
173 | 173 | public function offsetExists($iri) |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | /** |
237 | 237 | * Set a particular property |
238 | 238 | * |
239 | - * @param \stdClass|Iri|string $iri IRI |
|
239 | + * @param Iri $iri IRI |
|
240 | 240 | * @param array $value Property values |
241 | 241 | */ |
242 | 242 | public function offsetSet($iri, $value) |
@@ -200,8 +200,7 @@ |
||
200 | 200 | { |
201 | 201 | $iri = IriFactory::create( |
202 | 202 | (($profile === null) || is_object($name)) ? |
203 | - $name : |
|
204 | - (object)[ |
|
203 | + $name : (object)[ |
|
205 | 204 | 'profile' => $profile, |
206 | 205 | 'name' => $name |
207 | 206 | ] |
@@ -117,14 +117,14 @@ |
||
117 | 117 | 'language' => $this->getLanguage(), |
118 | 118 | 'value' => $this->getValue(), |
119 | 119 | 'types' => array_map( |
120 | - function ($type) { |
|
120 | + function($type) { |
|
121 | 121 | return $type->profile.$type->name; |
122 | 122 | }, |
123 | 123 | $this->getType() |
124 | 124 | ), |
125 | 125 | 'properties' => $this->getProperties()->export(), |
126 | 126 | 'items' => array_map( |
127 | - function (ItemInterface $item) { |
|
127 | + function(ItemInterface $item) { |
|
128 | 128 | return $item->export(); |
129 | 129 | }, |
130 | 130 | $this->getChildren() |
@@ -106,7 +106,7 @@ |
||
106 | 106 | $profiledName = strval($iri); |
107 | 107 | $cursor = $this->nameToCursor[$profiledName]; |
108 | 108 | $propertyList[$profiledName] = array_map( |
109 | - function (ExportableInterface $value) { |
|
109 | + function(ExportableInterface $value) { |
|
110 | 110 | return $value->export(); |
111 | 111 | }, |
112 | 112 | $this->values[$cursor] |