@@ -598,6 +598,9 @@ |
||
| 598 | 598 | return $bydate; |
| 599 | 599 | } |
| 600 | 600 | |
| 601 | + /** |
|
| 602 | + * @param string $lang |
|
| 603 | + */ |
|
| 601 | 604 | public function getTitle($lang=null) { |
| 602 | 605 | return $this->config->getTitle($lang); |
| 603 | 606 | } |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | |
| 319 | 319 | /** |
| 320 | 320 | * Returns a boolean value set in the vocabularies.ttl config. |
| 321 | - * @return array array of concept class URIs (can be empty) |
|
| 321 | + * @return string[] array of concept class URIs (can be empty) |
|
| 322 | 322 | */ |
| 323 | 323 | public function getIndexClasses() |
| 324 | 324 | { |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | |
| 328 | 328 | /** |
| 329 | 329 | * Returns skosmos:externalProperty values set in the vocabularies.ttl config. |
| 330 | - * @return array array of external property URIs (can be empty) |
|
| 330 | + * @return string[] array of external property URIs (can be empty) |
|
| 331 | 331 | */ |
| 332 | 332 | public function getExtProperties() |
| 333 | 333 | { |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | * Additionally, the chosen content language is inserted with the highest priority |
| 474 | 474 | * and the vocab default language is inserted with the lowest priority. |
| 475 | 475 | * @param string $clang |
| 476 | - * @return array of language code strings |
|
| 476 | + * @return string[] of language code strings |
|
| 477 | 477 | */ |
| 478 | 478 | public function getLanguageOrder($clang) |
| 479 | 479 | { |
@@ -40,8 +40,7 @@ |
||
| 40 | 40 | $ret[$name] = array(); |
| 41 | 41 | if ($raw) { |
| 42 | 42 | $ret[$name] = $files[$type]; |
| 43 | - } |
|
| 44 | - else { |
|
| 43 | + } else { |
|
| 45 | 44 | foreach ($files[$type] as $file) { |
| 46 | 45 | array_push($ret[$name], 'plugins/' . $name . '/' . $file); |
| 47 | 46 | } |
@@ -312,8 +312,7 @@ discard block |
||
| 312 | 312 | foreach ($res->propertyUris() as $prop) { |
| 313 | 313 | $this->addPropertyValues($res, $prop, $seen); |
| 314 | 314 | } |
| 315 | - } |
|
| 316 | - else { |
|
| 315 | + } else { |
|
| 317 | 316 | foreach ($props as $prop) { |
| 318 | 317 | if ($res->hasProperty($prop)) { |
| 319 | 318 | $this->addPropertyValues($res, $prop, $seen); |
@@ -850,8 +849,7 @@ discard block |
||
| 850 | 849 | if (!in_array($vocabUriSpace, $context, true)) { |
| 851 | 850 | if (!isset($context[$vocabPrefix])) { |
| 852 | 851 | $context[$vocabPrefix] = $vocabUriSpace; |
| 853 | - } |
|
| 854 | - else if ($context[$vocabPrefix] !== $vocabUriSpace) { |
|
| 852 | + } else if ($context[$vocabPrefix] !== $vocabUriSpace) { |
|
| 855 | 853 | $i = 2; |
| 856 | 854 | while (isset($context[$vocabPrefix . $i]) && $context[$vocabPrefix . $i] !== $vocabUriSpace) { |
| 857 | 855 | $i += 1; |