@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | } |
54 | 54 | // We need to check all the labels in case one of them matches a subtag of the current language |
55 | 55 | if ($this->resource->allLiterals('skos:prefLabel')) { |
56 | - foreach($this->resource->allLiterals('skos:prefLabel') as $label) { |
|
56 | + foreach ($this->resource->allLiterals('skos:prefLabel') as $label) { |
|
57 | 57 | // the label lang code is a subtag of the UI lang eg. en-GB - create a new literal with the main language |
58 | - if ($label !== null && strpos($label->getLang(), $fallback . '-') === 0) { |
|
58 | + if ($label !== null && strpos($label->getLang(), $fallback.'-') === 0) { |
|
59 | 59 | return EasyRdf\Literal::create($label, $fallback); |
60 | 60 | } |
61 | 61 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | public function getReifiedPropertyValues() { |
157 | 157 | $ret = array(); |
158 | 158 | $props = $this->resource->propertyUris(); |
159 | - foreach($props as $prop) { |
|
159 | + foreach ($props as $prop) { |
|
160 | 160 | $prop = (EasyRdf\RdfNamespace::shorten($prop) !== null) ? EasyRdf\RdfNamespace::shorten($prop) : $prop; |
161 | 161 | $propkey = str_starts_with($prop, 'dc11:') ? |
162 | 162 | str_replace('dc11:', 'dc:', $prop) : $prop; |