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 Jul 27, 2023
1 parent 10ac362 commit cc6dfc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Model/OntologyTwigExtensionModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public function getViewData(): array
*/
private function getImportDate(): array
{

try {
$this->setSqlTimeout();
$query = $this->drupalDb->query(
Expand Down
7 changes: 3 additions & 4 deletions src/TwigExtension/OntologyTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ public function get_acdh_ontology_import_date()
if (isset($importDate['value'])) {
$date = new \DateTime($importDate['value']);
$this->str = "Ontology import date: ".$date->format('Y-m-d H:i:s');

}

if (isset($importDate['version'])) {
$this->str .= " | Ontology version: ".$importDate['version'];
}
if (isset($importDate['version'])) {
$this->str .= " | Ontology version: ".$importDate['version'];
}

return $this->str;
}
Expand Down

0 comments on commit cc6dfc6

Please sign in to comment.