@@ -39,11 +39,11 @@ |
||
| 39 | 39 | return $html; |
| 40 | 40 | } |
| 41 | 41 | /** |
| 42 | - * Validate honeypot is empty |
|
| 43 | - * |
|
| 44 | - * @param mixed $value |
|
| 45 | - * @return boolean |
|
| 46 | - */ |
|
| 42 | + * Validate honeypot is empty |
|
| 43 | + * |
|
| 44 | + * @param mixed $value |
|
| 45 | + * @return boolean |
|
| 46 | + */ |
|
| 47 | 47 | public function validateHoneypot($value) |
| 48 | 48 | { |
| 49 | 49 | if ($this->disabled) { |
@@ -124,8 +124,8 @@ |
||
| 124 | 124 | */ |
| 125 | 125 | public function getEnvLang() |
| 126 | 126 | { |
| 127 | - // get language from locale, same as used by gettext, set by Controller |
|
| 128 | - return substr(getenv("LC_ALL"), 0, 2); // @codeCoverageIgnore |
|
| 127 | + // get language from locale, same as used by gettext, set by Controller |
|
| 128 | + return substr(getenv("LC_ALL"), 0, 2); // @codeCoverageIgnore |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * |
| 65 | 65 | * @param string $query |
| 66 | 66 | * @return string |
| 67 | - */ |
|
| 67 | + */ |
|
| 68 | 68 | protected function generateQueryPrefixes($query) |
| 69 | 69 | { |
| 70 | 70 | // Check for undefined prefixes |
@@ -1809,7 +1809,7 @@ discard block |
||
| 1809 | 1809 | |
| 1810 | 1810 | /** |
| 1811 | 1811 | * Generates a sparql query for finding the hierarchy for a concept. |
| 1812 | - * A concept may be a top concept in multiple schemes, returned as a single whitespace-separated literal. |
|
| 1812 | + * A concept may be a top concept in multiple schemes, returned as a single whitespace-separated literal. |
|
| 1813 | 1813 | * @param string $uri concept uri. |
| 1814 | 1814 | * @param string $lang |
| 1815 | 1815 | * @param string $fallback language to use if label is not available in the preferred language |
@@ -1886,10 +1886,10 @@ discard block |
||
| 1886 | 1886 | $ret[$uri]['exact'] = $row->exact->getUri(); |
| 1887 | 1887 | } |
| 1888 | 1888 | if (isset($row->tops)) { |
| 1889 | - $topConceptsList=explode(" ", $row->tops->getValue()); |
|
| 1890 | - // sort to garantee an alphabetical ordering of the URI |
|
| 1891 | - sort($topConceptsList); |
|
| 1892 | - $ret[$uri]['tops'] = $topConceptsList; |
|
| 1889 | + $topConceptsList=explode(" ", $row->tops->getValue()); |
|
| 1890 | + // sort to garantee an alphabetical ordering of the URI |
|
| 1891 | + sort($topConceptsList); |
|
| 1892 | + $ret[$uri]['tops'] = $topConceptsList; |
|
| 1893 | 1893 | } |
| 1894 | 1894 | if (isset($row->children)) { |
| 1895 | 1895 | if (!isset($ret[$uri]['narrower'])) { |
@@ -7,11 +7,11 @@ |
||
| 7 | 7 | abstract class BaseConfig extends DataObject |
| 8 | 8 | { |
| 9 | 9 | |
| 10 | - /** |
|
| 11 | - * Returns a boolean value based on a literal value from the config.ttl configuration. |
|
| 12 | - * @param string $property the property to query |
|
| 13 | - * @param boolean $default the default value if the value is not set in configuration |
|
| 14 | - */ |
|
| 10 | + /** |
|
| 11 | + * Returns a boolean value based on a literal value from the config.ttl configuration. |
|
| 12 | + * @param string $property the property to query |
|
| 13 | + * @param boolean $default the default value if the value is not set in configuration |
|
| 14 | + */ |
|
| 15 | 15 | protected function getBoolean($property, $default = false) |
| 16 | 16 | { |
| 17 | 17 | $val = $this->getResource()->getLiteral($property); |