$results =
[];
foreach ($requirement['value'
]['directories'
] as $dir) { $result =
$this->
scanDirectoryForRegex( Shopware()->
DocPath($dir),
$requirement['value'
]['expression'
],
$requirement['value'
]['fileRegex'
] );
$results =
array_merge($results,
$result);
} $message =
$this->
extractLocalizedMessage($requirement['value'
]['message'
]);
if (empty($results)) { return null;
} $files =
array_keys($results);
return [ 'type' => self::CHECK_TYPE,
'errorLevel' =>
$requirement['level'
],
'message' =>
sprintf($message,
implode('<br>',
$files)),
];
}