Passed
Pull Request — master (#123)
by
unknown
05:05
created
Classes/Common/Solr/SolrSearch.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -525,8 +525,8 @@
 block discarded – undo
525 525
                                 $searchResult['snippet'] = $doc['snippet'];
526 526
                                 $searchResult['highlight'] = $doc['highlight'];
527 527
                                 $searchResult['highlight_word'] = preg_replace('/^;|;$/', '',       // remove ; at beginning or end
528
-                                                                  preg_replace('/;+/', ';',         // replace any multiple of ; with a single ;
529
-                                                                  preg_replace('/[{~\d*}{\s+}{^=*\d+.*\d*}`~!@#$%\^&*()_|+-=?;:\'",.<>\{\}\[\]\\\]/', ';', $this->searchParams['query']))); // replace search operators and special characters with ;
528
+                                                                    preg_replace('/;+/', ';',         // replace any multiple of ; with a single ;
529
+                                                                    preg_replace('/[{~\d*}{\s+}{^=*\d+.*\d*}`~!@#$%\^&*()_|+-=?;:\'",.<>\{\}\[\]\\\]/', ';', $this->searchParams['query']))); // replace search operators and special characters with ;
530 530
                             }
531 531
                             $documents[$doc['uid']]['searchResults'][] = $searchResult;
532 532
                         }
Please login to merge, or discard this patch.
Classes/Middleware/SearchInDocument.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Classes/Validation/DocumentValidator.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Classes/Common/DocumentAnnotation.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,11 +130,11 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.