This commit is contained in:
team 1
2026-05-06 17:44:07 +02:00
parent 2b9dcc6e5c
commit 8a2f4f3c67
5 changed files with 280 additions and 1 deletions

View File

@@ -63,7 +63,9 @@ final class ConfigSourceAuditCommand extends Command
['fallback_accessors_with_yaml' => (string) ($summary['fallback_accessors_with_yaml'] ?? 0)],
['fallback_accessors_missing_yaml' => (string) ($summary['fallback_accessors_missing_yaml'] ?? 0)],
['constructor_defaults' => (string) ($summary['constructor_defaults'] ?? 0)],
['constructor_defaults_without_yaml_mapping' => (string) ($summary['constructor_defaults_without_yaml_mapping'] ?? 0)]
['constructor_defaults_without_yaml_mapping' => (string) ($summary['constructor_defaults_without_yaml_mapping'] ?? 0)],
['genre_value_paths_with_source_paths' => (string) ($summary['genre_value_paths_with_source_paths'] ?? 0)],
['genre_declared_source_paths' => (string) ($summary['genre_declared_source_paths'] ?? 0)]
);
$warnings = is_array($result['warnings'] ?? null) ? $result['warnings'] : [];
@@ -98,5 +100,25 @@ final class ConfigSourceAuditCommand extends Command
$io->section('Fallback accessors');
$io->table(['Class', 'Line', 'Key', 'YAML', 'Source'], $fallbackRows);
}
$genreSourceRows = [];
foreach (($result['genre_configuration_source_paths'] ?? []) as $valuePath => $sourcePaths) {
if (!is_string($valuePath) || !is_array($sourcePaths)) {
continue;
}
foreach ($sourcePaths as $sourcePath) {
if (!is_string($sourcePath)) {
continue;
}
$genreSourceRows[] = [$valuePath, $sourcePath];
}
}
if ($genreSourceRows !== []) {
$io->section('Single-genre configuration source paths');
$io->table(['Genre value path', 'Legacy/effective source path'], $genreSourceRows);
}
}
}