Skip to content

Commit

Permalink
Bump and fix missing fallthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Feb 4, 2020
1 parent bb95429 commit 7ce4f27
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
42 changes: 21 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/PHPDraft/Model/Elements/ObjectStructureElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class ObjectStructureElement extends BasicStructureElement
*/
public function parse($object, array &$dependencies): StructureElement
{
if (!isset($object->content) && isset($object->meta)) {
$this->element = $object->element;
$this->parse_common($object, $dependencies);
if (empty($object) || !isset($object->element) || !(isset($object->content) || isset($object->meta) ) ) {
return $this;
}

if (empty($object) || !(isset($object->content) || isset($object->meta)) ) {
if (!isset($object->content) && isset($object->meta)) {
$this->element = $object->element;
$this->parse_common($object, $dependencies);
return $this;
}

Expand Down

0 comments on commit 7ce4f27

Please sign in to comment.