Skip to content

Commit 4767a66

Browse files
committed
Fixed code mess detector issue
1 parent 572a2d0 commit 4767a66

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/RemoteStorage/Driver/Adapter/Cache

1 file changed

+2
-2
lines changed

app/code/Magento/RemoteStorage/Driver/Adapter/Cache/Generic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* Generic cache implementation for filesystem storage.
16+
*
17+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
1618
*/
1719
class Generic implements CacheInterface
1820
{
@@ -194,11 +196,9 @@ public function getMetadata(string $path): ?array
194196
return null;
195197
}
196198
$meta = $this->serializer->unserialize($meta);
197-
198199
if (empty($meta[$path])) {
199200
return null;
200201
}
201-
202202
$this->cacheData[$path] = $meta[$path];
203203
return $this->cacheData[$path];
204204
}

0 commit comments

Comments
 (0)