Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nczirjak-acdh committed Jul 15, 2021
2 parents 9d864e0 + 4a81b81 commit d962b1e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Object/ResourceObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ public function getPolygonData(): string
public function isAudio(): bool
{
$cat = false;
if(!$this->isPublic()) {
return false;
if (!$this->isPublic()) {
return false;
}
//check the sound categories
if (isset($this->properties["acdh:hasCategory"])) {
Expand All @@ -572,8 +572,8 @@ public function isAudio(): bool
public function isPDF(): bool
{
$isPDF = false;
if(!$this->isPublic()) {
return false;
if (!$this->isPublic()) {
return false;
}

if (isset($this->properties["acdh:hasFormat"])) {
Expand All @@ -598,13 +598,13 @@ public function isPDF(): bool
* Check the resource is public or not
* @return bool
*/
public function isPublic(): bool
public function isPublic(): bool
{
$result = false;
$access = $this->getAccessRestriction();
if(
count((array)$access) > 0 &&
isset($access['vocabsid']) &&
if (
count((array)$access) > 0 &&
isset($access['vocabsid']) &&
$access['vocabsid'] = $this->publicAccessValue) {
$result = true;
}
Expand Down

0 comments on commit d962b1e

Please sign in to comment.