We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -107,6 +107,6 @@ |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | private function getUid($uid) { |
| 110 | - return is_numeric($uid) > 0 ? intval($uid) : $uid; |
|
| 110 | + return is_numeric($uid) > 0 ? intval($uid) : $uid; |
|
| 111 | 111 | } |
| 112 | 112 | } |
@@ -102,11 +102,13 @@ |
||
| 102 | 102 | return $response; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - private function getQuery($fields, $parameters) { |
|
| 105 | + private function getQuery($fields, $parameters) |
|
| 106 | + { |
|
| 106 | 107 | return $fields['fulltext'] . ':(' . Solr::escapeQuery((string) $parameters['q']) . ') AND ' . $fields['uid'] . ':' . $this->getUid($parameters['uid']); |
| 107 | 108 | } |
| 108 | 109 | |
| 109 | - private function getUid($uid) { |
|
| 110 | + private function getUid($uid) |
|
| 111 | + { |
|
| 110 | 112 | return is_numeric($uid) > 0 ? intval($uid) : $uid; |
| 111 | 113 | } |
| 112 | 114 | } |
@@ -653,15 +653,15 @@ |
||
| 653 | 653 | public abstract function getFullText($id); |
| 654 | 654 | |
| 655 | 655 | /** |
| 656 | - * This extracts the OCR full text for a physical structure node / IIIF Manifest / Canvas from an |
|
| 657 | - * XML full text representation (currently only ALTO). For IIIF manifests, ALTO documents have |
|
| 658 | - * to be given in the Canvas' / Manifest's "seeAlso" property. |
|
| 659 | - * |
|
| 660 | - * @param string $id: The @ID attribute of the physical structure node (METS) or the @id property |
|
| 661 | - * of the Manifest / Range (IIIF) |
|
| 662 | - * |
|
| 663 | - * @return string The OCR full text |
|
| 664 | - */ |
|
| 656 | + * This extracts the OCR full text for a physical structure node / IIIF Manifest / Canvas from an |
|
| 657 | + * XML full text representation (currently only ALTO). For IIIF manifests, ALTO documents have |
|
| 658 | + * to be given in the Canvas' / Manifest's "seeAlso" property. |
|
| 659 | + * |
|
| 660 | + * @param string $id: The @ID attribute of the physical structure node (METS) or the @id property |
|
| 661 | + * of the Manifest / Range (IIIF) |
|
| 662 | + * |
|
| 663 | + * @return string The OCR full text |
|
| 664 | + */ |
|
| 665 | 665 | protected function getFullTextFromXml($id) |
| 666 | 666 | { |
| 667 | 667 | $fullText = ''; |