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
Push — master ( 61a64e...98ff13 )
by
unknown
03:41
created
Classes/Controller/CalendarController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
         $this->view->assign('calendarData', $calendarData);
135 135
         $this->view->assign('documentId', $this->document->getUid());
136 136
         $this->view->assign('yearLinkTitle', $yearLinkTitle);
137
-        $this->view->assign('parentDocumentId', $this->document->getPartof() ?: $this->document->getCurrentDocument()->tableOfContents[0]['points']);
138
-        $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle($this->document->getPartof()) ?: $this->document->getCurrentDocument()->tableOfContents[0]['label']);
137
+        $this->view->assign('parentDocumentId', $this->document->getPartof() ? : $this->document->getCurrentDocument()->tableOfContents[0]['points']);
138
+        $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle($this->document->getPartof()) ? : $this->document->getCurrentDocument()->tableOfContents[0]['label']);
139 139
     }
140 140
 
141 141
     /**
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         }
221 221
 
222 222
         $this->view->assign('documentId', $this->document->getUid());
223
-        $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle((int) $this->document->getUid()) ?: $this->document->getCurrentDocument()->tableOfContents[0]['label']);
223
+        $this->view->assign('allYearDocTitle', $this->document->getCurrentDocument()->getTitle((int) $this->document->getUid()) ? : $this->document->getCurrentDocument()->tableOfContents[0]['label']);
224 224
     }
225 225
 
226 226
     /**
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
             foreach ($year['children'] as $month) {
490 490
                 foreach ($month['children'] as $day) {
491 491
                     foreach ($day['children'] as $issue) {
492
-                        $title = $issue['label'] ?: $issue['orderlabel'];
492
+                        $title = $issue['label'] ? : $issue['orderlabel'];
493 493
                         if (strtotime($title) !== false) {
494 494
                             $title = strftime('%x', strtotime($title));
495 495
                         }
Please login to merge, or discard this patch.
Classes/Controller/MetadataController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
                     $this->parseMetadata($i, $name, $value, $metadata);
174 174
 
175 175
                     if (is_array($metadata[$i][$name])) {
176
-                        $metadata[$i][$name] = array_values(array_filter($metadata[$i][$name], function ($metadataValue) {
176
+                        $metadata[$i][$name] = array_values(array_filter($metadata[$i][$name], function($metadataValue) {
177 177
                             return !empty($metadataValue);
178 178
                         }));
179 179
                     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,8 @@
 block discarded – undo
173 173
                     $this->parseMetadata($i, $name, $value, $metadata);
174 174
 
175 175
                     if (is_array($metadata[$i][$name])) {
176
-                        $metadata[$i][$name] = array_values(array_filter($metadata[$i][$name], function ($metadataValue) {
176
+                        $metadata[$i][$name] = array_values(array_filter($metadata[$i][$name], function ($metadataValue)
177
+                        {
177 178
                             return !empty($metadataValue);
178 179
                         }));
179 180
                     }
Please login to merge, or discard this patch.
Classes/Controller/OaiPmhController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -729,7 +729,7 @@
 block discarded – undo
729 729
      */
730 730
     private function getDate(string $dateType)
731 731
     {
732
-        return strptime($this->parameters[$dateType], '%Y-%m-%dT%H:%M:%SZ') ?: strptime($this->parameters[$dateType], '%Y-%m-%d');
732
+        return strptime($this->parameters[$dateType], '%Y-%m-%dT%H:%M:%SZ') ? : strptime($this->parameters[$dateType], '%Y-%m-%d');
733 733
     }
734 734
 
