Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored and github-actions[bot] committed Aug 30, 2023
1 parent 6af9ede commit e22a820
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion lib/Twig/Extension/Templating/Placeholder/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ public function getWhitespace(int|string $indent): string
* Start capturing content to push into placeholder
*
* @param int|string $type How to capture content into placeholder; append, prepend, or set
* @param mixed $key
*
* @throws Exception
*/
Expand Down
1 change: 0 additions & 1 deletion models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,6 @@ public function setHasMetaData(bool $hasMetaData): static

/**
* @param string $type can be "asset", "checkbox", "date", "document", "input", "object", "select" or "textarea"
* @param mixed $data
*
* @return $this
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ protected function loadData(array $data, Localizedfield|AbstractData|\Pimcore\Mo
}
}
}

//must return array - otherwise this means data is not loaded
return $list;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ protected function loadData(array $data, Localizedfield|AbstractData|\Pimcore\Mo
$objects['dirty'] = true;
}
}

//must return array - otherwise this means data is not loaded
return $objects;
}
Expand Down Expand Up @@ -206,6 +207,7 @@ public function getDataFromEditmode(mixed $data, DataObject\Concrete $object = n
}
}
}

//must return array if data shall be set
return $objects;
}
Expand Down
2 changes: 2 additions & 0 deletions models/DataObject/ClassDefinition/Data/ManyToManyRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ protected function loadData(array $data, Localizedfield|AbstractData|\Pimcore\Mo
$elements['dirty'] = true;
}
}

//must return array - otherwise this means data is not loaded
return $elements;
}
Expand Down Expand Up @@ -310,6 +311,7 @@ public function getDataFromEditmode(mixed $data, DataObject\Concrete $object = n
}
}
}

//must return array if data shall be set
return $elements;
}
Expand Down
2 changes: 0 additions & 2 deletions models/DataObject/ClassDefinition/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Pimcore\Loader\ImplementationLoader\LoaderInterface;
use Pimcore\Logger;
use Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\ClassDefinition\Data\EncryptedField;
use Pimcore\Model\DataObject\ClassDefinition\Data\VarExporterInterface;
use Pimcore\Tool;

Expand Down Expand Up @@ -283,7 +282,6 @@ public static function importObjectBrickFromJson(DataObject\Objectbrick\Definiti

/**
*
* @return EncryptedField|bool|Data|Layout
*
* @throws \Exception
*
Expand Down
1 change: 0 additions & 1 deletion models/DataObject/Classificationstore/KeyConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public static function getById(int $id, ?bool $force = false): ?KeyConfig
}

/**
* @param bool $force
*
* @throws \Exception
*/
Expand Down
1 change: 0 additions & 1 deletion models/DataObject/Concrete.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ public function getOmitMandatoryCheck(): bool
}

/**
* @param mixed $params
*
* @throws InheritanceParentNotFoundException
*/
Expand Down
1 change: 0 additions & 1 deletion models/DataObject/Data/CalculatedValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public function __construct(string $fieldname)
}

/**
* @param mixed $keyDefinition
*
* @internal
*
Expand Down
4 changes: 0 additions & 4 deletions models/Document/Hardlink/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@

use Pimcore\Model\Document;
use Pimcore\Model\Document\Hardlink\Wrapper\Hardlink;
use Pimcore\Model\Document\Hardlink\Wrapper\WrapperInterface;
use Pimcore\Tool\Serialize;

class Service
{
/**
*
* @return WrapperInterface|Hardlink|null
*
* @throws \Exception
*/
Expand Down Expand Up @@ -82,7 +80,6 @@ public static function upperCastDocument(Document $doc): Wrapper\WrapperInterfac

/**
*
* @return WrapperInterface|Hardlink|null
*
* @throws \Exception
*
Expand Down Expand Up @@ -116,7 +113,6 @@ public static function getChildByPath(Document\Hardlink $hardlink, string $path)

/**
*
* @return WrapperInterface|Hardlink|null
*
* @throws \Exception
*
Expand Down

0 comments on commit e22a820

Please sign in to comment.