Completed
Push — master ( 382c82...7ce75a )
by Tim
02:29
created
Classes/Slots/EventSearch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 'tablenames="tt_content" AND uid_foreign=' . $additionalSlotArguments['contentRecord']['uid']
102 102
             );
103 103
             foreach ($rows as $row) {
104
-                $categoryIds[] = (int) $row['uid_local'];
104
+                $categoryIds[] = (int)$row['uid_local'];
105 105
             }
106 106
         }
107 107
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             'tablenames="' . $this->tableName . '" AND uid_local IN (' . implode(',', $categoryIds) . ')'
125 125
         );
126 126
         foreach ($rows as $row) {
127
-            $indexIds[] = (int) $row['uid_foreign'];
127
+            $indexIds[] = (int)$row['uid_foreign'];
128 128
         }
129 129
 
130 130
         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/Slots/EventImport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
      */
137 137
     protected function nl2br($string)
138 138
     {
139
-        $string = nl2br((string) $string);
139
+        $string = nl2br((string)$string);
140 140
 
141 141
         return str_replace('\\n', '<br />', $string);
142 142
     }
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.