Completed
Push — master ( 7cb17c...23be3f )
by Tim
12:20
created
Classes/Domain/Model/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      */
186 186
     public function isAllDay()
187 187
     {
188
-        return (bool) $this->allDay;
188
+        return (bool)$this->allDay;
189 189
     }
190 190
 
191 191
     /**
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      */
196 196
     public function setAllDay($allDay)
197 197
     {
198
-        $this->allDay = (bool) $allDay;
198
+        $this->allDay = (bool)$allDay;
199 199
     }
200 200
 
201 201
     /**
Please login to merge, or discard this patch.
Classes/LinkHandling/EventSelectionLinkHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         GeneralUtility::makeInstance(PageRenderer::class)->loadRequireJsModule('TYPO3/CMS/Recordlist/PageLinkHandler');
62 62
 
63
-        $this->expandPage = isset($request->getQueryParams()['expandPage']) ? (int) $request->getQueryParams()['expandPage'] : 0;
63
+        $this->expandPage = isset($request->getQueryParams()['expandPage']) ? (int)$request->getQueryParams()['expandPage'] : 0;
64 64
         $this->setTemporaryDbMounts();
65 65
 
66 66
         $backendUser = $this->getBackendUser();
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
         /** @var ElementBrowserPageTreeView $pageTree */
69 69
         $pageTree = GeneralUtility::makeInstance(ElementBrowserPageTreeView::class);
70 70
         $pageTree->setLinkParameterProvider($this);
71
-        $pageTree->ext_showNavTitle = (bool) $backendUser->getTSConfigVal('options.pageTree.showNavTitle');
72
-        $pageTree->ext_showPageId = (bool) $backendUser->getTSConfigVal('options.pageTree.showPageIdWithTitle');
73
-        $pageTree->ext_showPathAboveMounts = (bool) $backendUser->getTSConfigVal('options.pageTree.showPathAboveMounts');
71
+        $pageTree->ext_showNavTitle = (bool)$backendUser->getTSConfigVal('options.pageTree.showNavTitle');
72
+        $pageTree->ext_showPageId = (bool)$backendUser->getTSConfigVal('options.pageTree.showPageIdWithTitle');
73
+        $pageTree->ext_showPathAboveMounts = (bool)$backendUser->getTSConfigVal('options.pageTree.showPathAboveMounts');
74 74
         $pageTree->addField('nav_title');
75 75
 
76 76
         $this->view->assign('temporaryTreeMountCancelLink', $this->getTemporaryTreeMountCancelNotice());
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/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/Service/TimeTableService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     /**
22 22
      * Build the timetable for the given configuration matrix (sorted).
23 23
      *
24
-     * @param array $ids
24
+     * @param integer[] $ids
25 25
      *
26 26
      * @return array
27 27
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
         }
175 175
         /** @var \DateTime $base */
176 176
         $base = clone $record[$position . '_date'];
177
-        if (\is_int($record[$position . '_time']) && (int) $record[$position . '_time'] > 0) {
177
+        if (\is_int($record[$position . '_time']) && (int)$record[$position . '_time'] > 0) {
178 178
             // Fix handling, if the time field contains a complete timestamp
179 179
             $seconds = $record[$position . '_time'] % DateTimeUtility::SECONDS_DAY;
180 180
             $base->setTime(0, 0, 0);
Please login to merge, or discard this patch.