735 735
     /**
Please login to merge, or discard this patch.
Classes/Format/AudioVideoMD.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             $metadata['video_duration'] = [$videoDuration];
54 54
         }
55 55
 
56
-        $metadata['duration'] = $metadata['video_duration'] ?: $metadata['audio_duration'] ?: [];
56
+        $metadata['duration'] = $metadata['video_duration'] ? : $metadata['audio_duration'] ? : [];
57 57
 
58 58
         if ($useExternalApis) {
59 59
             // TODO?
Please login to merge, or discard this patch.
Classes/Common/MetsDocument.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -736,7 +736,8 @@
 block discarded – undo
736 736
 
737 737
         return array_filter(
738 738
             $allMdIds,
739
-            function ($element) {
739
+            function ($element)
740
+            {
740 741
                 return !empty($element);
741 742
             }
742 743
         );
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
         $mets = $this->mets
292 292
             ->xpath(
293 293
                 './mets:structMap[@TYPE="PHYSICAL"]' .
294
-                '//mets:div[@ID="' .  $pageId .  '"]' .
295
-                '/mets:fptr[@FILEID="' .  $fileId .  '"]' .
294
+                '//mets:div[@ID="' . $pageId . '"]' .
295
+                '/mets:fptr[@FILEID="' . $fileId . '"]' .
296 296
                 '/mets:area/@BEGIN'
297 297
             );
298 298
         return empty($mets) ? '' : $mets[0]->__toString();
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
         $cPid = max($cPid, 0);
547 547
         if ($cPid == 0 && ($this->cPid || $this->pid)) {
548 548
             // Retain current PID.
549
-            $cPid = $this->cPid ?: $this->pid;
549
+            $cPid = $this->cPid ? : $this->pid;
550 550
         }
551 551
         return $cPid;
552 552
     }
@@ -1107,7 +1107,7 @@  discard block
 block discarded – undo
1107 1107
 
1108 1108
         return array_filter(
1109 1109
             $allMdIds,
1110
-            function ($element) {
1110
+            function($element) {
1111 1111
                 return !empty($element);
1112 1112
             }
1113 1113
         );
@@ -1513,7 +1513,7 @@  discard block
 block discarded – undo
1513 1513
             // Get track info wtih begin end extent time for later assignment with musical
1514 1514
             if ((string) $elementNode['TYPE'] === 'track') {
1515 1515
                 foreach ($elementNode->children('http://www.loc.gov/METS/')->fptr as $fptr) {
1516
-                    if (isset($fptr->area) &&  ((string) $fptr->area->attributes()->BETYPE === 'TIME')) {
1516
+                    if (isset($fptr->area) && ((string) $fptr->area->attributes()->BETYPE === 'TIME')) {
1517 1517
                         // Check if file has valid @USE attribute.
1518 1518
                         if (!empty($fileUse[(string) $fptr->area->attributes()->FILEID])) {
1519 1519
                             $this->physicalStructureInfo[$elements[(int) $elementNode['ORDER']]]['tracks'][$fileUse[(string) $fptr->area->attributes()->FILEID]] = [
@@ -1567,7 +1567,7 @@  discard block
 block discarded – undo
1567 1567
             || $forceReload
1568 1568
         ) {
1569 1569
             // Retain current PID.
1570
-            $cPid = $this->cPid ?: $this->pid;
1570
+            $cPid = $this->cPid ? : $this->pid;
1571 1571
             if (!$cPid) {
1572 1572
                 $this->logger->error('Invalid PID ' . $cPid . ' for structure definitions');
1573 1573
                 $this->thumbnailLoaded = true;
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.
Tests/Functional/ViewHelpers/MetadataWrapVariableViewHelperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $view->assign(
36 36
             'configObject',
37
-            [ 'wrap' => 'all.wrap = <article class="shlb-metadata-text-item metadata-title">|</article>
37
+            ['wrap' => 'all.wrap = <article class="shlb-metadata-text-item metadata-title">|</article>
38 38
                  key.wrap = <label>|</label>
39 39
                  value.required = 1
40 40
                  value.wrap = <li>|</li>'
Please login to merge, or discard this patch.
Tests/Unit/Common/HelperTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 <root>
51 51
     <single />
52 52
 </root>
53
-XML;
53
+xml;
54 54
         $node = Helper::getXmlFileAsString($xml);
55 55
         self::assertIsObject($node);
56 56
         self::assertEquals('root', $node->getName());
Please login to merge, or discard this patch.
Classes/Controller/AbstractController.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
         $pages = [];
332 332
         $pagesSect = [];
333 333
         $aRange = [];
334
-        $nRange = 5;    // ToDo: should be made configurable
334
+        $nRange = 5; // ToDo: should be made configurable
335 335
 
336 336
         // lower limit of the range
337 337
         $nBottom = $currentPageNumber - $nRange;
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 
347 347
         // check whether the first screen page is > 1, if yes then points must be added
348 348
         if ($aRange[0] > 1) {
349
-            array_push($pagesSect, ['label' => '...','startRecordNumber' => '...']);
349
+            array_push($pagesSect, ['label' => '...', 'startRecordNumber' => '...']);
350 350
         };
351 351
         $lastStartRecordNumberGrid = 0; // due to validity outside the loop
352 352
         foreach (range($firstPage, $lastPage) as $i) {
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
 
390 390
                 // Check if screen page is in range
391 391
                 if (in_array($i, $aRange)) {
392
-                    array_push($pagesSect, ['label' => $i,'startRecordNumber' => $startRecordNumber]);
392
+                    array_push($pagesSect, ['label' => $i, 'startRecordNumber' => $startRecordNumber]);
393 393
                 };
394 394
             };
395 395
         };
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -351,7 +351,8 @@  discard block
 block discarded – undo
351 351
         $lastStartRecordNumberGrid = 0; // due to validity outside the loop
352 352
         foreach (range($firstPage, $lastPage) as $i) {
353 353
             // detect which pagination is active: ListView or GridView
354
-            if (get_class($pagination) == 'TYPO3\CMS\Core\Pagination\SimplePagination') {  // ListView
354
+            if (get_class($pagination) == 'TYPO3\CMS\Core\Pagination\SimplePagination') {
355
+// ListView
355 356
                 $lastStartRecordNumberGrid = $i; // save last $startRecordNumber for LastPage button
356 357
 
357 358
                 $pages[$i] = [
@@ -364,7 +365,8 @@  discard block
 block discarded – undo
364 365
                 if (in_array($i, $aRange)) {
365 366
                     array_push($pagesSect, ['label' => $i, 'startRecordNumber' => $i]);
366 367
                 };
367
-            } else { // GridView
368
+            } else {
369
+// GridView
368 370
                 // to calculate the values for generation the links for the pagination pages
369 371
                 /** @var \Kitodo\Dlf\Pagination\PageGridPaginator $paginator */
370 372
                 $itemsPerPage = $paginator->getPublicItemsPerPage();
Please login to merge, or discard this patch.