@@ -165,7 +165,6 @@ discard block |
||
| 165 | 165 | * Delete an item at a particular offset |
| 166 | 166 | * |
| 167 | 167 | * @param int $offset Offset |
| 168 | - * @param ItemInterface $value Item |
|
| 169 | 168 | */ |
| 170 | 169 | public function offsetUnset($offset) |
| 171 | 170 | { |
@@ -193,6 +192,7 @@ discard block |
||
| 193 | 192 | * Return the first item, optionally of particular types |
| 194 | 193 | * |
| 195 | 194 | * @param array ...$types Item types |
| 195 | + * @param string $types |
|
| 196 | 196 | * @return ItemInterface Item |
| 197 | 197 | * @throws OutOfBoundsException If there are no matching items |
| 198 | 198 | * @api |
@@ -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() |