@@ -140,6 +140,7 @@ discard block |
||
| 140 | 140 | * The item type(s) can be specified in a variety of ways, @see ProfiledNamesFactory::createFromArguments() |
| 141 | 141 | * |
| 142 | 142 | * @param array ...$types Item types |
| 143 | + * @param string $types |
|
| 143 | 144 | * @return boolean Item type is contained in the list of types |
| 144 | 145 | * @api |
| 145 | 146 | */ |
@@ -165,7 +166,7 @@ discard block |
||
| 165 | 166 | * Return whether an aliased item type in contained in a set of query types |
| 166 | 167 | * |
| 167 | 168 | * @param string $profile Type profile |
| 168 | - * @param array $names Aliased type names |
|
| 169 | + * @param string[] $names Aliased type names |
|
| 169 | 170 | * @param ProfiledNamesList $types Query types |
| 170 | 171 | * @return bool Item type is contained in the set of query types |
| 171 | 172 | */ |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | protected static function createTypes(array $types) |
| 93 | 93 | { |
| 94 | 94 | return array_map( |
| 95 | - function ($type) { |
|
| 95 | + function($type) { |
|
| 96 | 96 | return (object)['profile' => self::MF2_PROFILE_URI, 'name' => $type]; |
| 97 | 97 | }, $types |
| 98 | 98 | ); |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | { |
| 155 | 155 | $lang = null; |
| 156 | 156 | $values = self::createLanguage($values, $lang); |
| 157 | - return $lang ? array_map(function ($value) use ($lang) { |
|
| 157 | + return $lang ? array_map(function($value) use ($lang) { |
|
| 158 | 158 | return (object)['value' => $value, 'lang' => $lang]; |
| 159 | 159 | }, $values) : $values; |
| 160 | 160 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | protected static function createProperty(array $propertyValues) |
| 169 | 169 | { |
| 170 | 170 | return array_map( |
| 171 | - function ($propertyValue) { |
|
| 171 | + function($propertyValue) { |
|
| 172 | 172 | if (is_array($propertyValue)) { |
| 173 | 173 | return isset($propertyValue['type']) ? |
| 174 | 174 | self::createItem($propertyValue) : self::tagLanguage($propertyValue); |