Skip to content

Commit b6e79cf

Browse files
committed
#27536: Code review changes
1 parent 6cd1dac commit b6e79cf

File tree

2 files changed

+5
-54
lines changed

2 files changed

+5
-54
lines changed

app/code/Magento/MediaContent/Model/ModelProcessor.php

Lines changed: 0 additions & 54 deletions
This file was deleted.

app/code/Magento/MediaContentApi/Model/ExtractAssetFromContent.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ public function execute(string $content): array
6262
$paths = [];
6363

6464
foreach ($this->searchPatterns as $pattern) {
65+
if (empty($pattern)) {
66+
continue;
67+
}
68+
6569
preg_match_all($pattern, $content, $matches, PREG_PATTERN_ORDER);
70+
6671
if (!empty($matches[1])) {
6772
$paths += array_unique($matches[1]);
6873
}

0 commit comments

Comments
 (0)