| @@ 112-125 (lines=14) @@ | ||
| 109 | } |
|
| 110 | } |
|
| 111 | ||
| 112 | private function extractPluginList(array $array) { |
|
| 113 | if (isset($array['sabre']) && is_array($array['sabre'])) { |
|
| 114 | if (isset($array['sabre']['plugins']) && is_array($array['sabre']['plugins'])) { |
|
| 115 | if (isset($array['sabre']['plugins']['plugin'])) { |
|
| 116 | $items = $array['sabre']['plugins']['plugin']; |
|
| 117 | if (!is_array($items)) { |
|
| 118 | $items = [$items]; |
|
| 119 | } |
|
| 120 | return $items; |
|
| 121 | } |
|
| 122 | } |
|
| 123 | } |
|
| 124 | return []; |
|
| 125 | } |
|
| 126 | ||
| 127 | private function extractCollectionList(array $array) { |
|
| 128 | if (isset($array['sabre']) && is_array($array['sabre'])) { |
|
| @@ 127-140 (lines=14) @@ | ||
| 124 | return []; |
|
| 125 | } |
|
| 126 | ||
| 127 | private function extractCollectionList(array $array) { |
|
| 128 | if (isset($array['sabre']) && is_array($array['sabre'])) { |
|
| 129 | if (isset($array['sabre']['collections']) && is_array($array['sabre']['collections'])) { |
|
| 130 | if (isset($array['sabre']['collections']['collection'])) { |
|
| 131 | $items = $array['sabre']['collections']['collection']; |
|
| 132 | if (!is_array($items)) { |
|
| 133 | $items = [$items]; |
|
| 134 | } |
|
| 135 | return $items; |
|
| 136 | } |
|
| 137 | } |
|
| 138 | } |
|
| 139 | return []; |
|
| 140 | } |
|
| 141 | ||
| 142 | private function loadSabrePluginsFromInfoXml(array $plugins) { |
|
| 143 | foreach ($plugins as $plugin) { |
|