Skip to content

Commit aa694ed

Browse files
committed
review changes
1 parent d7d3a49 commit aa694ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Console/Command/RemoveUnusedMediaCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
190190
}
191191

192192
$filePathWithoutCacheDir = preg_replace('#/cache_*/[a-z0-9]+(/[a-z0-9]/[a-z0-9]/.+?)#i', '$1', $filePath);
193-
if (key_exists($filePathWithoutCacheDir, $imagesToKeep)) {
193+
if (array_key_exists($filePathWithoutCacheDir, $imagesToKeep)) {
194194
continue;
195195
}
196196

@@ -199,7 +199,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
199199
continue;
200200
}
201201

202-
if (key_exists($filePath, $imagesToKeep)) {
202+
if (array_key_exists($filePath, $imagesToKeep)) {
203203
continue;
204204
}
205205

0 commit comments

Comments
 (0)