Passed
Pull Request — master (#195)
by
unknown
08:18
created
src/Classes/Services/Document/DocumentManager.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
                                 $document->getState() === DocumentWorkflow::STATE_NONE_ACTIVE &&
658 658
                                 $fulltextPublished &&
659 659
                                 (
660
-                                   empty($embargoDate) ||
660
+                                    empty($embargoDate) ||
661 661
                                    $embargoDate < $currentDate
662 662
                                 )
663 663
                             ) {
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
                         }
667 667
 
668 668
                     } else {
669
-                       $recipients[$recipient->getUid()] = $recipient;
669
+                        $recipients[$recipient->getUid()] = $recipient;
670 670
                     }
671 671
                 }
672 672
             }
Please login to merge, or discard this patch.
src/Classes/Services/ImportExternalMetadata/Importer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      * @param DocumentType $documentType
56 56
      * @return array|null $metadataXml
57 57
      *
58
-    */
58
+     */
59 59
     public function transformToInternalXml($xml, $documentType);
60 60
 
61 61
 
Please login to merge, or discard this patch.
src/Classes/Services/ImportExternalMetadata/FileImporter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      * @param DocumentType $documentType
33 33
      * @return array|null $metadataXml
34 34
      *
35
-    */
35
+     */
36 36
     public function transformToInternalXml($xml, $documentType);
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
src/Classes/Controller/ExternalMetadataImportController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -574,8 +574,8 @@
 block discarded – undo
574 574
                 'manager.importMetadata.publicationNotImported', 'dpf'
575 575
             );
576 576
 
577
-           $this->addFlashMessage($message, '', AbstractMessage::ERROR);
578
-           $this->redirect('find');
577
+            $this->addFlashMessage($message, '', AbstractMessage::ERROR);
578
+            $this->redirect('find');
579 579
         }
580 580
     }
581 581
 
Please login to merge, or discard this patch.
src/Classes/Controller/WorkspaceController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
         $this->view->assign('bookmarkIdentifiers', $bookmarkIdentifiers);
190 190
 
191 191
         if ($this->fisDataService->getPersonData($this->security->getUser()->getFisPersId())) {
192
-          $this->view->assign('currentFisPersId', $this->security->getUser()->getFisPersId());
192
+            $this->view->assign('currentFisPersId', $this->security->getUser()->getFisPersId());
193 193
         }
194 194
 
195 195
         $personGroup = $this->metadataGroupRepository->findPersonGroup();
Please login to merge, or discard this patch.
src/Classes/ViewHelpers/ShowStatusViewHelper.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function render($status)
28 28
     {
29
-       $aliasState = DocumentWorkflow::getAliasStateByLocalOrRepositoryState($status);
29
+        $aliasState = DocumentWorkflow::getAliasStateByLocalOrRepositoryState($status);
30 30
 
31 31
         if (empty($aliasState)) {
32 32
             // The status is likely to be an alias status.
Please login to merge, or discard this patch.
src/Classes/ViewHelpers/GetStatusColorViewHelper.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -26,35 +26,35 @@
 block discarded – undo
26 26
      */
27 27
     public function render($status)
28 28
     {
29
-       $aliasState = DocumentWorkflow::getAliasStateByLocalOrRepositoryState($status);
29
+        $aliasState = DocumentWorkflow::getAliasStateByLocalOrRepositoryState($status);
30 30
 
31
-       switch ($aliasState) {
31
+        switch ($aliasState) {
32 32
 
33
-           case DocumentWorkflow::ALIAS_STATE_NEW:
33
+            case DocumentWorkflow::ALIAS_STATE_NEW:
34 34
                return 'secondary';
35
-               break;
36
-           case DocumentWorkflow::ALIAS_STATE_REGISTERED:
35
+                break;
36
+            case DocumentWorkflow::ALIAS_STATE_REGISTERED:
37 37
                return 'secondary';
38
-               break;
38
+                break;
39 39
 
40
-           case DocumentWorkflow::ALIAS_STATE_IN_PROGRESS:
40
+            case DocumentWorkflow::ALIAS_STATE_IN_PROGRESS:
41 41
                return 'primary';
42
-               break;
42
+                break;
43 43
 
44
-           case DocumentWorkflow::ALIAS_STATE_RELEASED:
44
+            case DocumentWorkflow::ALIAS_STATE_RELEASED:
45 45
                return 'success';
46
-               break;
46
+                break;
47 47
 
48
-           case DocumentWorkflow::ALIAS_STATE_DISCARDED:
48
+            case DocumentWorkflow::ALIAS_STATE_DISCARDED:
49 49
                return 'warning';
50
-               break;
50
+                break;
51 51
 
52
-           case DocumentWorkflow::ALIAS_STATE_POSTPONED:
52
+            case DocumentWorkflow::ALIAS_STATE_POSTPONED:
53 53
                return 'info';
54
-               break;
55
-           default:
54
+                break;
55
+            default:
56 56
                return 'light';
57
-               break;
58
-       }
57
+                break;
58
+        }
59 59
     }
60 60
 }
Please login to merge, or discard this patch.
src/Classes/Services/ImportExternalMetadata/CrossRefImporter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
         if ($offset > 0) $requestUri .= '&offset=' . $offset;
127 127
 
128 128
         if ($searchField) {
129
-           $requestUri .= '&query.'.$searchField.'='.urlencode($query);
129
+            $requestUri .= '&query.'.$searchField.'='.urlencode($query);
130 130
         } else {
131 131
             switch (PublicationIdentifier::determineIdentifierType(trim($query))) {
132 132
                 case 'DOI':
Please login to merge, or discard this patch.