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 Apr 8, 2021
1 parent cdebf3d commit e3e074d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Controller/DetailViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ public function detailViewMainMethod(string $identifier)
* @param string $id
* @return bool
*/
private function checkVersions(string $id): string
private function checkVersions(string $id): string
{
$blockModel = new \Drupal\acdh_repo_gui\Model\BlocksModel();
$params = array('identifier' => $id, 'lang' => $this->siteLang);
$data = $blockModel->getViewData("versions", $params);
$data = $blockModel->getViewData("versions", $params);

if(count((array)$data) > 1) {
if($data[0]->id != $id){
if (count((array)$data) > 1) {
if ($data[0]->id != $id) {
return $data[0]->id;
}
}
Expand Down

0 comments on commit e3e074d

Please sign in to comment.