From d8d5ed9c027a4324ed14a4b023279559a9783fe6 Mon Sep 17 00:00:00 2001 From: robertSt7 Date: Thu, 3 Aug 2023 13:16:35 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- .../src/Model/Staticroute.php | 21 ------------------- models/Asset/Image.php | 11 ---------- 2 files changed, 32 deletions(-) diff --git a/bundles/StaticRoutesBundle/src/Model/Staticroute.php b/bundles/StaticRoutesBundle/src/Model/Staticroute.php index 791e4c5804e..9d969c0cc61 100644 --- a/bundles/StaticRoutesBundle/src/Model/Staticroute.php +++ b/bundles/StaticRoutesBundle/src/Model/Staticroute.php @@ -65,28 +65,24 @@ final class Staticroute extends AbstractModel * Associative array filled on match() that holds matched path values * for given variable names. * - * @var array */ protected array $_values = []; /** * this is a small per request cache to know which route is which is, this info is used in self::getByName() * - * @var array */ protected static array $nameIdMappingCache = []; /** * contains the static route which the current request matches (it he does), this is used in the view to get the current route * - * @var Staticroute|null */ protected static ?Staticroute $_currentRoute = null; /** * @static * - * @param Staticroute|null $route */ public static function setCurrentRoute(?Staticroute $route): void { @@ -96,7 +92,6 @@ public static function setCurrentRoute(?Staticroute $route): void /** * @static * - * @return Staticroute|null */ public static function getCurrentRoute(): ?Staticroute { @@ -106,9 +101,7 @@ public static function getCurrentRoute(): ?Staticroute /** * Static helper to retrieve an instance of Staticroute by the given ID * - * @param string $id * - * @return self|null */ public static function getById(string $id): ?Staticroute { @@ -134,10 +127,7 @@ public static function getById(string $id): ?Staticroute } /** - * @param string $name - * @param int|null $siteId * - * @return self|null * * @throws \Exception */ @@ -367,12 +357,6 @@ public function getSiteId(): array /** * @internal - * - * @param array $urlOptions - * @param bool $encode - * - * @return string - * * @internal */ public function assemble(array $urlOptions = [], bool $encode = true): string @@ -468,11 +452,6 @@ public function assemble(array $urlOptions = [], bool $encode = true): string /** * @internal * - * @param string $path - * @param array $params - * - * @return array|bool - * * @throws \Exception */ public function match(string $path, array $params = []): bool|array diff --git a/models/Asset/Image.php b/models/Asset/Image.php index bfbc4ac0834..12c5e2d4087 100644 --- a/models/Asset/Image.php +++ b/models/Asset/Image.php @@ -30,16 +30,10 @@ class Image extends Model\Asset { use Model\Asset\MetaData\EmbeddedMetaDataTrait; - /** - * {@inheritdoc} - */ protected string $type = 'image'; private bool $clearThumbnailsOnSave = false; - /** - * {@inheritdoc} - */ protected function update(array $params = []): void { if ($this->getDataChanged()) { @@ -62,9 +56,7 @@ private function isLowQualityPreviewEnabled(): bool } /** - * @param string|null $generator * - * @return bool|string * * @throws \Exception * @@ -170,7 +162,6 @@ public function getLowQualityPreviewDataUri(): ?string * * @internal * - * @return Image\Thumbnail\Config|null */ public function getThumbnailConfig(array|string|Image\Thumbnail\Config|null $config): ?Image\Thumbnail\Config { @@ -192,7 +183,6 @@ public function getThumbnail(array|string|Image\Thumbnail\Config|null $config = * * @throws \Exception * - * @return null|\Pimcore\Image\Adapter */ public static function getImageTransformInstance(): ?\Pimcore\Image\Adapter { @@ -350,7 +340,6 @@ public function isVectorGraphic(): bool /** * Checks if this file represents an animated image (png or gif) * - * @return bool */ public function isAnimated(): bool {