Skip to content

Commit

Permalink
PHP code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions Workflow committed Jun 29, 2020
1 parent 587fa94 commit 70da2dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Object/ResourceObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,10 @@ public function getFormattedDateByProperty(string $property, string $dateFormat
* Select the identifier for the Copy resource link
* @return string
*/
public function getCopyResourceLink() : string
public function getCopyResourceLink() : string
{
//check the pid
if(!empty($this->getPid())){
if (!empty($this->getPid())) {
return $this->getPid();
}
$id = '';
Expand All @@ -340,16 +340,16 @@ public function getCopyResourceLink() : string
//if we have acdh id then we pass that
if ((strpos($v->value, "/id.acdh.oeaw.ac.at/") !== false)) {
$id = $v->value;
} else if((strpos($v->value, $this->config->getBaseUrl()) === false)) {
} elseif ((strpos($v->value, $this->config->getBaseUrl()) === false)) {
//if we dont have then we pass everything except the repourl based id
$otherid = $v->value;
}
}
}

if(!empty($id)) {
if (!empty($id)) {
return $id;
} elseif(!empty($otherid)) {
} elseif (!empty($otherid)) {
return $otherid;
}

Expand Down

0 comments on commit 70da2dd

Please sign in to comment.