Completed
Pull Request — master (#352)
by René
02:19
created
Classes/Service/Url/CoolUri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function coolUri($xml, $value)
59 59
     {
60
-        $alias = $this->getIndexBase((int) $value);
60
+        $alias = $this->getIndexBase((int)$value);
61 61
         $alias = Functions::URLize($alias);
62 62
         $alias = Functions::sanitize_title_with_dashes($alias);
63 63
 
Please login to merge, or discard this patch.
Classes/Domain/Repository/EventRepository.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
         $ids = [];
32 32
         foreach ($rows as $row) {
33
-            $ids[] = (int) $row['uid'];
33
+            $ids[] = (int)$row['uid'];
34 34
         }
35 35
 
36 36
         return $ids;
Please login to merge, or discard this patch.
Classes/ViewHelpers/Loop/DaysInWeekViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         }
37 37
 
38 38
         $days = [];
39
-        $move = (int) ($date->format('N') - ((int) $this->arguments['weekStartsAt']));
39
+        $move = (int)($date->format('N') - ((int)$this->arguments['weekStartsAt']));
40 40
         $date->modify('-' . $move . ' days');
41 41
         $inWeek = false;
42 42
         for ($i = 0; $i < 7; ++$i) {
Please login to merge, or discard this patch.
Classes/ViewHelpers/Loop/DaysInMonthViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     {
22 22
         $daysInMonth = $date->format('t');
23 23
         $days = [];
24
-        $move = (int) ($date->format('j') - 1);
24
+        $move = (int)($date->format('j') - 1);
25 25
         $date->modify('-' . $move . ' days');
26 26
 
27 27
         for ($i = 0; $i < $daysInMonth; ++$i) {
Please login to merge, or discard this patch.
Classes/Hooks/TimeShift.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         }
27 27
 
28 28
         $configuration = $this->getConfiguration();
29
-        $timeShift = isset($configuration['timeShift']) ? (int) $configuration['timeShift'] : 0;
29
+        $timeShift = isset($configuration['timeShift']) ? (int)$configuration['timeShift'] : 0;
30 30
         if ($timeShift <= 0) {
31 31
             // shift is disabled
32 32
             return;
Please login to merge, or discard this patch.
Classes/ViewHelpers/Link/IndexViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
             ],
36 36
         ];
37 37
 
38
-        return parent::renderLink($this->getPageUid($this->arguments['pageUid'], 'detailPid'), $additionalParams, (bool) $this->arguments['absolute']);
38
+        return parent::renderLink($this->getPageUid($this->arguments['pageUid'], 'detailPid'), $additionalParams, (bool)$this->arguments['absolute']);
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
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.