Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
robertSt7 authored and github-actions[bot] committed Aug 3, 2023
1 parent 5ea84cd commit d8d5ed9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
21 changes: 0 additions & 21 deletions bundles/StaticRoutesBundle/src/Model/Staticroute.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -96,7 +92,6 @@ public static function setCurrentRoute(?Staticroute $route): void
/**
* @static
*
* @return Staticroute|null
*/
public static function getCurrentRoute(): ?Staticroute
{
Expand All @@ -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
{
Expand All @@ -134,10 +127,7 @@ public static function getById(string $id): ?Staticroute
}

/**
* @param string $name
* @param int|null $siteId
*
* @return self|null
*
* @throws \Exception
*/
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions models/Asset/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -62,9 +56,7 @@ private function isLowQualityPreviewEnabled(): bool
}

/**
* @param string|null $generator
*
* @return bool|string
*
* @throws \Exception
*
Expand Down Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit d8d5ed9

Please sign in to comment.