Fixed phpstan issues
Some checks failed
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, sqlite) (push) Has been cancelled
Build assets artifact / Build assets artifact (push) Has been cancelled
Docker Image Build / docker (push) Has been cancelled
Docker Image Build (FrankenPHP) / docker (push) Has been cancelled
Static analysis / Static analysis (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, mysql) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.4, postgres) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.1, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.2, sqlite) (push) Has been cancelled
PHPUnit Tests / PHPUnit and coverage Test (PHP 8.3, sqlite) (push) Has been cancelled

This commit is contained in:
Jan Böhmer 2025-06-15 22:30:23 +02:00
parent 70bbb47850
commit 64497c4c0d
2 changed files with 2 additions and 7 deletions

View file

@ -49,7 +49,7 @@ final class SetUserTimezoneSubscriber implements EventSubscriberInterface
} }
//Fill with default value if needed //Fill with default value if needed
if (null === $timezone && $this->localizationSettings !== '') { if (null === $timezone && $this->localizationSettings->timezone !== '') {
$timezone = $this->localizationSettings->timezone; $timezone = $this->localizationSettings->timezone;
} }

View file

@ -77,7 +77,7 @@ class Element14Provider implements InfoProviderInterface
public function isActive(): bool public function isActive(): bool
{ {
return $this->settings->storeId !== null && $this->settings->apiKey !== ''; return trim($this->settings->apiKey) !== '';
} }
/** /**
@ -131,11 +131,6 @@ class Element14Provider implements InfoProviderInterface
return $result; return $result;
} }
private function generateProductURL($sku): string
{
return 'https://' . $this->store_id . '/' . $sku;
}
/** /**
* @param array|null $datasheets * @param array|null $datasheets
* @return FileDTO[]|null Array of FileDTOs * @return FileDTO[]|null Array of FileDTOs