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 (#852)
by Beatrycze
09:11
created
Classes/Common/MetsDocument.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -412,7 +412,8 @@  discard block
 block discarded – undo
412 412
         return $details;
413 413
     }
414 414
 
415
-    private function getLogicalStructureFor3D($details) {
415
+    private function getLogicalStructureFor3D($details)
416
+    {
416 417
         // add description and identifier for 3D objects
417 418
         if ($details['type'] == 'collection' || $details['type'] == 'object') {
418 419
             $metadata = $this->getMetadata($details['id']);
@@ -710,7 +711,8 @@  discard block
 block discarded – undo
710 711
             }
711 712
         }
712 713
 
713
-        return array_filter($allMdIds, function ($element) {
714
+        return array_filter($allMdIds, function ($element)
715
+        {
714 716
             return !empty($element);
715 717
         });
716 718
     }
Please login to merge, or discard this patch.
Classes/Controller/TableOfContentsController.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
             return $this->isLicenceFound($entry);
404 404
         } else if (!empty($this->requestData['type'])) {
405 405
             return $this->isTypeFound($entry);
406
-        }  else if (!empty($this->requestData['type'])) {
406
+        } else if (!empty($this->requestData['type'])) {
407 407
             return $this->isSoftwareFound($entry);
408 408
         } else {
409 409
             // no parameters so entry is matching
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
     private function getSoftware($entry) {
572 572
         $software = $entry['software'];
573 573
         if (!empty($software)) {
574
-            return strtok($software, ',');;
574
+            return strtok($software, ','); ;
575 575
         }
576 576
         return $software;
577 577
     }
Please login to merge, or discard this patch.
Braces   +25 added lines, -13 removed lines patch added patch discarded remove patch
@@ -386,7 +386,8 @@  discard block
 block discarded – undo
386 386
      *
387 387
      * @return bool true if found, false otherwise
388 388
      */
389
-    private function isFound($entry) {
389
+    private function isFound($entry)
390
+    {
390 391
         if (!empty($this->requestData['title'] && !empty($this->requestData['type']) && !empty($this->requestData['author']))) {
391 392
             return $this->isTitleFound($entry) && $this->isTypeFound($entry) && $this->isAuthorFound($entry);
392 393
         } else if (!empty($this->requestData['title']) && !empty($this->requestData['author'])) {
@@ -403,7 +404,7 @@  discard block
 block discarded – undo
403 404
             return $this->isLicenceFound($entry);
404 405
         } else if (!empty($this->requestData['type'])) {
405 406
             return $this->isTypeFound($entry);
406
-        }  else if (!empty($this->requestData['type'])) {
407
+        } else if (!empty($this->requestData['type'])) {
407 408
             return $this->isSoftwareFound($entry);
408 409
         } else {
409 410
             // no parameters so entry is matching
@@ -418,7 +419,8 @@  discard block
 block discarded – undo
418 419
      *
419 420
      * @return bool true if found, false otherwise
420 421
      */
421
-    private function isAuthorFound($entry) {
422
+    private function isAuthorFound($entry)
423
+    {
422 424
         $value = strtolower($entry['author']);
423 425
         $author = strtolower($this->requestData['author']);
424 426
         return str_contains($value, $author);
@@ -431,7 +433,8 @@  discard block
 block discarded – undo
431 433
      *
432 434
      * @return bool true if found, false otherwise
433 435
      */
434
-    private function isTitleFound($entry) {
436
+    private function isTitleFound($entry)
437
+    {
435 438
         $value = strtolower($entry['label']);
436 439
         $title = strtolower($this->requestData['title']);
437 440
         return str_contains($value, $title);
@@ -444,7 +447,8 @@  discard block
 block discarded – undo
444 447
      *
445 448
      * @return bool true if found, false otherwise
446 449
      */
447
-    private function isTypeFound($entry) {
450
+    private function isTypeFound($entry)
451
+    {
448 452
         return str_contains($entry['identifier'], $this->requestData['types']);
449 453
     }
450 454
 
@@ -455,7 +459,8 @@  discard block
 block discarded – undo
455 459
      *
456 460
      * @return void
457 461
      */
458
-    private function addAuthorToAutocomplete($author) {
462
+    private function addAuthorToAutocomplete($author)
463
+    {
459 464
         if ($author != NULL && !(in_array($author, $this->authors))) {
460 465
             // additional check if actually not more than 1 author is included
461 466
             if (strpos($author, ',') !== false) {
@@ -476,8 +481,10 @@  discard block
 block discarded – undo
476 481
      *
477 482
      * @return void
478 483
      */
479
-    private function sortAuthors() {
480
-        usort($this->authors, function($firstAuthor, $secondAuthor) {
484
+    private function sortAuthors()
485
+    {
486
+        usort($this->authors, function($firstAuthor, $secondAuthor)
487
+        {
481 488
             $firstAuthor = substr(strrchr($firstAuthor, ' '), 1);
482 489
             $secondAuthor = substr(strrchr($secondAuthor, ' '), 1);
483 490
             return strcmp($firstAuthor, $secondAuthor);
@@ -491,7 +498,8 @@  discard block
 block discarded – undo
491 498
      *
492 499
      * @return void
493 500
      */
494
-    private function addTitleToAutocomplete($title) {
501
+    private function addTitleToAutocomplete($title)
502
+    {
495 503
         if (!(in_array($title, $this->titles)) && $title != NULL) {
496 504
             $this->titles[] = $title;
497 505
         }
@@ -504,7 +512,8 @@  discard block
 block discarded – undo
504 512
      *
505 513
      * @return array of object types
506 514
      */
507
-    private function getTypes($entry) {
515
+    private function getTypes($entry)
516
+    {
508 517
         $types = [];
509 518
         $index = 0;
510 519
 
@@ -528,7 +537,8 @@  discard block
 block discarded – undo
528 537
      *
529 538
      * @return string type name without number
530 539
      */
531
-    private function getType($entry) {
540
+    private function getType($entry)
541
+    {
532 542
         $type = $entry['identifier'];
533 543
         if (!empty($type)) {
534 544
             $temp = strtok($type, ',');
@@ -544,7 +554,8 @@  discard block
 block discarded – undo
544 554
      *
545 555
      * @return array of object softwares
546 556
      */
547
-    private function getSoftwares($entry) {
557
+    private function getSoftwares($entry)
558
+    {
548 559
         $softwares = [];
549 560
         $index = 0;
550 561
 
@@ -568,7 +579,8 @@  discard block
 block discarded – undo
568 579
      *
569 580
      * @return string software name split by commas
570 581
      */
571
-    private function getSoftware($entry) {
582
+    private function getSoftware($entry)
583
+    {
572 584
         $software = $entry['software'];
573 585
         if (!empty($software)) {
574 586
             return strtok($software, ',');;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
         $entryArray['doNotLinkIt'] = 1;
341 341
         $entryArray['ITEM_STATE'] = 'HEADER';
342 342
 
343
-        if ($entry['children'] == NULL) {
343
+        if ($entry['children'] == null) {
344 344
             $entryArray['description'] = $entry['description'];
345 345
             $entryArray['identifier'] = $entry['identifier'];
346 346
             $id = str_replace("LOG", "PHYS", $entry['id']);
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
      * @return void
457 457
      */
458 458
     private function addAuthorToAutocomplete($author) {
459
-        if ($author != NULL && !(in_array($author, $this->authors))) {
459
+        if ($author != null && !(in_array($author, $this->authors))) {
460 460
             // additional check if actually not more than 1 author is included
461 461
             if (strpos($author, ',') !== false) {
462 462
                 $authors = explode(",", $author);
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
      * @return void
493 493
      */
494 494
     private function addTitleToAutocomplete($title) {
495
-        if (!(in_array($title, $this->titles)) && $title != NULL) {
495
+        if (!(in_array($title, $this->titles)) && $title != null) {
496 496
             $this->titles[] = $title;
497 497
         }
498 498
     }
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
         if (!empty($entry[0]['children'])) {
512 512
             foreach ($entry[0]['children'] as $child) {
513 513
                 $type = $this->getType($child);
514
-                if (!(in_array($type, $types)) && $type != NULL) {
514
+                if (!(in_array($type, $types)) && $type != null) {
515 515
                     $types[$index] = $type;
516 516
                     $index++;
517 517
                 }
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
         if (!empty($entry[0]['children'])) {
552 552
             foreach ($entry[0]['children'] as $child) {
553 553
                 $software = $this->getSoftware($child);
554
-                if (!(in_array($software, $softwares)) && $software != NULL) {
554
+                if (!(in_array($software, $softwares)) && $software != null) {
555 555
                     $softwares[$index] = $software;
556 556
                     $index++;
557 557
                 }
Please login to merge, or discard this patch.