Passed
Pull Request — master (#155)
by
unknown
09:50
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/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/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/MetsExporter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @var array
26 26
      */
27
-    protected $formData = array();
27
+    protected $formData = array ();
28 28
 
29 29
     /**
30 30
      * files from form
31 31
      * @var array
32 32
      */
33
-    protected $files = array();
33
+    protected $files = array ();
34 34
 
35 35
     /**
36 36
      * metsData
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
                     $nestedXml = $this->parseXPath($nested);
369 369
 
370 370
                     // object xpath without nested element []
371
-                    $newPath[1] = str_replace('['.$match[2].']', '', $newPath[1]);
371
+                    $newPath[1] = str_replace('[' . $match[2] . ']', '', $newPath[1]);
372 372
 
373 373
                     $xml = $this->parseXPath($newPath[1]);
374 374
 
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
                     $nestedXml = $this->parseXPath($nested);
430 430
 
431 431
                     // object xpath without nested element []
432
-                    $newPath[1] = str_replace('['.$match[2].']', '', $newPath[1]);
432
+                    $newPath[1] = str_replace('[' . $match[2] . ']', '', $newPath[1]);
433 433
 
434 434
                     $xml2 = $this->parseXPath($path . $newPath[1]);
435 435
                 }
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/Services/Email/Notifier.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -163,13 +163,13 @@
 block discarded – undo
163 163
 
164 164
     protected function sendMail($reveiver, $subject, $body, $args, $mailType)
165 165
     {
166
-        $emailReceiver = array();
166
+        $emailReceiver = array ();
167 167
         $emailReceiver[$reveiver] = $reveiver;
168 168
         $message = (new \TYPO3\CMS\Core\Mail\MailMessage())
169
-            ->setFrom(array('[email protected]' => '[email protected]'))
169
+            ->setFrom(array ('[email protected]' => '[email protected]'))
170 170
             ->setTo($emailReceiver)
171
-            ->setSubject($this->replaceMarkers($subject,$args))
172
-            ->setBody($this->replaceMarkers($body,$args),$mailType);
171
+            ->setSubject($this->replaceMarkers($subject, $args))
172
+            ->setBody($this->replaceMarkers($body, $args), $mailType);
173 173
         $message->send();
174 174
     }
175 175
 
Please login to merge, or discard this patch.
Classes/ViewHelpers/Widget/PaginateViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      * @param array $configuration
69 69
      * @return string
70 70
      */
71
-    public function render($objects, $total, $as, $currentPage, array $configuration = array('itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, 'maximumNumberOfLinks' => 99))
71
+    public function render($objects, $total, $as, $currentPage, array $configuration = array ('itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, 'maximumNumberOfLinks' => 99))
72 72
     {
73 73
         return $this->initiateSubRequest();
74 74
     }
Please login to merge, or discard this patch.