@@ -178,7 +178,7 @@ |
||
| 178 | 178 | if (count($types)) { |
| 179 | 179 | return array_filter( |
| 180 | 180 | $this->items, |
| 181 | - function (ItemInterface $item) use ($types) { |
|
| 181 | + function(ItemInterface $item) use ($types) { |
|
| 182 | 182 | return $item->isOfType(...$types); |
| 183 | 183 | } |
| 184 | 184 | ); |
@@ -49,7 +49,6 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * Create alternate resource declaration from parser results |
| 51 | 51 | * |
| 52 | - * @param array[] $rels Parser results |
|
| 53 | 52 | * @return Alternate[] Alternate resource declarations |
| 54 | 53 | */ |
| 55 | 54 | public static function createFromParserResult(array $alternates) |
@@ -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 | } |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | /** |
| 185 | 185 | * Return whether a property exists |
| 186 | 186 | * |
| 187 | - * @param \stdClass|string $iri IRI |
|
| 187 | + * @param \stdClass $iri IRI |
|
| 188 | 188 | * @return boolean Property exists |
| 189 | 189 | */ |
| 190 | 190 | public function offsetExists($iri) |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | /** |
| 198 | 198 | * Set a particular property |
| 199 | 199 | * |
| 200 | - * @param \stdClass|string $iri IRI |
|
| 200 | + * @param \stdClass $iri IRI |
|
| 201 | 201 | * @param array $value Property values |
| 202 | 202 | */ |
| 203 | 203 | public function offsetSet($iri, $value) |
@@ -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 | |