Completed
Pull Request — master (#352)
by René
02:19
created
Classes/ViewHelpers/IndexTraversingViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             $this->arguments['index'],
53 53
             $this->arguments['future'],
54 54
             $this->arguments['past'],
55
-            (int) $this->arguments['limit'],
55
+            (int)$this->arguments['limit'],
56 56
             $this->arguments['sort'],
57 57
             $this->arguments['useIndexTime']
58 58
         );
Please login to merge, or discard this patch.
Classes/ViewHelpers/Loop/MonthsInYearViewHelper.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
     protected function getItems(\DateTime $date)
23 23
     {
24 24
         $months = [];
25
-        $date->setDate((int) $date->format('Y'), (int) $date->format('n'), 1);
25
+        $date->setDate((int)$date->format('Y'), (int)$date->format('n'), 1);
26 26
         for ($i = 0; $i < 12; ++$i) {
27 27
             $months[$date->format('n')] = [
28 28
                 'week' => $date->format('n'),
Please login to merge, or discard this patch.
Classes/ViewHelpers/Loop/WeeksInMonthViewHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
         $dateClone->modify('first day of this month');
39 39
 
40 40
         $monthCheck = $dateClone->format('m');
41
-        while ((int) $monthCheck === (int) $dateClone->format('m')) {
42
-            $week = (int) $dateClone->format('W');
41
+        while ((int)$monthCheck === (int)$dateClone->format('m')) {
42
+            $week = (int)$dateClone->format('W');
43 43
             if (!isset($weeks[$week])) {
44 44
                 $weeks[$week] = [
45 45
                     'week' => $week,
Please login to merge, or discard this patch.
Classes/ViewHelpers/JsQuoteViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function render()
32 32
     {
33
-        $content = null === $this->arguments['content'] || '' === \trim((string) $this->arguments['content']) ? $this->renderChildren() : $this->arguments['content'];
33
+        $content = null === $this->arguments['content'] || '' === \trim((string)$this->arguments['content']) ? $this->renderChildren() : $this->arguments['content'];
34 34
 
35 35
         return GeneralUtility::quoteJSvalue($content);
36 36
     }
Please login to merge, or discard this patch.
Classes/Service/TimeSelectionWizard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         if ('' === $id && '' === $name) {
35 35
             return '';
36 36
         }
37
-        $times = $this->getTimes((int) $params['pid']);
37
+        $times = $this->getTimes((int)$params['pid']);
38 38
         if (!$times) {
39 39
             return '';
40 40
         }
Please login to merge, or discard this patch.
Classes/Service/RecurrenceService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         // clone and reset and move to next month
68 68
         $dateTime = clone $date;
69
-        $dateTime->setDate((int) $dateTime->format('Y'), (int) $dateTime->format('m'), 1);
69
+        $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), 1);
70 70
         $dateTime->modify($modify);
71 71
 
72 72
         $days = $this->getValidDays($day);
@@ -162,15 +162,15 @@  discard block
 block discarded – undo
162 162
     protected function findDayInCurrentMonth(\DateTime $dateTime, string $direction, array $validDays, int $position = 1)
163 163
     {
164 164
         if (self::DIRECTION_UP === $direction) {
165
-            $dateTime->setDate((int) $dateTime->format('Y'), (int) $dateTime->format('m'), 1);
165
+            $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), 1);
166 166
             $modify = '+1 day';
167 167
         } else {
168
-            $dateTime->setDate((int) $dateTime->format('Y'), (int) $dateTime->format('m'), (int) $dateTime->format('t'));
168
+            $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), (int)$dateTime->format('t'));
169 169
             $modify = '-1 day';
170 170
         }
171 171
         $validMonth = $dateTime->format('Y-m');
172 172
         while ($dateTime->format('Y-m') === $validMonth) {
173
-            if (\in_array((int) $dateTime->format('N'), $validDays, true)) {
173
+            if (\in_array((int)$dateTime->format('N'), $validDays, true)) {
174 174
                 --$position;
175 175
                 if (0 === $position) {
176 176
                     return $dateTime;
Please login to merge, or discard this patch.
Classes/Domain/Model/Event.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      */
275 275
     public function getFeedTitle(): string
276 276
     {
277
-        return (string) $this->getTitle();
277
+        return (string)$this->getTitle();
278 278
     }
279 279
 
280 280
     /**
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      */
285 285
     public function getFeedAbstract(): string
286 286
     {
287
-        return (string) $this->getFeedContent();
287
+        return (string)$this->getFeedContent();
288 288
     }
289 289
 
290 290
     /**
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      */
295 295
     public function getFeedContent(): string
296 296
     {
297
-        return (string) $this->getDescription();
297
+        return (string)$this->getDescription();
298 298
     }
299 299
 
300 300
     /**
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
      */
305 305
     public function getFeedLocation(): string
306 306
     {
307
-        return (string) $this->getLocation();
307
+        return (string)$this->getLocation();
308 308
     }
309 309
 
310 310
     /**
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      */
315 315
     public function getRealUrlAliasBase(): string
316 316
     {
317
-        return (string) $this->getTitle();
317
+        return (string)$this->getTitle();
318 318
     }
319 319
 
320 320
     /**
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
      */
367 367
     public function getKeSearchTitle(Index $index): string
368 368
     {
369
-        return (string) $this->getTitle() . ' - ' . $index->getStartDate()
369
+        return (string)$this->getTitle() . ' - ' . $index->getStartDate()
370 370
                 ->format('d.m.Y');
371 371
     }
372 372
 
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
      */
380 380
     public function getKeSearchAbstract(Index $index): string
381 381
     {
382
-        return (string) $this->getDescription();
382
+        return (string)$this->getDescription();
383 383
     }
384 384
 
385 385
     /**
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      */
392 392
     public function getKeSearchContent(Index $index): string
393 393
     {
394
-        return (string) $this->getDescription();
394
+        return (string)$this->getDescription();
395 395
     }
396 396
 
397 397
     /**
Please login to merge, or discard this patch.
Classes/Utility/ConfigurationUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     protected static function loadConfiguration()
40 40
     {
41 41
         if (null === self::$configuration) {
42
-            self::$configuration = (array) \unserialize((string) $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize']);
42
+            self::$configuration = (array)\unserialize((string)$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['calendarize']);
43 43
         }
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
Classes/Command/AbstractCommandController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     /**
28 28
      * Adds a message to the FlashMessageQueue or prints it to the CLI.
29 29
      *
30
-     * @param mixed  $message
30
+     * @param string  $message
31 31
      * @param string $title
32 32
      * @param int    $severity
33 33
      */
Please login to merge, or discard this patch.