We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 78-95 (lines=18) @@ | ||
| 75 | // Get collection's UID. |
|
| 76 | return '<input type="hidden" name="'.$this->prefixId.'[collection]" value="'.$list->metadata['options']['select'].'" />'; |
|
| 77 | ||
| 78 | } elseif (!empty($list->metadata['options']['params']['fq'])) { |
|
| 79 | ||
| 80 | // Get collection's UID from search metadata. |
|
| 81 | foreach ($list->metadata['options']['params']['fq'] as $id => $facet) { |
|
| 82 | ||
| 83 | $facetKeyVal = explode(':', $facet, 2); |
|
| 84 | ||
| 85 | if ($facetKeyVal[0] == 'collection_faceting' && !strpos($facetKeyVal[1], '" OR "')) { |
|
| 86 | ||
| 87 | $collectionId = tx_dlf_helper::getIdFromIndexName(trim($facetKeyVal[1], '(")'), 'tx_dlf_collections'); |
|
| 88 | ||
| 89 | } |
|
| 90 | ||
| 91 | } |
|
| 92 | ||
| 93 | return '<input type="hidden" name="'.$this->prefixId.'[collection]" value="'.$collectionId.'" />'; |
|
| 94 | ||
| 95 | } |
|
| 96 | ||
| 97 | return ''; |
|
| 98 | ||
| @@ 125-142 (lines=18) @@ | ||
| 122 | ||
| 123 | } |
|
| 124 | ||
| 125 | } elseif (!empty($list->metadata['options']['params']['fq'])) { |
|
| 126 | ||
| 127 | // Get document's UID from search metadata. |
|
| 128 | foreach ($list->metadata['options']['params']['fq'] as $id => $facet) { |
|
| 129 | ||
| 130 | $facetKeyVal = explode(':', $facet); |
|
| 131 | ||
| 132 | if ($facetKeyVal[0] == 'uid') { |
|
| 133 | ||
| 134 | $documentId = (int) substr($facetKeyVal[1], 1, strpos($facetKeyVal[1], ')')); |
|
| 135 | ||
| 136 | } |
|
| 137 | ||
| 138 | } |
|
| 139 | ||
| 140 | return '<input type="hidden" name="'.$this->prefixId.'[id]" value="'.$documentId.'" />'; |
|
| 141 | ||
| 142 | } |
|
| 143 | ||
| 144 | return ''; |
|
| 145 | ||