Repository: pimcore/pimcore (language: php)

Issue:
[Bug]: Compile Error: Cannot make non static method Pimcore\Model\DataObject\SelectOptionsInterface::getValues() static in class
### Pimcore version

11.3.2

### Steps to reproduce

- Open any object with select options and notice the error `Compile Error: Cannot make non static method Pimcore\Model\DataObject\SelectOptionsInterface::getValues() static in class`.
- Open any created SelectOption and notice the error `Declaration of 'EnumGetValuesTrait::getValues()' must be compatible with 'SelectOptionsInterface->getValues()', cannot make interface method static`

### Actual Behavior

Interface `Pimcore\Model\DataObject\SelectOptionsInterface` is not compatible anymore because of the method `getValues` being static now in `models\DataObject\SelectOptions\Traits\EnumGetValuesTrait.php` due to PR merge https://github.com/pimcore/pimcore/pull/17349.

### Expected Behavior

Object loads without any problem and interface and Trait are compatible with each other.


Discussion / hints:

Fix patch:
diff --git a/bundles/ApplicationLoggerBundle/src/Controller/LogController.php b/bundles/ApplicationLoggerBundle/src/Controller/LogController.php
index 7b6245ab266..dbb64d939c2 100644
--- a/bundles/ApplicationLoggerBundle/src/Controller/LogController.php
+++ b/bundles/ApplicationLoggerBundle/src/Controller/LogController.php
@@ -76,7 +76,7 @@ public function showAction(Request $request, Connection $db): JsonResponse
         }
 
         $priority = $request->get('priority');
