Passed
Push — master ( 3603b1...7670bb )
by Ralf
10:54
created
Classes/Domain/Model/ProcessNumber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,6 +106,6 @@
 block discarded – undo
106 106
     }
107 107
 
108 108
     public function getProcessNumberString() {
109
-        return strtoupper($this->getOwnerId()).'-'. $this->getYear().'-'.$this->getCounter();
109
+        return strtoupper($this->getOwnerId()) . '-' . $this->getYear() . '-' . $this->getCounter();
110 110
     }
111 111
 }
112 112
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/Plugins/DownloadTool/DownloadTool.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,6 @@
 block discarded – undo
107 107
 
108 108
     /**
109 109
      * Get PDF document list
110
-
111 110
      * @return array of attachments
112 111
      */
113 112
     protected function getAttachments()
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $content = '';
73 73
         if (is_array($attachments)) {
74 74
             foreach ($attachments as $id => $file) {
75
-                $conf = array(
75
+                $conf = array (
76 76
                     'useCacheHash'     => 0,
77 77
                     'parameter'        => $this->conf['apiPid'] . ' - piwik_download',
78 78
                     'additionalParams' => '&tx_dpf[qid]=' . $this->doc->recordId . '&tx_dpf[action]=attachment' . '&tx_dpf[attachment]=' . $file['ID'],
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 $title = $file['LABEL'] ? $file['LABEL'] : $file['ID'];
82 82
                 $markerArray['###FILE###'] = $this->cObj->typoLink($title, $conf);
83 83
 
84
-                if(!empty($vgwort)) {
84
+                if (!empty($vgwort)) {
85 85
                     $markerArray['###VGWORT###'] = "<div class='div_vgwpixel' data-url='" . $vgwort . "'></div>";
86 86
                 } else {
87 87
                     $markerArray['###VGWORT###'] = "";
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
         $xPath = 'mets:fileSec/mets:fileGrp[@USE="' . $this->conf['fileGrpDownload'] . '"]/mets:file';
104 104
         $files = $this->doc->mets->xpath($xPath);
105 105
         if (!is_array($files)) {
106
-            return array();
106
+            return array ();
107 107
         }
108 108
         foreach ($files as $key => $file) {
109
-            $singleFile = array();
109
+            $singleFile = array ();
110 110
             foreach ($file->attributes('mext', 1) as $attribute => $value) {
111 111
                 $singleFile[$attribute] = $value;
112 112
             }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $xPath = '//slub:info/slub:vgwortOpenKey';
129 129
         $vgwortOpenKey = $this->doc->mets->xpath($xPath)[0];
130 130
 
131
-        if (!empty($vgwortOpenKey) or $vgwortOpenKey != FALSE ) {
131
+        if (!empty($vgwortOpenKey) or $vgwortOpenKey != FALSE) {
132 132
             if (GeneralUtility::getIndpEnv('TYPO3_SSL')) {
133 133
                 $vgwortserver = 'https://ssl-vg03.met.vgwort.de/na/';
134 134
             } else {
Please login to merge, or discard this patch.
Classes/Services/ProcessNumber/ProcessNumberGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             $datetime = new \DateTime();
32 32
             $currentYear = $datetime->format('y');
33 33
 
34
-            $processNumber = $processNumberRepository->getHighestProcessNumberByOwnerIdAndYear(strtolower($ownerId),$currentYear);
34
+            $processNumber = $processNumberRepository->getHighestProcessNumberByOwnerIdAndYear(strtolower($ownerId), $currentYear);
35 35
 
36 36
             if ($processNumber) {
37 37
                 $counter = $processNumber->getCounter() + 1;
Please login to merge, or discard this patch.
Classes/Services/MetsExporter.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -439,7 +439,7 @@
 block discarded – undo
439 439
 
440 440
                 $domXPath2 = \EWW\Dpf\Helper\XPath::create($doc2);
441 441
 
442
-                  // second part nested xpath
442
+                    // second part nested xpath
443 443
                 if ($match[2] && $secondMatch[2]) {
444 444
                     // import node from nested
445 445
                     $docXMLNested = new \DOMDocument();
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @var array
46 46
      */
47
-    protected $formData = array();
47
+    protected $formData = array ();
48 48
 
49 49
     /**
50 50
      * files from form
51 51
      * @var array
52 52
      */
53
-    protected $files = array();
53
+    protected $files = array ();
54 54
 
55 55
     /**
56 56
      * metsData
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         $this->documentTypeRepository = $objectManager->get(DocumentTypeRepository::class);
107 107
 
108
-        $namespaceConfiguration = explode(";",$this->clientConfigurationManager->getNamespaces());
108
+        $namespaceConfiguration = explode(";", $this->clientConfigurationManager->getNamespaces());
109 109
 
110 110
 
111 111
         foreach ($namespaceConfiguration as $key => $value) {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
         $this->xmlHeader = '<data' . $this->namespaceString . '></data>';
117 117
 
118
-        $this->xmlData =  new \DOMDocument();
118
+        $this->xmlData = new \DOMDocument();
119 119
         $this->xmlData->loadXML($this->xmlHeader);
120 120
 
121 121
         // Parser
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             $values     = $group['values'];
207 207
             $attributes = $group['attributes'];
208 208
 
209
-            $attributeXPath     = '';
209
+            $attributeXPath = '';
210 210
             foreach ($attributes as $attribute) {
211 211
                 $attributeXPath .= '[' . $attribute['mapping'] . '="' . $attribute['value'] . '"]';
212 212
             }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
                     $nestedXml = $this->parseXPath($nested);
315 315
 
316 316
                     // object xpath without nested element []
317
-                    $newPath[1] = str_replace('['.$match[2].']', '', $newPath[1]);
317
+                    $newPath[1] = str_replace('[' . $match[2] . ']', '', $newPath[1]);
318 318
 
319 319
                     $xml = $this->parseXPath($newPath[1]);
320 320
 
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
                     $nestedXml = $this->parseXPathWrapped($nested);
374 374
 
375 375
                     // object xpath without nested element []
376
-                    $newPath[1] = str_replace('['.$match[2].']', '', $newPath[1]);
376
+                    $newPath[1] = str_replace('[' . $match[2] . ']', '', $newPath[1]);
377 377
 
378 378
                     $xml2 = $this->parseXPathWrapped($path . $newPath[1]);
379 379
                 }
Please login to merge, or discard this patch.
Classes/Controller/SearchFEController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $this->currentPage = 1;
89 89
         } else {
90 90
             // restore query
91
-            $this->query = (!empty($session[$this->action]['query'])) ? $session[$this->action]['query'] : array();
91
+            $this->query = (!empty($session[$this->action]['query'])) ? $session[$this->action]['query'] : array ();
92 92
             // set current page
93 93
             if ((!empty($currentPage))) {
94 94
                 $this->currentPage = MathUtility::forceIntegerInRange($currentPage, 1);
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
      */
198 198
     private function viewAssign()
199 199
     {
200
-        $this->view->assign('query',       $this->query);
201
-        $this->view->assign('resultList',  $this->resultList);
200
+        $this->view->assign('query', $this->query);
201
+        $this->view->assign('resultList', $this->resultList);
202 202
         $this->view->assign('currentPage', $this->currentPage);
203 203
     }
204 204
 }
Please login to merge, or discard this patch.
Classes/Services/Transfer/FileId.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     public function __construct($document)
23 23
     {
24 24
 
25
-        $idList   = array();
25
+        $idList   = array ();
26 26
         $this->id = 0;
27 27
 
28 28
         if (is_a($document->getFile(), '\TYPO3\CMS\Extbase\Persistence\ObjectStorage')) {
Please login to merge, or discard this patch.
Classes/Services/Transfer/ElasticsearchRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,9 +66,9 @@
 block discarded – undo
66 66
         $client = $this->clientRepository->findAll()->current();
67 67
 
68 68
         // build es json
69
-        $esJson                               = array();
69
+        $esJson                               = array ();
70 70
         $esJson['OWNER_ID']                   = $client->getOwnerId();
71
-        $esJson['_dissemination']             = array();
71
+        $esJson['_dissemination']             = array ();
72 72
         $esJson['_dissemination']['_content'] = json_decode($json);
73 73
 
74 74
         $esJson = json_encode($esJson);
Please login to merge, or discard this patch.
Classes/Services/Identifier/UrnBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,13 +150,13 @@
 block discarded – undo
150 150
         $nbn = strtolower($urn);
151 151
 
152 152
         // array of characters to match
153
-        $search_pattern = array('/9/', '/8/', '/7/', '/6/', '/5/', '/4/', '/3/', '/2/', '/1/', '/0/', '/a/', '/b/', '/c/',
153
+        $search_pattern = array ('/9/', '/8/', '/7/', '/6/', '/5/', '/4/', '/3/', '/2/', '/1/', '/0/', '/a/', '/b/', '/c/',
154 154
             '/d/', '/e/', '/f/', '/g/', '/h/', '/i/', '/j/', '/k/', '/l/', '/m/', '/n/', '/o/', '/p/', '/q/', '/r/', '/s/',
155 155
             '/t/', '/u/', '/v/', '/w/', '/x/', '/y/', '/z/', '/-/', '/:/');
156 156
 
157 157
         // array of corresponding replacements, '9' will be temporarily replaced with placeholder '_' to prevent
158 158
         // replacement of '41' with '52'
159
-        $replacements = array('_', 9, 8, 7, 6, 5, 4, 3, 2, 1, 18, 14, 19, 15, 16, 21, 22, 23, 24, 25, 42, 26, 27, 13, 28, 29,
159
+        $replacements = array ('_', 9, 8, 7, 6, 5, 4, 3, 2, 1, 18, 14, 19, 15, 16, 21, 22, 23, 24, 25, 42, 26, 27, 13, 28, 29,
160 160
             31, 12, 32, 33, 11, 34, 35, 36, 37, 38, 39, 17);
161 161
 
162 162
         // replace matching pattern in given nbn with corresponding replacement
Please login to merge, or discard this patch.
Classes/ViewHelpers/Widget/Controller/PaginateController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * @var array
36 36
      */
37
-    protected $configuration = array(
37
+    protected $configuration = array (
38 38
         'itemsPerPage'         => 10,
39 39
         'insertAbove'          => false,
40 40
         'insertBelow'          => true,
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     public function indexAction($currentPage = 1)
93 93
     {
94 94
         // set current page
95
-        if(!empty($this->widgetConfiguration['currentPage'])) {
95
+        if (!empty($this->widgetConfiguration['currentPage'])) {
96 96
             $currentPage = $this->widgetConfiguration['currentPage'];
97 97
         };
98 98
         $this->currentPage = (int) $currentPage;
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 $offset = ((int) ($itemsPerPage * ($this->currentPage - 1)));
111 111
             }
112 112
         }
113
-        $this->view->assign('contentArguments', array(
113
+        $this->view->assign('contentArguments', array (
114 114
             $this->widgetConfiguration['as'] => $this->objects,
115 115
         ));
116 116
         $this->view->assign('configuration', $this->configuration);
@@ -151,11 +151,11 @@  discard block
 block discarded – undo
151 151
     protected function buildPagination()
152 152
     {
153 153
         $this->calculateDisplayRange();
154
-        $pages = array();
154
+        $pages = array ();
155 155
         for ($i = $this->displayRangeStart; $i <= $this->displayRangeEnd; $i++) {
156
-            $pages[] = array('number' => $i, 'isCurrent' => $i === $this->currentPage);
156
+            $pages[] = array ('number' => $i, 'isCurrent' => $i === $this->currentPage);
157 157
         }
158
-        $pagination = array(
158
+        $pagination = array (
159 159
             'pages'             => $pages,
160 160
             'current'           => $this->currentPage,
161 161
             'numberOfPages'     => $this->numberOfPages,
Please login to merge, or discard this patch.