@@ -122,12 +122,12 @@ discard block |
||
| 122 | 122 | // 3. label in any language |
| 123 | 123 | $label = $this->resource->label(); |
| 124 | 124 | // if the label lang code is a subset of the ui lang eg. en-GB |
| 125 | - if ($label !== null && strpos($label->getLang(), $lang . '-') === 0) { |
|
| 125 | + if ($label !== null && strpos($label->getLang(), $lang.'-') === 0) { |
|
| 126 | 126 | return EasyRdf_Literal::create($label, $lang); |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | if ($label !== null) { |
| 130 | - return $label->getLang() ? $label->getValue() . " (" . $label->getLang() . ")" : $label->getValue(); |
|
| 130 | + return $label->getLang() ? $label->getValue()." (".$label->getLang().")" : $label->getValue(); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | // empty |
@@ -452,14 +452,14 @@ discard block |
||
| 452 | 452 | |
| 453 | 453 | // making a human readable string from the timestamps |
| 454 | 454 | if ($created != '') { |
| 455 | - $ret = gettext('skosmos:created') . ' ' . (Punic\Calendar::formatDate($created, 'short')); |
|
| 455 | + $ret = gettext('skosmos:created').' '.(Punic\Calendar::formatDate($created, 'short')); |
|
| 456 | 456 | } |
| 457 | 457 | |
| 458 | 458 | if ($modified != '') { |
| 459 | 459 | if ($created != '') { |
| 460 | - $ret .= ', ' . gettext('skosmos:modified') . ' ' . (Punic\Calendar::formatDate($modified, 'short')); |
|
| 460 | + $ret .= ', '.gettext('skosmos:modified').' '.(Punic\Calendar::formatDate($modified, 'short')); |
|
| 461 | 461 | } else { |
| 462 | - $ret .= ' ' . ucfirst(gettext('skosmos:modified')) . ' ' . (Punic\Calendar::formatDate($modified, 'short')); |
|
| 462 | + $ret .= ' '.ucfirst(gettext('skosmos:modified')).' '.(Punic\Calendar::formatDate($modified, 'short')); |
|
| 463 | 463 | } |
| 464 | 464 | |
| 465 | 465 | } |
@@ -467,12 +467,12 @@ discard block |
||
| 467 | 467 | trigger_error($e->getMessage(), E_USER_WARNING); |
| 468 | 468 | $ret = ''; |
| 469 | 469 | if ($this->resource->get('dc:modified')) { |
| 470 | - $modified = (string) $this->resource->get('dc:modified'); |
|
| 471 | - $ret = gettext('skosmos:modified') . ' ' . $modified; |
|
| 470 | + $modified = (string)$this->resource->get('dc:modified'); |
|
| 471 | + $ret = gettext('skosmos:modified').' '.$modified; |
|
| 472 | 472 | } |
| 473 | 473 | if ($this->resource->get('dc:created')) { |
| 474 | - $created .= (string) $this->resource->get('dc:created'); |
|
| 475 | - $ret .= ' ' . gettext('skosmos:created') . ' ' . $created; |
|
| 474 | + $created .= (string)$this->resource->get('dc:created'); |
|
| 475 | + $ret .= ' '.gettext('skosmos:created').' '.$created; |
|
| 476 | 476 | } |
| 477 | 477 | } |
| 478 | 478 | return $ret; |
@@ -580,13 +580,13 @@ discard block |
||
| 580 | 580 | $labels = array(); |
| 581 | 581 | foreach ($this->resource->allLiterals('skos:prefLabel') as $lit) { |
| 582 | 582 | // filtering away subsets of the current language eg. en vs en-GB |
| 583 | - if ($lit->getLang() != $this->clang && strpos($lit->getLang(), $this->getEnvLang() . '-') !== 0) { |
|
| 583 | + if ($lit->getLang() != $this->clang && strpos($lit->getLang(), $this->getEnvLang().'-') !== 0) { |
|
| 584 | 584 | $labels[$this->literalLanguageToString($lit)][] = new ConceptPropertyValueLiteral($lit, 'skos:prefLabel'); |
| 585 | 585 | } |
| 586 | 586 | } |
| 587 | 587 | foreach ($this->resource->allLiterals('skos:altLabel') as $lit) { |
| 588 | 588 | // filtering away subsets of the current language eg. en vs en-GB |
| 589 | - if ($lit->getLang() != $this->clang && strpos($lit->getLang(), $this->getEnvLang() . '-') !== 0) { |
|
| 589 | + if ($lit->getLang() != $this->clang && strpos($lit->getLang(), $this->getEnvLang().'-') !== 0) { |
|
| 590 | 590 | $labels[$this->literalLanguageToString($lit)][] = new ConceptPropertyValueLiteral($lit, 'skos:altLabel'); |
| 591 | 591 | } |
| 592 | 592 | } |