CodeExplorer getRecursiveArrayKeys example
$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());
foreach ($this->
getRecursiveArrayKeys($json) as $keyValue) { $snippetFileMappings[$snippetFile->
getIso()][key($keyValue)] =
[ 'path' =>
str_ireplace($this->projectDir, '',
$snippetFile->
getPath()),
'availableValue' =>
array_shift($keyValue),
];
} } return $this->
findMissingSnippets($snippetFileMappings,
$availableISOs);
} protected function getAllFiles(): SnippetFileCollection
{