Completed
Pull Request — master (#235)
by
unknown
02:42
created
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/Slots/CalMigration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $db = HelperUtility::getDatabaseConnection();
32 32
 
33
-        $selectWhere = 'tablenames = \'tx_cal_event\' AND uid_foreign = ' . (int) $event['uid'];
33
+        $selectWhere = 'tablenames = \'tx_cal_event\' AND uid_foreign = ' . (int)$event['uid'];
34 34
         $query = $db->SELECTquery('*', 'sys_file_reference', $selectWhere);
35 35
         $selectResults = $db->admin_query($query);
36 36
         $dbQueries[] = $query;
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         foreach ($selectResults as $selectResult) {
39 39
             $updateWhere = ' import_id = \'' . CalMigrationUpdate::IMPORT_PREFIX . $selectResult['uid'] . '\'';
40 40
             $fieldValues = [
41
-                'uid_foreign' => (int) $recordId,
41
+                'uid_foreign' => (int)$recordId,
42 42
                 'tablenames' => $table,
43 43
             ];
44 44
 
Please login to merge, or discard this patch.
Classes/Command/ImportCommandController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,6 +116,6 @@
 block discarded – undo
116 116
             ));
117 117
         }
118 118
 
119
-        return (array) (new \ICal($absoluteIcalFile))->events();
119
+        return (array)(new \ICal($absoluteIcalFile))->events();
120 120
     }
121 121
 }
Please login to merge, or discard this patch.
Classes/Command/CleanupCommandController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
         // climb thru the events and hide/delete them
69 69
         foreach ($events as $event) {
70
-            $uid = (int) $event['foreign_uid'];
70
+            $uid = (int)$event['foreign_uid'];
71 71
 
72 72
             $model = $repository->findByUid($uid);
73 73
 
@@ -100,12 +100,12 @@  discard block
 block discarded – undo
100 100
     protected function processEvent(EventRepository $repository, Event $model, $modus)
101 101
     {
102 102
         // define the function for the delete-modus.
103
-        $delete = function ($repository, $model) {
103
+        $delete = function($repository, $model) {
104 104
             $repository->remove($model);
105 105
         };
106 106
 
107 107
         // define the function for the hide-modus.
108
-        $hide = function ($repository, $model) {
108
+        $hide = function($repository, $model) {
109 109
             $model->setHidden(true);
110 110
             $repository->update($model);
111 111
         };
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     protected function findOutdatedEvents($tableName, $waitingPeriod)
142 142
     {
143 143
         // calculate the waiting time
144
-        $interval = 'P' . (int) $waitingPeriod . 'D';
144
+        $interval = 'P' . (int)$waitingPeriod . 'D';
145 145
         $now = DateTimeUtility::getNow();
146 146
         $now->sub(new \DateInterval($interval));
147 147
 
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/Link/AbstractLinkViewHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     public function renderLink($pageUid = null, array $additionalParams = [], $absolute = false)
54 54
     {
55 55
         $uriBuilder = $this->controllerContext->getUriBuilder();
56
-        $this->lastHref = (string) $uriBuilder->reset()
56
+        $this->lastHref = (string)$uriBuilder->reset()
57 57
             ->setTargetPageUid($pageUid)
58 58
             ->setArguments($additionalParams)
59 59
             ->setCreateAbsoluteUri($absolute)
@@ -80,17 +80,17 @@  discard block
 block discarded – undo
80 80
     protected function getPageUid($pageUid, $contextName = null)
81 81
     {
82 82
         if (MathUtility::canBeInterpretedAsInteger($pageUid) && $pageUid > 0) {
83
-            return (int) $pageUid;
83
+            return (int)$pageUid;
84 84
         }
85 85
 
86 86
         // by settings
87 87
         if ($contextName && $this->templateVariableContainer->exists('settings')) {
88 88
             $settings = $this->templateVariableContainer->get('settings');
89 89
             if (isset($settings[$contextName]) && MathUtility::canBeInterpretedAsInteger($settings[$contextName])) {
90
-                return (int) $settings[$contextName];
90
+                return (int)$settings[$contextName];
91 91
             }
92 92
         }
93 93
 
94
-        return (int) $GLOBALS['TSFE']->id;
94
+        return (int)$GLOBALS['TSFE']->id;
95 95
     }
96 96
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/DateTime/FormatUtcDateViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         // set timezone to UTC
30 30
         date_default_timezone_set('UTC');
31 31
 
32
-        $result = strftime($format, (int) $date->format('U'));
32
+        $result = strftime($format, (int)$date->format('U'));
33 33
 
34 34
         // restore timezone setting
35 35
         date_default_timezone_set($timezone);
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.