Skip to content

Commit 0133c9f

Browse files
chore: fix linting errors
1 parent 41e9980 commit 0133c9f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/Components/CacheAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function extractNamespace(RedisTagAwareAdapter $adapter): string
136136

137137
private function getCacheAdapter(AdapterInterface $adapter): AdapterInterface
138138
{
139-
if ($adapter instanceof CacheDecorator) {
139+
if (class_exists('Shopware\Core\Framework\Adapter\Cache\CacheDecorator') && $adapter instanceof CacheDecorator) {
140140
// Do not declare function as static
141141
// @phpstan-ignore-next-line
142142
$func = \Closure::bind(fn () => $adapter->decorated, $adapter, $adapter::class);

src/Components/Health/HealthCollection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function sortByState(): void
3030
*/
3131
public function removeByIds(array $ids): void
3232
{
33+
/** @phpstan-ignore-next-line */
3334
$this->elements = array_filter($this->elements, static function (SettingsResult $result) use ($ids) {
3435
return !\in_array($result->id, $ids, true);
3536
});

src/FroshTools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static function formatSize(float $size): string
2828
}
2929

3030
$base = log($size) / log(1024);
31-
$suffix = ['', 'k', 'M', 'G', 'T'][floor($base)];
31+
$suffix = ['', 'k', 'M', 'G', 'T'][(int) floor($base)];
3232

3333
return round(1024 ** ($base - floor($base)), 2) . $suffix;
3434
}

src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-logs/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.sw-card__toolbar {
77
display: grid;
88
grid-template-columns: auto 1fr;
9-
grid-gap: 20px;
9+
gap: 20px;
1010
}
1111

1212
.sw-single-select {

0 commit comments

Comments
 (0)