/**
* @return list<array<string, mixed>>
*/
private function parseExamples(\ReflectionMethod
$method, DocBlock
$docBlock): array
{ $examples =
[];
/** @var Example $example */
foreach ($docBlock->
getTagsByName('example'
) as $example) { $finder =
new Finder();
$finder->
files() ->
in([__DIR__ . '/../../../../', __DIR__ . '/../../../../../tests'
]) // exclude js files including node_modules for performance reasons, filtering with `notPath`, etc. has no performance impact
// note that excluded paths need to be relative to platform/src and that no wildcards are supported
->
exclude([ 'Administration/Resources',
'Storefront/Resources',
'Recovery',
]) ->
path($example->
getFilePath()) ->
ignoreUnreadableDirs();