Passed
Pull Request — master (#195)
by
unknown
07:55
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/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.
src/class.ext_update.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
             }
147 147
         }
148 148
 
149
-       // $GLOBALS['TYPO3_DB']->sql_query("ALTER TABLE tx_dpf_domain_model_documenttype CHANGE virtual zzz_deleted_virtual SMALLINT UNSIGNED DEFAULT 0 NOT NULL");
149
+        // $GLOBALS['TYPO3_DB']->sql_query("ALTER TABLE tx_dpf_domain_model_documenttype CHANGE virtual zzz_deleted_virtual SMALLINT UNSIGNED DEFAULT 0 NOT NULL");
150 150
 
151 151
     }
152 152
 }
153 153
\ No newline at end of file
Please login to merge, or discard this patch.
src/Classes/Services/ParserGenerator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                                 $namespace = explode("=", $value);
108 108
                                 $this->namespaceString .= ' xmlns:' . $namespace[0] . '="' . $namespace[1] . '"';
109 109
                             }
110
-         }
110
+            }
111 111
 
112 112
         $this->xmlHeader = '<data' . $this->namespaceString . '></data>';
113 113
 
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 
387 387
                 $domXPath2 = \EWW\Dpf\Helper\XPath::create($doc2);
388 388
 
389
-                  // second part nested xpath
389
+                    // second part nested xpath
390 390
                 if ($match[2] && $secondMatch[2]) {
391 391
                     // import node from nested
392 392
                     $docXMLNested = new \DOMDocument();
Please login to merge, or discard this patch.