@@ -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 | |
@@ -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] |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | { |
| 187 | 187 | return (object)[ |
| 188 | 188 | 'items' => array_map( |
| 189 | - function (ItemInterface $item) { |
|
| 189 | + function(ItemInterface $item) { |
|
| 190 | 190 | return $item->toObject(); |
| 191 | 191 | }, |
| 192 | 192 | $this->items |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | if (count($types)) { |
| 231 | 231 | return array_filter( |
| 232 | 232 | $this->items, |
| 233 | - function (ItemInterface $item) use ($types) { |
|
| 233 | + function(ItemInterface $item) use ($types) { |
|
| 234 | 234 | return $item->isOfType(...$types); |
| 235 | 235 | } |
| 236 | 236 | ); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | protected static function createTypes(array $types) |
| 77 | 77 | { |
| 78 | 78 | return array_map( |
| 79 | - function ($type) { |
|
| 79 | + function($type) { |
|
| 80 | 80 | return (object)['profile' => self::MF2_PROFILE_URI, 'name' => $type]; |
| 81 | 81 | }, |
| 82 | 82 | $types |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | protected static function createProperty(array $propertyValues) |
| 153 | 153 | { |
| 154 | 154 | return array_map( |
| 155 | - function ($propertyValue) { |
|
| 155 | + function($propertyValue) { |
|
| 156 | 156 | if (is_array($propertyValue)) { |
| 157 | 157 | return isset($propertyValue['type']) ? |
| 158 | 158 | self::createItem($propertyValue) : self::tagLanguage($propertyValue); |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | { |
| 174 | 174 | $lang = null; |
| 175 | 175 | $values = self::createLanguage($values, $lang); |
| 176 | - return $lang ? array_map(function ($value) use ($lang) { |
|
| 176 | + return $lang ? array_map(function($value) use ($lang) { |
|
| 177 | 177 | return (object)['value' => $value, 'lang' => $lang]; |
| 178 | 178 | }, $values) : $values; |
| 179 | 179 | } |