We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -365,8 +365,8 @@ |
||
365 | 365 | $searchResult['snippet'] = $doc['snippet']; |
366 | 366 | $searchResult['highlight'] = $doc['highlight']; |
367 | 367 | $searchResult['highlight_word'] = preg_replace('/^;|;$/', '', // remove ; at beginning or end |
368 | - preg_replace('/;+/', ';', // replace any multiple of ; with a single ; |
|
369 | - preg_replace('/[{~\d*}{\s+}{^=*\d+.*\d*}`~!@#$%\^&*()_|+-=?;:\'",.<>\{\}\[\]\\\]/', ';', $this->searchParams['query']))); // replace search operators and special characters with ; |
|
368 | + preg_replace('/;+/', ';', // replace any multiple of ; with a single ; |
|
369 | + preg_replace('/[{~\d*}{\s+}{^=*\d+.*\d*}`~!@#$%\^&*()_|+-=?;:\'",.<>\{\}\[\]\\\]/', ';', $this->searchParams['query']))); // replace search operators and special characters with ; |
|
370 | 370 | } |
371 | 371 | $documents[$doc['uid']]['searchResults'][] = $searchResult; |
372 | 372 | } |
@@ -38,15 +38,15 @@ |
||
38 | 38 | */ |
39 | 39 | private int $offset; |
40 | 40 | |
41 | - /** |
|
42 | - * Constructs SolrSearchQuery instance. |
|
43 | - * |
|
44 | - * @access public |
|
45 | - * |
|
46 | - * @param SolrSearch $solrSearch |
|
47 | - * |
|
48 | - * @return void |
|
49 | - */ |
|
41 | + /** |
|
42 | + * Constructs SolrSearchQuery instance. |
|
43 | + * |
|
44 | + * @access public |
|
45 | + * |
|
46 | + * @param SolrSearch $solrSearch |
|
47 | + * |
|
48 | + * @return void |
|
49 | + */ |
|
50 | 50 | public function __construct($solrSearch) |
51 | 51 | { |
52 | 52 | $this->solrSearch = $solrSearch; |
@@ -152,7 +152,7 @@ |
||
152 | 152 | // field for which highlighting is going to be performed, |
153 | 153 | // is required if you want to have OCR highlighting |
154 | 154 | $solrRequest->addParam('hl.ocr.fl', $this->fields['fulltext']); |
155 | - // return the coordinates of highlighted search as absolute coordinates |
|
155 | + // return the coordinates of highlighted search as absolute coordinates |
|
156 | 156 | $solrRequest->addParam('hl.ocr.absoluteHighlights', 'on'); |
157 | 157 | // max amount of snippets for a single page |
158 | 158 | $solrRequest->addParam('hl.snippets', '40'); |
@@ -29,10 +29,10 @@ |
||
29 | 29 | */ |
30 | 30 | class DocumentValidator |
31 | 31 | { |
32 | - /** |
|
33 | - * @access protected |
|
34 | - * @var Logger This holds the logger |
|
35 | - */ |
|
32 | + /** |
|
33 | + * @access protected |
|
34 | + * @var Logger This holds the logger |
|
35 | + */ |
|
36 | 36 | protected Logger $logger; |
37 | 37 | |
38 | 38 | /** |
@@ -130,11 +130,11 @@ |
||
130 | 130 | ); |
131 | 131 | } |
132 | 132 | } elseif ($annotationTarget->getObjectId()) { |
133 | - $objectTargetPages = []; |
|
133 | + $objectTargetPages = []; |
|
134 | 134 | foreach ($this->document->getCurrentDocument()->physicalStructureInfo as $physInfo) { |
135 | - $order = $physInfo['order']; |
|
135 | + $order = $physInfo['order']; |
|
136 | 136 | if ($order) { |
137 | - $objectTargetPages[] = $order; |
|
137 | + $objectTargetPages[] = $order; |
|
138 | 138 | } |
139 | 139 | } |
140 | 140 | if ($objectTargetPages) { |