Skip to content

Commit 64497c4

Browse files
committed
Fixed phpstan issues
1 parent 70bbb47 commit 64497c4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/EventSubscriber/UserSystem/SetUserTimezoneSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function setTimeZone(ControllerEvent $event): void
4949
}
5050

5151
//Fill with default value if needed
52-
if (null === $timezone && $this->localizationSettings !== '') {
52+
if (null === $timezone && $this->localizationSettings->timezone !== '') {
5353
$timezone = $this->localizationSettings->timezone;
5454
}
5555

src/Services/InfoProviderSystem/Providers/Element14Provider.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function getProviderKey(): string
7777

7878
public function isActive(): bool
7979
{
80-
return $this->settings->storeId !== null && $this->settings->apiKey !== '';
80+
return trim($this->settings->apiKey) !== '';
8181
}
8282

8383
/**
@@ -131,11 +131,6 @@ private function queryByTerm(string $term): array
131131
return $result;
132132
}
133133

134-
private function generateProductURL($sku): string
135-
{
136-
return 'https://' . $this->store_id . '/' . $sku;
137-
}
138-
139134
/**
140135
* @param array|null $datasheets
141136
* @return FileDTO[]|null Array of FileDTOs

0 commit comments

Comments
 (0)