getAllFiles example

private readonly SnippetFileCollection $deprecatedSnippetFiles,
        private readonly SnippetFileHandler $snippetFileHandler,
        private readonly string $projectDir
    ) {
    }

    /** * @return array<string, mixed> */
    public function validate(): array
    {
        $files = $this->getAllFiles();

        $snippetFileMappings = [];
        $availableISOs = [];
        foreach ($files as $snippetFile) {
            $availableISOs[] = $snippetFile->getIso();

            if (!\array_key_exists($snippetFile->getIso()$snippetFileMappings)) {
                $snippetFileMappings[$snippetFile->getIso()] = [];
            }

            $json = $this->snippetFileHandler->openJsonFile($snippetFile->getPath());

            
Home | Imprint | This part of the site doesn't use cookies.