@@ 55-68 (lines=14) @@ | ||
52 | * @param string $manifest_path The absolute path to the manifest that we're loading. |
|
53 | * @param array $path_map The path map to add the contents of the manifest to. |
|
54 | */ |
|
55 | protected function register_manifest( $manifest_path, &$path_map ) { |
|
56 | if ( ! is_readable( $manifest_path ) ) { |
|
57 | return; |
|
58 | } |
|
59 | ||
60 | $manifest = require $manifest_path; |
|
61 | if ( ! is_array( $manifest ) ) { |
|
62 | return; |
|
63 | } |
|
64 | ||
65 | foreach ( $manifest as $key => $data ) { |
|
66 | $this->register_record( $key, $data, $path_map ); |
|
67 | } |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * Registers an entry from the manifest in the path map. |
@@ 71-84 (lines=14) @@ | ||
68 | * @param string $manifest_path The absolute path to the manifest that we're loading. |
|
69 | * @param array $path_map The path map to add the contents of the manifest to. |
|
70 | */ |
|
71 | protected function register_manifest( $manifest_path, &$path_map ) { |
|
72 | if ( ! is_readable( $manifest_path ) ) { |
|
73 | return; |
|
74 | } |
|
75 | ||
76 | $manifest = require $manifest_path; |
|
77 | if ( ! is_array( $manifest ) ) { |
|
78 | return; |
|
79 | } |
|
80 | ||
81 | foreach ( $manifest as $key => $data ) { |
|
82 | $this->register_record( $key, $data, $path_map ); |
|
83 | } |
|
84 | } |
|
85 | ||
86 | /** |
|
87 | * Registers an entry from the manifest in the path map. |