Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! Addressed some qodana warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo-ele committed Jan 31, 2024
1 parent fe044c1 commit 2b99da1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Resolver/Location/FindParentStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use Pimcore\Model\DataObject\AbstractObject;
use Pimcore\Model\DataObject\ClassDefinition;
use Pimcore\Model\Element\ElementInterface;
use Pimcore\Model\Exception\NotFoundException;

class FindParentStrategy implements LocationStrategyInterface
{
Expand Down
3 changes: 3 additions & 0 deletions src/Resolver/Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ public function loadElementByIdentifier($identifier): ?ElementInterface
return $this->getLoadingStrategy()->loadElementByIdentifier($identifier);
}

/**
* @throws InvalidInputException
*/
public function loadOrCreateAndPrepareElement(array $inputData, bool $createNew = true): ?ElementInterface
{
$element = $this->loadElement($inputData);
Expand Down

0 comments on commit 2b99da1

Please sign in to comment.