fix p57
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user