Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
leitge authored and github-actions[bot] committed Feb 24, 2024
1 parent d7f1694 commit e6badf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GraphQL/DataObjectType/PimcoreObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ public function build($context = [])
'resolve' => function ($value = null, $args = [], $context = [], ResolveInfo $resolveInfo = null) {
$object = \Pimcore\Model\DataObject::getById($value['id']);
if ($object) {
$version = $object->getVersions()[count($object->getVersions())-1]->getId();
$version = $object->getVersions()[count($object->getVersions()) - 1]->getId();
if ($version) {
return $version;
}
}

return null;
}
],
Expand Down

0 comments on commit e6badf4

Please sign in to comment.