<?php preg_match( string $pattern, string $subject, array &$matches = null, int $flags = 0, int $offset = 0): int|false
<?php } return collect(File::allFiles($directory))->map(function (SplFileInfo $file) { if (!preg_match('/^namespace\s+([^;]+)/m', $file->getContents(), $matches)) { return null; }