diff --git a/Classes/Asset/EntrypointLookupCollection.php b/Classes/Asset/EntrypointLookupCollection.php index d7efe28..d080f92 100644 --- a/Classes/Asset/EntrypointLookupCollection.php +++ b/Classes/Asset/EntrypointLookupCollection.php @@ -32,7 +32,7 @@ public function __construct(EntryLookupFactoryInterface $entryLookupFactory, str public function getEntrypointLookup(string $buildName = null): EntrypointLookupInterface { - if ($this->buildEntrypoints === null) { + if (null === $this->buildEntrypoints) { $this->buildEntrypoints = $this->entryLookupFactory->getCollection(); } if (null === $buildName) { diff --git a/Classes/Integration/AssetRegistry.php b/Classes/Integration/AssetRegistry.php index e9cd245..375c939 100644 --- a/Classes/Integration/AssetRegistry.php +++ b/Classes/Integration/AssetRegistry.php @@ -54,7 +54,7 @@ public function getRegisteredFiles(): array public function getDefaultAttributes(): array { - if (count($this->defaultAttributes) === 0) { + if (0 === count($this->defaultAttributes)) { $this->defaultAttributes['crossorigin'] = $this->settingsService->getStringByPath('preload.crossorigin'); } return $this->defaultAttributes;