-        if(!empty($priority)) {
+        if (!empty($priority)) {
             $qb->andWhere($qb->expr()->eq('priority', ':priority'));
             $qb->setParameter('priority', $priority);
         }
diff --git a/bundles/CoreBundle/src/Controller/PublicServicesController.php b/bundles/CoreBundle/src/Controller/PublicServicesController.php
index a3332723a64..e9eccd44f71 100644
--- a/bundles/CoreBundle/src/Controller/PublicServicesController.php
+++ b/bundles/CoreBundle/src/Controller/PublicServicesController.php
@@ -48,7 +48,7 @@ public function thumbnailAction(Request $request): RedirectResponse|StreamedResp
 
         try {
             $response = Asset\Service::getStreamedResponseForThumbnail($config, $request->getPathInfo());
-            if($response) {
+            if ($response) {
                 return $response;
             }
 
diff --git a/bundles/CoreBundle/src/DependencyInjection/Compiler/FlysystemVisibilityPass.php b/bundles/CoreBundle/src/DependencyInjection/Compiler/FlysystemVisibilityPass.php
index bfff50264cf..c2427f3f013 100644
--- a/bundles/CoreBundle/src/DependencyInjection/Compiler/FlysystemVisibilityPass.php
+++ b/bundles/CoreBundle/src/DependencyInjection/Compiler/FlysystemVisibilityPass.php
@@ -30,8 +30,8 @@ final class FlysystemVisibilityPass implements CompilerPassInterface
     public function process(ContainerBuilder $container): void
     {
         $serviceIds = $container->findTaggedServiceIds('flysystem.storage');
-        foreach($serviceIds as $serviceId => $tags) {
-            if(str_starts_with($serviceId, 'pimcore.')) {
+        foreach ($serviceIds as $serviceId => $tags) {
+            if (str_starts_with($serviceId, 'pimcore.')) {
                 $definition = $container->findDefinition($serviceId);
                 $config = $definition->getArgument(1);
                 if (($config['directory_visibility'] ?? null) === Visibility::PUBLIC) {
diff --git a/bundles/CoreBundle/src/Migrations/Version20230320131322.php b/bundles/CoreBundle/src/Migrations/Version20230320131322.php
index e852629d385..3c2aa2498bd 100644
--- a/bundles/CoreBundle/src/Migrations/Version20230320131322.php
+++ b/bundles/CoreBundle/src/Migrations/Version20230320131322.php
@@ -37,12 +37,12 @@ public function getDescription(): string
     public function up(Schema $schema): void
     {
         $classDefinitionListing = new Listing();
-        foreach($classDefinitionListing->getClasses() as $classDefinition) {
+        foreach ($classDefinitionListing->getClasses() as $classDefinition) {
             $relations = Db::get()->fetchAllAssociative('SELECT src_id, ownername, fieldname, position FROM object_relations_'.$classDefinition->getId().' WHERE ownertype=\'localizedfield\' AND ownername LIKE \'/objectbrick~%\'');
-            foreach($relations as $relationItem) {
-                if(preg_match('/^\/objectbrick~([^\/]+)/', $relationItem['ownername'], $match)) {
+            foreach ($relations as $relationItem) {
+                if (preg_match('/^\/objectbrick~([^\/]+)/', $relationItem['ownername'], $match)) {
                     $object = Concrete::getById($relationItem['src_id']);
-                    if(!$object instanceof Concrete) {
+                    if (!$object instanceof Concrete) {
                         continue;
                     }
                     $objectBrickContainerField = $match[1];
@@ -52,17 +52,17 @@ public function up(Schema $schema): void
                     $brickContainer = $object->$brickGetter();
 
                     /** @var AbstractData $objectBrick */
-                    foreach($brickContainer->getItems() as $objectBrick) {
+                    foreach ($brickContainer->getItems() as $objectBrick) {
                         $brickDefinition = $objectBrick->getDefinition();
                         $localizedFieldDefinition = $brickDefinition->getFieldDefinition('localizedfields');
-                        if($localizedFieldDefinition instanceof Localizedfields) {
-                            if($localizedFieldDefinition->getFieldDefinition($relationItem['fieldname'])) {
+                        if ($localizedFieldDefinition instanceof Localizedfields) {
+                            if ($localizedFieldDefinition->getFieldDefinition($relationItem['fieldname'])) {
                                 $fieldGetter = 'get'.$relationItem['fieldname'];
                                 $fieldSetter = 'set'.$relationItem['fieldname'];
                                 $objectBrick->$fieldSetter($objectBrick->$fieldGetter($relationItem['position']), $relationItem['position']);
                                 $objectBrick->markFieldDirty('localizedfields');
                                 $objectBrick->markFieldDirty($relationItem['fieldname']);
-                                if(!method_exists($objectBrick, 'getLocalizedfields')) {
+                                if (!method_exists($objectBrick, 'getLocalizedfields')) {
                                     // this cannot happen, because we already checked that there are localized fields via $brickDefinition->getFieldDefinition('localizedfields') but PhpStan complains...
                                     continue;
                                 }
diff --git a/bundles/CoreBundle/src/Migrations/Version20230424084415.php b/bundles/CoreBundle/src/Migrations/Version20230424084415.php
index e100a62e06c..ebf13f4286b 100644
--- a/bundles/CoreBundle/src/Migrations/Version20230424084415.php
+++ b/bundles/CoreBundle/src/Migrations/Version20230424084415.php
@@ -28,7 +28,7 @@ public function getDescription(): string
 
     public function up(Schema $schema): void
     {
-        if($schema->hasTable('documents_editables')) {
+        if ($schema->hasTable('documents_editables')) {
             $db = Db::get();
             $db->executeStatement('SET foreign_key_checks = 0');
 
diff --git a/bundles/CoreBundle/src/Migrations/Version20240222143211.php b/bundles/CoreBundle/src/Migrations/Version20240222143211.php
index 295099f5f1e..cb6ef0fa7d5 100644
--- a/bundles/CoreBundle/src/Migrations/Version20240222143211.php
+++ b/bundles/CoreBundle/src/Migrations/Version20240222143211.php
@@ -36,8 +36,8 @@ public function up(Schema $schema): void
     {
         $this->addSql('SET foreign_key_checks = 0');
 
-        foreach($schema->getTables() as $table) {
-            if($table->hasColumn('id')) {
+        foreach ($schema->getTables() as $table) {
+            if ($table->hasColumn('id')) {
                 $tableName = $table->getName();
 
                 if (
@@ -64,8 +64,8 @@ public function down(Schema $schema): void
     {
         $this->addSql('SET foreign_key_checks = 0');
 
-        foreach($schema->getTables() as $table) {
-            if($table->hasColumn('id')) {
+        foreach ($schema->getTables() as $table) {
+            if ($table->hasColumn('id')) {
                 $tableName = $table->getName();
 
                 if (
diff --git a/bundles/CustomReportsBundle/src/Controller/Reports/CustomReportController.php b/bundles/CustomReportsBundle/src/Controller/Reports/CustomReportController.php
index 408dc4d7399..3fd8f3b192a 100644
--- a/bundles/CustomReportsBundle/src/Controller/Reports/CustomReportController.php
+++ b/bundles/CustomReportsBundle/src/Controller/Reports/CustomReportController.php
@@ -274,7 +274,7 @@ public function getReportConfigAction(Request $request): JsonResponse
         $items = $list->getDao()->loadForGivenUser($this->getPimcoreUser());
 
         foreach ($items as $report) {
-            if($report->getDataSourceConfig() !== null) {
+            if ($report->getDataSourceConfig() !== null) {
                 $reports[] = [
                     'name' => htmlspecialchars($report->getName()),
                     'niceName' => htmlspecialchars($report->getNiceName()),
@@ -484,7 +484,7 @@ public function downloadCsvAction(Request $request): BinaryFileResponse
      */
     public function isValidConfigName(string $configName): void
     {
-        if(!preg_match('/^[a-zA-Z0-9_\-]+$/', $configName)) {
+        if (!preg_match('/^[a-zA-Z0-9_\-]+$/', $configName)) {
             throw new \Exception('The customer report name is invalid');
         }
     }
@@ -495,7 +495,7 @@ private function getSortAndFilters(Request $request, \stdClass $configuration):
         $sortingSettings = null;
         $sort = null;
         $dir = null;
-        if(class_exists('\Pimcore\Bundle\AdminBundle\Helper\QueryParams')) {
+        if (class_exists('\Pimcore\Bundle\AdminBundle\Helper\QueryParams')) {
             $sortingSettings = \Pimcore\Bundle\AdminBundle\Helper\QueryParams::extractSortingSettings(array_merge($request->request->all(), $request->query->all()));
         }
         if (is_array($sortingSettings) && $sortingSettings['orderKey']) {
diff --git a/bundles/GenericExecutionEngineBundle/src/Agent/JobExecutionAgent.php b/bundles/GenericExecutionEngineBundle/src/Agent/JobExecutionAgent.php
index 8917b50bed6..f4e4c0d77ba 100644
--- a/bundles/GenericExecutionEngineBundle/src/Agent/JobExecutionAgent.php
+++ b/bundles/GenericExecutionEngineBundle/src/Agent/JobExecutionAgent.php
@@ -392,15 +392,15 @@ private function setCompletionState(JobRun $jobRun): void
             $jobRun->getCurrentStep()
         );
 
-        if(count($logs) === $jobRun->getTotalElements()) {
+        if (count($logs) === $jobRun->getTotalElements()) {
             $jobRun->setState(JobRunStates::FAILED);
             $message = 'gee_job_failed';
-        } elseif(count($logs) > 0) {
+        } elseif (count($logs) > 0) {
             $jobRun->setState(JobRunStates::FINISHED_WITH_ERRORS);
             $message = 'gee_job_finished_with_errors';
         }
 
-        if(empty($logs)) {
+        if (empty($logs)) {
             $jobRun->setCurrentMessage(null);
             $jobRun->setState(JobRunStates::FINISHED);
             $message = 'gee_job_finished';
diff --git a/bundles/GenericExecutionEngineBundle/src/Repository/JobRunErrorLogRepository.php b/bundles/GenericExecutionEngineBundle/src/Repository/JobRunErrorLogRepository.php
index 6be6c1c8d27..96af139c6cd 100644
--- a/bundles/GenericExecutionEngineBundle/src/Repository/JobRunErrorLogRepository.php
+++ b/bundles/GenericExecutionEngineBundle/src/Repository/JobRunErrorLogRepository.php
@@ -61,7 +61,7 @@ public function getLogsByJobRunId(
         int $offset = 0
     ): array {
         $criteria = ['jobRunId' => $jobRunId];
-        if($step !== null && $step >= 0) {
+        if ($step !== null && $step >= 0) {
             $criteria['step'] = $step;
         }
 
diff --git a/bundles/GlossaryBundle/src/Model/Glossary/Dao.php b/bundles/GlossaryBundle/src/Model/Glossary/Dao.php
index 3f3584fe07b..410eea0304b 100644
--- a/bundles/GlossaryBundle/src/Model/Glossary/Dao.php
+++ b/bundles/GlossaryBundle/src/Model/Glossary/Dao.php
@@ -13,7 +13,7 @@
  *  @license    http://www.pimcore.org/license     GPLv3 and PCL
  */
 
-namespace  Pimcore\Bundle\GlossaryBundle\Model\Glossary;
+namespace Pimcore\Bundle\GlossaryBundle\Model\Glossary;
 
 use Pimcore\Bundle\GlossaryBundle\Model\Glossary;
 use Pimcore\Model\Dao\AbstractDao;
diff --git a/bundles/GlossaryBundle/src/Model/Glossary/Listing.php b/bundles/GlossaryBundle/src/Model/Glossary/Listing.php
index 526a13e41f8..68991840213 100644
--- a/bundles/GlossaryBundle/src/Model/Glossary/Listing.php
+++ b/bundles/GlossaryBundle/src/Model/Glossary/Listing.php
@@ -14,7 +14,7 @@
  *  @license    http://www.pimcore.org/license     GPLv3 and PCL
  */
 
-namespace  Pimcore\Bundle\GlossaryBundle\Model\Glossary;
+namespace Pimcore\Bundle\GlossaryBundle\Model\Glossary;
 
 use Pimcore\Bundle\GlossaryBundle\Model\Glossary;
 use Pimcore\Model\Listing\AbstractListing;
diff --git a/bundles/GlossaryBundle/src/Model/Glossary/Listing/Dao.php b/bundles/GlossaryBundle/src/Model/Glossary/Listing/Dao.php
index 6365e7efd1c..67f69f9f803 100644
--- a/bundles/GlossaryBundle/src/Model/Glossary/Listing/Dao.php
+++ b/bundles/GlossaryBundle/src/Model/Glossary/Listing/Dao.php
@@ -13,7 +13,7 @@
  *  @license    http://www.pimcore.org/license     GPLv3 and PCL
  */
 
-namespace  Pimcore\Bundle\GlossaryBundle\Model\Glossary\Listing;
+namespace Pimcore\Bundle\GlossaryBundle\Model\Glossary\Listing;
 
 use Pimcore\Bundle\GlossaryBundle\Model\Glossary;
 use Pimcore\Bundle\GlossaryBundle\Model\Glossary\Listing;
diff --git a/bundles/InstallBundle/src/Command/InstallCommand.php b/bundles/InstallBundle/src/Command/InstallCommand.php
index 1893854d920..47bbca22909 100644
--- a/bundles/InstallBundle/src/Command/InstallCommand.php
+++ b/bundles/InstallBundle/src/Command/InstallCommand.php
@@ -446,7 +446,7 @@ private function getRecommendBundles(BundleSetupEvent $bundleSetupEvent): string
     {
         $installableBundleKeys = array_keys($bundleSetupEvent->getBundles());
         $recommendedBundles = [];
-        foreach($bundleSetupEvent->getRecommendedBundles() as $recBundle) {
+        foreach ($bundleSetupEvent->getRecommendedBundles() as $recBundle) {
             $recommendedBundles[] = array_search($recBundle, $installableBundleKeys);
         }
 
diff --git a/bundles/InstallBundle/src/Installer.php b/bundles/InstallBundle/src/Installer.php
index 3e4f233a8d9..ccec3eadb3e 100644
--- a/bundles/InstallBundle/src/Installer.php
+++ b/bundles/InstallBundle/src/Installer.php
@@ -391,7 +391,7 @@ private function runInstall(array $dbConfig, array $userCredentials, Connection
         $errors = [];
         $stepsToRun = $this->getRunInstallSteps();
 
-        if(in_array('write_database_config', $stepsToRun)) {
+        if (in_array('write_database_config', $stepsToRun)) {
             $this->dispatchStepEvent('create_config_files');
 
             unset($dbConfig['driver']);
@@ -435,16 +435,16 @@ private function runInstall(array $dbConfig, array $userCredentials, Connection
 
         $kernel = new $kernel($environment, true);
 
-        if(in_array('clear_cache', $stepsToRun)) {
+        if (in_array('clear_cache', $stepsToRun)) {
             $this->clearKernelCacheDir($kernel);
         }
 
-        if(in_array('clear_cache', $stepsToRun) || in_array('install_assets', $stepsToRun)) {
+        if (in_array('clear_cache', $stepsToRun) || in_array('install_assets', $stepsToRun)) {
             \Pimcore::setKernel($kernel);
             $kernel->boot();
         }
 
-        if(in_array('setup_database', $stepsToRun)) {
+        if (in_array('setup_database', $stepsToRun)) {
             $this->dispatchStepEvent('setup_database');
 
             $errors = $this->setupDatabase($db, $userCredentials, $errors);
@@ -462,7 +462,7 @@ private function runInstall(array $dbConfig, array $userCredentials, Connection
             }
         }
 
-        if(in_array('install_assets', $stepsToRun)) {
+        if (in_array('install_assets', $stepsToRun)) {
             $this->dispatchStepEvent('install_assets');
             $this->installAssets($kernel);
         }
@@ -472,12 +472,12 @@ private function runInstall(array $dbConfig, array $userCredentials, Connection
             $this->installBundles();
         }
 
-        if(in_array('install_classes', $stepsToRun)) {
+        if (in_array('install_classes', $stepsToRun)) {
             $this->dispatchStepEvent('install_classes');
             $this->installClasses();
         }
 
-        if(in_array('mark_migrations_as_done', $stepsToRun)) {
+        if (in_array('mark_migrations_as_done', $stepsToRun)) {
             $this->dispatchStepEvent('install_classes');
             $this->installClasses();
 
@@ -485,7 +485,7 @@ private function runInstall(array $dbConfig, array $userCredentials, Connection
             $this->markMigrationsAsDone();
         }
 
-        if(in_array('clear_cache', $stepsToRun)) {
+        if (in_array('clear_cache', $stepsToRun)) {
             $this->clearKernelCacheDir($kernel);
         }
 
@@ -580,7 +580,7 @@ private function writeBundlesToConfig(): void
         $bundlesToInstall = $this->bundlesToInstall;
         $availableBundles = $this->availableBundles;
 
-        if(!empty($this->excludeFromBundlesPhp)) {
+        if (!empty($this->excludeFromBundlesPhp)) {
             $bundlesToInstall = array_diff($bundlesToInstall, array_values($this->excludeFromBundlesPhp));
             $availableBundles = array_diff($availableBundles, $this->excludeFromBundlesPhp);
         }
@@ -721,7 +721,7 @@ public function setupDatabase(Connection $db, array $userCredentials, array $err
 
         // close connections and collection garbage ... in order to avoid too many connections error
         // when installing demos
-        if(\Pimcore::getKernel() instanceof \Pimcore\Kernel) {
+        if (\Pimcore::getKernel() instanceof \Pimcore\Kernel) {
             \Pimcore::collectGarbage();
         }
 
diff --git a/bundles/SeoBundle/src/Sitemap/Document/DocumentTreeGenerator.php b/bundles/SeoBundle/src/Sitemap/Document/DocumentTreeGenerator.php
index 732b6d296bc..1a2b5eb265c 100644
--- a/bundles/SeoBundle/src/Sitemap/Document/DocumentTreeGenerator.php
+++ b/bundles/SeoBundle/src/Sitemap/Document/DocumentTreeGenerator.php
@@ -74,7 +74,7 @@ public function populate(UrlContainerInterface $urlContainer, string $section =
         if ($this->options['handleMainDomain'] && (null === $section || $section === 'default')) {
             $rootDocument = Document::getById($this->options['rootId']);
 
-            if($rootDocument instanceof Document) {
+            if ($rootDocument instanceof Document) {
                 $this->populateCollection($urlContainer, $rootDocument, 'default');
             }
         }
diff --git a/bundles/StaticRoutesBundle/src/Model/Staticroute.php b/bundles/StaticRoutesBundle/src/Model/Staticroute.php
index 65413fa8678..5eff90cf229 100644
--- a/bundles/StaticRoutesBundle/src/Model/Staticroute.php
+++ b/bundles/StaticRoutesBundle/src/Model/Staticroute.php
@@ -489,7 +489,7 @@ public function setMethods(array|string $methods): static
     {
         if (is_string($methods)) {
             $methods = strlen($methods) ? explode(',', $methods) : [];
-            foreach($methods as $key => $method) {
+            foreach ($methods as $key => $method) {
                 $methods[$key] = trim($method);
             }
         }
diff --git a/lib/Composer.php b/lib/Composer.php
index e38fc2c610c..8a68a24add0 100644
--- a/lib/Composer.php
+++ b/lib/Composer.php
@@ -162,7 +162,7 @@ protected static function getPhpArguments(): array
         $phpFinder = new PhpExecutableFinder();
         $arguments = $phpFinder->findArguments();
 
-        if(!empty($_SERVER['COMPOSER_ORIGINAL_INIS'])) {
+        if (!empty($_SERVER['COMPOSER_ORIGINAL_INIS'])) {
             $paths = explode(PATH_SEPARATOR, $_SERVER['COMPOSER_ORIGINAL_INIS']);
             $ini = array_shift($paths);
         } else {
@@ -183,11 +183,11 @@ protected static function getOptions(Event $event): array
     {
         $options = array_merge(static::$options, $event->getComposer()->getPackage()->getExtra());
 
-        if(!empty($_SERVER['SYMFONY_ASSETS_INSTALL'])) {
+        if (!empty($_SERVER['SYMFONY_ASSETS_INSTALL'])) {
             $options['symfony-assets-install'] = $_SERVER['SYMFONY_ASSETS_INSTALL'];
         }
 
-        if(!empty($_SERVER['SYMFONY_CACHE_WARMUP'])) {
+        if (!empty($_SERVER['SYMFONY_CACHE_WARMUP'])) {
             $options['symfony-cache-warmup'] = $_SERVER['SYMFONY_CACHE_WARMUP'];
         }
 
diff --git a/lib/Config/LocationAwareConfigRepository.php b/lib/Config/LocationAwareConfigRepository.php
index dabeeb76362..0a76b2c5ec8 100644
--- a/lib/Config/LocationAwareConfigRepository.php
+++ b/lib/Config/LocationAwareConfigRepository.php
@@ -69,7 +69,7 @@ public function loadConfigByKey(string $key): array
         $dataSource = null;
 
         $loadType = $this->getReadTargets()[0] ?? null;
-        if($loadType === null) {
+        if ($loadType === null) {
             // try to load from container config
             $data = $this->getDataFromContainerConfig($key, $dataSource);
 
@@ -78,7 +78,7 @@ public function loadConfigByKey(string $key): array
                 $data = $this->getDataFromSettingsStore($key, $dataSource);
             }
         } else {
-            if($loadType === self::LOCATION_SYMFONY_CONFIG) {
+            if ($loadType === self::LOCATION_SYMFONY_CONFIG) {
                 $data = $this->getDataFromContainerConfig($key, $dataSource);
             } elseif ($loadType === self::LOCATION_SETTINGS_STORE) {
                 $data = $this->getDataFromSettingsStore($key, $dataSource);
@@ -290,7 +290,7 @@ public static function loadSymfonyConfigFiles(ContainerBuilder $container, strin
         $writeTargetConf = $containerConfig[self::CONFIG_LOCATION][$configKey][self::WRITE_TARGET];
 
         $configDir = null;
-        if($readTargetConf !== null) {
+        if ($readTargetConf !== null) {
             if ($readTargetConf[self::TYPE] === LocationAwareConfigRepository::LOCATION_SETTINGS_STORE ||
                 ($readTargetConf[self::TYPE] !== LocationAwareConfigRepository::LOCATION_SYMFONY_CONFIG && $writeTargetConf[self::TYPE] !== LocationAwareConfigRepository::LOCATION_SYMFONY_CONFIG)
             ) {
diff --git a/lib/Document/Renderer/DocumentRenderer.php b/lib/Document/Renderer/DocumentRenderer.php
index 6f0c9e20841..70ffad47bf8 100644
--- a/lib/Document/Renderer/DocumentRenderer.php
+++ b/lib/Document/Renderer/DocumentRenderer.php
@@ -92,10 +92,10 @@ public function render(Document\PageSnippet $document, array $attributes = [], a
         } catch (\Exception $e) {
 
             $host = null;
-            if($site = Frontend::getSiteForDocument($document)) {
+            if ($site = Frontend::getSiteForDocument($document)) {
                 Site::setCurrentSite($site);
                 $host = $site->getMainDomain();
-            } elseif($systemMainDomain = Tool::getHostname()) {
+            } elseif ($systemMainDomain = Tool::getHostname()) {
                 $host = $systemMainDomain;
             }
 
@@ -104,7 +104,7 @@ public function render(Document\PageSnippet $document, array $attributes = [], a
 
         if ($attributes['pimcore_static_page_generator'] ?? false) {
             $headers = \Pimcore\Config::getSystemConfiguration('documents')['static_page_generator']['headers'];
-            foreach($headers as $header) {
+            foreach ($headers as $header) {
                 $request->headers->set($header['name'], $header['value']);
             }
         }
diff --git a/lib/Document/StaticPageGenerator.php b/lib/Document/StaticPageGenerator.php
index 05448f08ab0..4b7118b81db 100644
--- a/lib/Document/StaticPageGenerator.php
+++ b/lib/Document/StaticPageGenerator.php
@@ -51,7 +51,7 @@ public function getStoragePath(Document\PageSnippet $document): string
             $mainDomain = '/' . $systemConfig['general']['domain'];
             $returnPath = '';
             $pathInfo = pathinfo($path);
-            if($pathInfo['dirname'] != '') {
+            if ($pathInfo['dirname'] != '') {
                 $directories = explode('/', $pathInfo['dirname']);
                 $directories = array_filter($directories);
                 $pathString = '';
diff --git a/lib/Helper/GotenbergHelper.php b/lib/Helper/GotenbergHelper.php
index bbc83ef7071..dec21332657 100644
--- a/lib/Helper/GotenbergHelper.php
+++ b/lib/Helper/GotenbergHelper.php
@@ -47,14 +47,14 @@ public static function isAvailable(): bool
 
         /** @var GotenbergAPI|object $chrome */
         $chrome = GotenbergAPI::chromium(Config::getSystemConfiguration('gotenberg')['base_url']);
-        if(method_exists($chrome, 'html')) {
+        if (method_exists($chrome, 'html')) {
             // gotenberg/gotenberg-php API Client v1
             $request = $chrome->html(Stream::string('dummy.html', '<body></body>'));
-        } elseif(method_exists($chrome, 'screenshot')) {
+        } elseif (method_exists($chrome, 'screenshot')) {
             $request = $chrome->screenshot()->html(Stream::string('dummy.html', '<body></body>'));
         }
 
-        if($request) {
+        if ($request) {
             try {
                 GotenbergAPI::send($request);
                 self::$validPing = true;
diff --git a/lib/Image/HtmlToImage.php b/lib/Image/HtmlToImage.php
index b858f026c1e..b17378d10f9 100644
--- a/lib/Image/HtmlToImage.php
+++ b/lib/Image/HtmlToImage.php
@@ -43,7 +43,7 @@ public static function isSupported(): bool
 
     private static function getSupportedAdapter(): string
     {
-        if(self::$supportedAdapter !== null) {
+        if (self::$supportedAdapter !== null) {
             return self::$supportedAdapter;
         }
 
@@ -52,7 +52,7 @@ private static function getSupportedAdapter(): string
         if (GotenbergHelper::isAvailable()) {
             /** @var GotenbergAPI|object $chrome */
             $chrome = GotenbergAPI::chromium(Config::getSystemConfiguration('gotenberg')['base_url']);
-            if(method_exists($chrome, 'screenshot')) {
+            if (method_exists($chrome, 'screenshot')) {
                 // only v2 of Gotenberg lib is supported
                 self::$supportedAdapter = 'gotenberg';
             }
@@ -62,7 +62,7 @@ private static function getSupportedAdapter(): string
             $chromiumUri = \Pimcore\Config::getSystemConfiguration('chromium')['uri'];
             if (!empty($chromiumUri)) {
                 try {
-                    if((new Connection($chromiumUri))->connect()) {
+                    if ((new Connection($chromiumUri))->connect()) {
                         self::$supportedAdapter = 'chromium';
                     }
                 } catch (\Exception $e) {
@@ -71,7 +71,7 @@ private static function getSupportedAdapter(): string
                 }
             }
 
-            if(self::getChromiumBinary()) {
+            if (self::getChromiumBinary()) {
                 self::$supportedAdapter = 'chromium';
             }
         }
@@ -97,7 +97,7 @@ public static function getChromiumBinary(): ?string
     public static function convert(string $url, string $outputFile, ?string $sessionName = null, ?string $sessionId = null, string $windowSize = '1280,1024'): bool
     {
         $adapter = self::getSupportedAdapter();
-        if($adapter === 'gotenberg') {
+        if ($adapter === 'gotenberg') {
             return self::convertGotenberg(...func_get_args());
         } elseif ($adapter === 'chromium') {
             return self::convertChromium(...func_get_args());
@@ -114,7 +114,7 @@ public static function convertGotenberg(string $url, string $outputFile, ?string
         try {
             /** @var GotenbergAPI|object $request */
             $request = GotenbergAPI::chromium(Config::getSystemConfiguration('gotenberg')['base_url']);
-            if(method_exists($request, 'screenshot')) {
+            if (method_exists($request, 'screenshot')) {
                 $sizes = explode(',', $windowSize);
                 $urlResponse = $request->screenshot()
                     ->width((int) $sizes[0])
diff --git a/lib/Kernel.php b/lib/Kernel.php
index a8662a8c995..74f4ac2e04e 100644
--- a/lib/Kernel.php
+++ b/lib/Kernel.php
@@ -101,7 +101,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
                 $readTargetConf = $containerConfig[LocationAwareConfigRepository::CONFIG_LOCATION][$configKey][LocationAwareConfigRepository::READ_TARGET] ?? null;
 
                 $configDir = null;
-                if($readTargetConf !== null) {
+                if ($readTargetConf !== null) {
                     if ($readTargetConf[LocationAwareConfigRepository::TYPE] === LocationAwareConfigRepository::LOCATION_SETTINGS_STORE ||
                         ($readTargetConf[LocationAwareConfigRepository::TYPE] !== LocationAwareConfigRepository::LOCATION_SYMFONY_CONFIG && $writeTargetConf[LocationAwareConfigRepository::TYPE] !== LocationAwareConfigRepository::LOCATION_SYMFONY_CONFIG)
                     ) {
@@ -113,7 +113,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
                     }
                 }
 
-                if($configDir === null) {
+                if ($configDir === null) {
                     $configDir = rtrim($writeTargetConf[LocationAwareConfigRepository::OPTIONS][LocationAwareConfigRepository::DIRECTORY], '/\\');
                 }
                 $configDir = "$configDir/";
diff --git a/lib/Mail.php b/lib/Mail.php
index 0b4e5764c57..ddff4ad6dff 100644
--- a/lib/Mail.php
+++ b/lib/Mail.php
@@ -161,7 +161,7 @@ public function __construct($headers = null, $body = null, string $contentType =
      */
     public function init(string $type = 'email', ?array $config = null): void
     {
-        if(empty($config)) {
+        if (empty($config)) {
             $config = Config::getSystemConfiguration($type);
         }
 
diff --git a/lib/Mail/Mailer.php b/lib/Mail/Mailer.php
index d6c41bfa212..1f6079a2060 100644
--- a/lib/Mail/Mailer.php
+++ b/lib/Mail/Mailer.php
@@ -41,7 +41,7 @@ public function send(RawMessage $message, Envelope $envelope = null): void
             $this->redirectPlugin->beforeSendPerformed($message);
         }
 
-        if($message instanceof Message && !$message->getHeaders()->has('X-Transport')) {
+        if ($message instanceof Message && !$message->getHeaders()->has('X-Transport')) {
             $message->getHeaders()->addTextHeader('X-Transport', 'main');
         }
 
diff --git a/lib/Maintenance/Tasks/DataObject/CleanupBrickTablesTaskHelper.php b/lib/Maintenance/Tasks/DataObject/CleanupBrickTablesTaskHelper.php
index 87f5f941747..35572b77747 100644
--- a/lib/Maintenance/Tasks/DataObject/CleanupBrickTablesTaskHelper.php
+++ b/lib/Maintenance/Tasks/DataObject/CleanupBrickTablesTaskHelper.php
@@ -39,7 +39,7 @@ public function cleanupCollectionTable(): void
         $collectionNames =
             $this->helper->getCollectionNames(self::PIMCORE_OBJECTBRICK_CLASS_DIRECTORY);
 
-        if(empty($collectionNames)) {
+        if (empty($collectionNames)) {
             return;
         }
 
diff --git a/lib/Maintenance/Tasks/DataObject/CleanupFieldcollectionTablesTaskHelper.php b/lib/Maintenance/Tasks/DataObject/CleanupFieldcollectionTablesTaskHelper.php
index 064b09bdc93..995a164e278 100644
--- a/lib/Maintenance/Tasks/DataObject/CleanupFieldcollectionTablesTaskHelper.php
+++ b/lib/Maintenance/Tasks/DataObject/CleanupFieldcollectionTablesTaskHelper.php
@@ -39,7 +39,7 @@ public function cleanupCollectionTable(): void
         $collectionNames =
             $this->helper->getCollectionNames(self::PIMCORE_FIELDCOLLECTION_CLASS_DIRECTORY);
 
-        if(empty($collectionNames)) {
+        if (empty($collectionNames)) {
             return;
         }
 
diff --git a/lib/Security/SecurityHelper.php b/lib/Security/SecurityHelper.php
index 25722ceb4b0..edb2517d391 100644
--- a/lib/Security/SecurityHelper.php
+++ b/lib/Security/SecurityHelper.php
@@ -24,7 +24,7 @@ class SecurityHelper
 {
     public static function convertHtmlSpecialChars(?string $text): ?string
     {
-        if(is_string($text)) {
+        if (is_string($text)) {
             return htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8', false);
         }
 
diff --git a/lib/SystemSettingsConfig.php b/lib/SystemSettingsConfig.php
index 466e0abf7d8..9c42532ba20 100644
--- a/lib/SystemSettingsConfig.php
+++ b/lib/SystemSettingsConfig.php
@@ -74,7 +74,7 @@ public static function get(): array
         // If the read target is settings-store and no data is found there,
         // load the data from the container config
         // Please see https://github.com/pimcore/pimcore/issues/15596 for more information
-        if(!$data && $loadType === $repository::LOCATION_SETTINGS_STORE) {
+        if (!$data && $loadType === $repository::LOCATION_SETTINGS_STORE) {
             $data = self::getConfigValuesFromContainer()['config'];
             $data['writeable'] = $repository->isWriteable();
         }
diff --git a/lib/Tool/AssetsInstaller.php b/lib/Tool/AssetsInstaller.php
index db2647b7f2b..02371363d8a 100644
--- a/lib/Tool/AssetsInstaller.php
+++ b/lib/Tool/AssetsInstaller.php
@@ -132,11 +132,11 @@ private function configureOptions(OptionsResolver $resolver): void
             }
         }
 
-        if(in_array($_SERVER['SYMFONY_ASSETS_INSTALL'] ?? null, ['symlink', 'relative'])) {
+        if (in_array($_SERVER['SYMFONY_ASSETS_INSTALL'] ?? null, ['symlink', 'relative'])) {
             $defaults['symlink'] = true;
         }
 
-        if(($_SERVER['SYMFONY_ASSETS_INSTALL'] ?? null) === 'relative') {
+        if (($_SERVER['SYMFONY_ASSETS_INSTALL'] ?? null) === 'relative') {
             $defaults['relative'] = true;
         }
 
diff --git a/lib/Tool/Requirements.php b/lib/Tool/Requirements.php
index da97b50742f..ba6e7b6f749 100644
--- a/lib/Tool/Requirements.php
+++ b/lib/Tool/Requirements.php
@@ -410,7 +410,7 @@ public static function checkExternalApplications(): array
 
         // LibreOffice BIN
         $libreofficeGotenberg = GotenbergHelper::isAvailable();
-        if(!$libreofficeGotenberg) {
+        if (!$libreofficeGotenberg) {
             try {
                 $libreofficeGotenberg = (bool)\Pimcore\Document\Adapter\LibreOffice::getLibreOfficeCli();
             } catch (\Exception $e) {
diff --git a/lib/Twig/Extension/Templating/HeadScript.php b/lib/Twig/Extension/Templating/HeadScript.php
index 8cfd3bcedec..8db1dadc4c3 100644
--- a/lib/Twig/Extension/Templating/HeadScript.php
+++ b/lib/Twig/Extension/Templating/HeadScript.php
@@ -449,7 +449,7 @@ public function itemToString(\stdClass $item, string $indent, string $escapeStar
         $container = \Pimcore::getContainer();
 
         //@phpstan-ignore-next-line
-        if($container->has('pimcore_admin_bundle.content_security_policy_handler')) {
+        if ($container->has('pimcore_admin_bundle.content_security_policy_handler')) {
             $cspHandler = $container->get('pimcore_admin_bundle.content_security_policy_handler');
             $attrString .= $cspHandler->getNonceHtmlAttribute();
         }
diff --git a/models/Asset.php b/models/Asset.php
index 8efdea3c430..7bfacfd48c2 100644
--- a/models/Asset.php
+++ b/models/Asset.php
@@ -176,7 +176,7 @@ protected function getBlockedVars(): array
             // for caching asset
             $blockedVars = array_merge($blockedVars, ['children', 'properties']);
 
-            if($this->customSettingsCanBeCached === false) {
+            if ($this->customSettingsCanBeCached === false) {
                 $blockedVars[] = 'customSettings';
             }
         }
@@ -187,7 +187,7 @@ protected function getBlockedVars(): array
     public function __sleep(): array
     {
         $blockedVars = parent::__sleep();
-        if(in_array('customSettings', $blockedVars)) {
+        if (in_array('customSettings', $blockedVars)) {
             $this->customSettingsNeedRefresh = true;
         }
 
@@ -1266,7 +1266,7 @@ public function getLocalFile(): string
 
     private function refreshCustomSettings(): void
     {
-        if($this->customSettingsNeedRefresh === true) {
+        if ($this->customSettingsNeedRefresh === true) {
             $customSettings = $this->getDao()->getCustomSettings();
             $this->setCustomSettings($customSettings);
             $this->customSettingsNeedRefresh = false;
@@ -1310,7 +1310,7 @@ public function getCustomSettings(): array
     public function setCustomSettings(mixed $customSettings): static
     {
         if (is_string($customSettings)) {
-            if(strlen($customSettings) > 10e6) {
+            if (strlen($customSettings) > 10e6) {
                 $this->customSettingsCanBeCached = false;
             }
 
@@ -1603,7 +1603,7 @@ public function __wakeup(): void
             $this->renewInheritedProperties();
         }
 
-        if(!$this->isInDumpState() && $this->customSettingsCanBeCached === false) {
+        if (!$this->isInDumpState() && $this->customSettingsCanBeCached === false) {
             $this->customSettingsNeedRefresh = true;
         }
 
diff --git a/models/Asset/Image/Thumbnail.php b/models/Asset/Image/Thumbnail.php
index 996ac6aac80..27f2be8b36b 100644
--- a/models/Asset/Image/Thumbnail.php
+++ b/models/Asset/Image/Thumbnail.php
@@ -461,7 +461,7 @@ private function getSrcset(Config $thumbConfig, Image $image, array $options, ?s
      */
     private function validate(): void
     {
-        if(!$this->asset || !$this->config) {
+        if (!$this->asset || !$this->config) {
             return;
         }
         if (!$this->checkAllowedFormats($this->config->getFormat(), $this->asset)) {
diff --git a/models/Asset/Service.php b/models/Asset/Service.php
index 38779bb403b..141b0f23020 100644
--- a/models/Asset/Service.php
+++ b/models/Asset/Service.php
@@ -445,7 +445,7 @@ public static function getImageThumbnailByArrayConfig(array $config): null|Thumb
                         }
                     }
 
-                    if(!empty($thumbnailFormats[$config['file_extension']]['quality'] ?? null)) {
+                    if (!empty($thumbnailFormats[$config['file_extension']]['quality'] ?? null)) {
                         $thumbnailConfig->setQuality($thumbnailFormats[$config['file_extension']]['quality']);
                     }
                 }
@@ -567,7 +567,7 @@ public static function getStreamedResponseForThumbnail(array $config, string $ur
         $storagePath = urldecode($uri);
 
         $prefix = \Pimcore\Config::getSystemConfiguration('assets')['frontend_prefixes']['thumbnail'];
-        if($prefix) {
+        if ($prefix) {
             $storagePath = preg_replace('/^' . preg_quote($prefix, '/') . '/', '', $storagePath);
         }
 
diff --git a/models/Asset/Thumbnail/ImageThumbnailTrait.php b/models/Asset/Thumbnail/ImageThumbnailTrait.php
index ad75bb93655..b1e54c8f910 100644
--- a/models/Asset/Thumbnail/ImageThumbnailTrait.php
+++ b/models/Asset/Thumbnail/ImageThumbnailTrait.php
@@ -433,7 +433,7 @@ public function getAsFormat(string $format): static
     private function checkAllowedFormats(string $format, ?Asset $asset = null): bool
     {
         $format = strtolower($format);
-        if($asset) {
+        if ($asset) {
             if (
                 $format === 'original' ||
                 $format === 'source'
diff --git a/models/DataObject/ClassDefinition/Data/DateRange.php b/models/DataObject/ClassDefinition/Data/DateRange.php
index c24bc9c3cf3..e239a346ead 100644
--- a/models/DataObject/ClassDefinition/Data/DateRange.php
+++ b/models/DataObject/ClassDefinition/Data/DateRange.php
@@ -360,7 +360,7 @@ public function getFieldType(): string
      */
     public function setColumnType(string|array $columnType): void
     {
-        if(is_array($columnType)) {
+        if (is_array($columnType)) {
             $this->columnType = $columnType;
         } else {
             $this->columnType = [
diff --git a/models/DataObject/ClassDefinition/Data/Input.php b/models/DataObject/ClassDefinition/Data/Input.php
index fa7bf1aaf6c..5b30f5f1a85 100644
--- a/models/DataObject/ClassDefinition/Data/Input.php
+++ b/models/DataObject/ClassDefinition/Data/Input.php
@@ -200,7 +200,7 @@ public function getQueryColumnType(): string
 
     public function checkValidity(mixed $data, bool $omitMandatoryCheck = false, array $params = []): void
     {
-        if(is_string($data)) {
+        if (is_string($data)) {
             if (!$omitMandatoryCheck && $this->getRegex() && $data !== '') {
                 $throwException = false;
                 if (in_array('g', $this->getRegexFlags())) {
diff --git a/models/DataObject/ClassDefinition/Data/Password.php b/models/DataObject/ClassDefinition/Data/Password.php
index 205efecefb8..c549079f268 100644
--- a/models/DataObject/ClassDefinition/Data/Password.php
+++ b/models/DataObject/ClassDefinition/Data/Password.php
@@ -74,7 +74,7 @@ public function setMinimumLength(?int $minimumLength): void
      */
     public function setAlgorithm(string $algorithm): void
     {
-        if($algorithm !== self::HASH_FUNCTION_PASSWORD_HASH) {
+        if ($algorithm !== self::HASH_FUNCTION_PASSWORD_HASH) {
             trigger_deprecation(
                 'pimcore/pimcore',
                 '11.2',
@@ -137,7 +137,7 @@ public function getDataForResource(mixed $data, DataObject\Concrete $object = nu
         }
 
         // is already a hashed string? Then do not re-hash
-        if($this->getAlgorithm() === self::HASH_FUNCTION_PASSWORD_HASH) {
+        if ($this->getAlgorithm() === self::HASH_FUNCTION_PASSWORD_HASH) {
             $info = password_get_info($data);
             if ($info['algo'] !== null && $info['algo'] !== 0) {
                 return $data;
diff --git a/models/DataObject/ClassDefinition/Data/ReverseObjectRelation.php b/models/DataObject/ClassDefinition/Data/ReverseObjectRelation.php
index e970e70ae78..96eb60b2687 100644
--- a/models/DataObject/ClassDefinition/Data/ReverseObjectRelation.php
+++ b/models/DataObject/ClassDefinition/Data/ReverseObjectRelation.php
@@ -75,7 +75,7 @@ public function getOwnerClassName(): ?string
                     return null;
                 }
                 $class = DataObject\ClassDefinition::getById($this->ownerClassId);
-                if($class instanceof DataObject\ClassDefinition) {
+                if ($class instanceof DataObject\ClassDefinition) {
                     $this->ownerClassName = $class->getName();
                 }
             } catch (\Exception $e) {
@@ -204,7 +204,7 @@ public function getFieldType(): string
 
     public function getClasses(): array
     {
-        if($this->getOwnerClassId()) {
+        if ($this->getOwnerClassId()) {
             return Model\Element\Service::fixAllowedTypes([$this->ownerClassName], 'classes');
         }
 
diff --git a/models/DataObject/ClassDefinition/Data/UrlSlug.php b/models/DataObject/ClassDefinition/Data/UrlSlug.php
index 8e7ad90b9c2..8492d39e96d 100644
--- a/models/DataObject/ClassDefinition/Data/UrlSlug.php
+++ b/models/DataObject/ClassDefinition/Data/UrlSlug.php
@@ -141,7 +141,7 @@ public function checkValidity(mixed $data, bool $omitMandatoryCheck = false, arr
                         throw new Model\Element\ValidationException('Slug must be at least 2 characters long and start with slash');
                     }
 
-                    if(preg_match_all('([?#])', $item->getSlug(), $matches)) {
+                    if (preg_match_all('([?#])', $item->getSlug(), $matches)) {
                         throw new Model\Element\ValidationException('Slug contains reserved characters! [' . implode(' ', array_unique($matches[0])) . ']');
                     }
                 }
diff --git a/models/DataObject/Classificationstore.php b/models/DataObject/Classificationstore.php
index 801a9444287..2e61dd427c0 100644
--- a/models/DataObject/Classificationstore.php
+++ b/models/DataObject/Classificationstore.php
@@ -94,7 +94,7 @@ public function setItems(array $items): static
     public function getItems(): array
     {
         $doGetInheritedValues = Model\DataObject::doGetInheritedValues();
-        if(!$doGetInheritedValues) {
+        if (!$doGetInheritedValues) {
             return $this->items;
         }
 
@@ -257,7 +257,7 @@ public function setFieldname(string $fieldname): void
     public function getActiveGroups(): array
     {
         $doGetInheritedValues = Model\DataObject::doGetInheritedValues();
-        if(!$doGetInheritedValues) {
+        if (!$doGetInheritedValues) {
             return $this->activeGroups;
         }
 
@@ -408,7 +408,7 @@ public static function doGetFallbackValues(): bool
     public function getGroupCollectionMappings(): array
     {
         $doGetInheritedValues = Model\DataObject::doGetInheritedValues();
-        if(!$doGetInheritedValues) {
+        if (!$doGetInheritedValues) {
             return $this->groupCollectionMapping;
         }
 
@@ -486,9 +486,9 @@ private function getGroupConfigById(int $groupId): ?Classificationstore\GroupCon
 
     private function mergeArrays(array $a1, array $a2): array
     {
-        foreach($a1 as $key => $value) {
-            if(array_key_exists($key, $a2)) {
-                if(is_array($value)) {
+        foreach ($a1 as $key => $value) {
+            if (array_key_exists($key, $a2)) {
+                if (is_array($value)) {
                     $a2[$key] = $this->mergeArrays($a2[$key], $value);
                 } else {
                     $a2[$key] = $value;
diff --git a/models/DataObject/SelectOptions/Traits/EnumGetValuesTrait.php b/models/DataObject/SelectOptions/Traits/EnumGetValuesTrait.php
index b9fa2b9f205..4bb07317e10 100644
--- a/models/DataObject/SelectOptions/Traits/EnumGetValuesTrait.php
+++ b/models/DataObject/SelectOptions/Traits/EnumGetValuesTrait.php
@@ -21,7 +21,7 @@ trait EnumGetValuesTrait
     /**
      * @return string[]
      */
-    public static function getValues(): array
+    public function getValues(): array
     {
         return array_column(static::cases(), 'value');
     }
diff --git a/models/Document/Editable/Wysiwyg.php b/models/Document/Editable/Wysiwyg.php
index 2f84a19d1a9..3008ae9c7b7 100644
--- a/models/Document/Editable/Wysiwyg.php
+++ b/models/Document/Editable/Wysiwyg.php
@@ -130,7 +130,7 @@ public function rewriteIds(array $idMapping): void
 
     public function save(): void
     {
-        if(is_string($this->text)) {
+        if (is_string($this->text)) {
             $helper = self::getWysiwygSanitizer();
             $this->text = $helper->sanitizeFor('body', $this->text);
         }
diff --git a/models/Element/AbstractElement.php b/models/Element/AbstractElement.php
index 6a5b52cfe34..a6ffbfa286f 100644
--- a/models/Element/AbstractElement.php
+++ b/models/Element/AbstractElement.php
@@ -163,7 +163,7 @@ public function getModificationDate(): ?int
 
     public function setModificationDate(int $modificationDate): static
     {
-        if($this->modificationDate != $modificationDate) {
+        if ($this->modificationDate != $modificationDate) {
             $this->markFieldDirty('modificationDate');
             $this->modificationDate = $modificationDate;
         }
diff --git a/models/Property/Dao.php b/models/Property/Dao.php
index 51caab37e10..d2f8295e0f9 100644
--- a/models/Property/Dao.php
+++ b/models/Property/Dao.php
@@ -45,9 +45,9 @@ public function save(): void
         }
 
         $cpath = $this->model->getCpath();
-        if(empty($cpath)) {
+        if (empty($cpath)) {
             $element = Model\Element\Service::getElementById($this->model->getCtype(), $this->model->getCid());
-            if($element instanceof Model\Element\ElementInterface) {
+            if ($element instanceof Model\Element\ElementInterface) {
                 $cpath = $element->getRealFullPath();
             }
         }
diff --git a/models/User.php b/models/User.php
index e70236a2967..c6f4d75d45a 100644
--- a/models/User.php
+++ b/models/User.php
@@ -469,7 +469,7 @@ public function getImage(?int $width = null, ?int $height = null)
                 $targetFile = File::getLocalTempFilePath('png');
 
                 $image = \Pimcore\Image::getInstance();
-                if($image->load($localFile)) {
+                if ($image->load($localFile)) {
                     $image->cover($width, $height);
                     $image->save($targetFile, 'png');
                     $storage->write($this->getThumbnailImageStoragePath(), file_get_contents($targetFile));


Test patch: