Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#869)
by Sebastian
03:10
created
Classes/Common/SolrSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
211 211
         // Add filter query for date search
212 212
         if (!empty($this->searchParams['dateFrom']) && !empty($this->searchParams['dateTo'])) {
213 213
             // combine dateFrom and dateTo into range search
214
-            $params['filterquery'][]['query'] = '{!join from=' . $fields['uid'] . ' to=' . $fields['uid'] . '}'. $fields['date'] . ':[' . $this->searchParams['dateFrom'] . ' TO ' . $this->searchParams['dateTo'] . ']';
214
+            $params['filterquery'][]['query'] = '{!join from=' . $fields['uid'] . ' to=' . $fields['uid'] . '}' . $fields['date'] . ':[' . $this->searchParams['dateFrom'] . ' TO ' . $this->searchParams['dateTo'] . ']';
215 215
         }
216 216
 
217 217
         // Add filter query for faceting.
Please login to merge, or discard this patch.
Classes/Controller/SearchController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,13 +107,13 @@
 block discarded – undo
107 107
         }
108 108
 
109 109
         // sanitize date search input
110
-        if(empty($this->searchParams['dateFrom']) && !empty($this->searchParams['dateTo'])) {
110
+        if (empty($this->searchParams['dateFrom']) && !empty($this->searchParams['dateTo'])) {
111 111
             $this->searchParams['dateFrom'] = '*';
112 112
         }
113
-        if(empty($this->searchParams['dateTo']) && !empty($this->searchParams['dateFrom'])) {
113
+        if (empty($this->searchParams['dateTo']) && !empty($this->searchParams['dateFrom'])) {
114 114
             $this->searchParams['dateTo'] = 'NOW';
115 115
         }
116
-        if($this->searchParams['dateFrom'] > $this->searchParams['dateTo']) {
116
+        if ($this->searchParams['dateFrom'] > $this->searchParams['dateTo']) {
117 117
             $tmpDate = $this->searchParams['dateFrom'];
118 118
             $this->searchParams['dateFrom'] = $this->searchParams['dateTo'];
119 119
             $this->searchParams['dateTo'] = $tmpDate;
Please login to merge, or discard this patch.
Classes/Common/Indexer.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
             $solrDoc->setField('title', $metadata['title'][0], self::$fields['fieldboost']['title']);
338 338
             $solrDoc->setField('volume', $metadata['volume'][0], self::$fields['fieldboost']['volume']);
339 339
             // verify date formatting
340
-            if(strtotime($metadata['date'][0])) {
340
+            if (strtotime($metadata['date'][0])) {
341 341
                 // do not alter dates YYYY or YYYY-MM or YYYY-MM-DD
342 342
                 if (
343 343
                     preg_match("/^[0-9]{4}$/", $metadata['date'][0]) 
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
                 ) {
347 347
                     $solrDoc->setField('date', $metadata['date'][0]);
348 348
                 // change date YYYYMMDD to YYYY-MM-DD
349
-                } elseif (preg_match("/^[0-9]{8}$/", $metadata['date'][0])){
349
+                } elseif (preg_match("/^[0-9]{8}$/", $metadata['date'][0])) {
350 350
                     $solrDoc->setField('date', date("Y-m-d", strtotime($metadata['date'][0])));
351 351
                 // convert any datetime to proper ISO extended datetime format and timezone for SOLR
352 352
                 } else {
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
                 ) {
347 347
                     $solrDoc->setField('date', $metadata['date'][0]);
348 348
                 // change date YYYYMMDD to YYYY-MM-DD
349
-                } elseif (preg_match("/^[0-9]{8}$/", $metadata['date'][0])){
349
+                } elseif (preg_match("/^[0-9]{8}$/", $metadata['date'][0])) {
350 350
                     $solrDoc->setField('date', date("Y-m-d", strtotime($metadata['date'][0])));
351 351
                 // convert any datetime to proper ISO extended datetime format and timezone for SOLR
352 352
                 } else {
@@ -549,7 +549,8 @@  discard block
 block discarded – undo
549 549
      *
550 550
      * @return \Solarium\Core\Query\DocumentInterface
551 551
      */
552
-    private static function getSolrDocument($updateQuery, $document, $unit, $fullText = '') {
552
+    private static function getSolrDocument($updateQuery, $document, $unit, $fullText = '')
553
+    {
553 554
         $solrDoc = $updateQuery->createDocument();
554 555
         // Create unique identifier from document's UID and unit's XML ID.
555 556
         $solrDoc->setField('id', $document->getUid() . $unit['id']);
@@ -573,7 +574,8 @@  discard block
 block discarded – undo
573 574
      *
574 575
      * @return array|string
575 576
      */
576
-    private static function removeAppendsFromAuthor($authors) {
577
+    private static function removeAppendsFromAuthor($authors)
578
+    {
577 579
         if (is_array($authors)) {
578 580
             foreach ($authors as $i => $author) {
579 581
                 $splitName = explode(chr(31), $author);
Please login to merge, or discard this patch.