Completed
Push — master ( 32655e...4f86ea )
by Tim
13s
created
Classes/Service/IndexPreparationService.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
         if (!$languageField || !$transPointer) {
69 69
             return;
70 70
         }
71
-        if ((int) $record[$transPointer] > 0) {
71
+        if ((int)$record[$transPointer] > 0) {
72 72
             // no Index for language child elements
73 73
             return;
74 74
         }
75
-        $language = (int) $record[$languageField];
75
+        $language = (int)$record[$languageField];
76 76
 
77 77
         foreach (array_keys($neededItems) as $key) {
78 78
             $neededItems[$key]['sys_language_uid'] = $language;
@@ -95,16 +95,16 @@  discard block
 block discarded – undo
95 95
 
96 96
         $addFields = [];
97 97
         if (isset($enableFields['disabled'])) {
98
-            $addFields['hidden'] = (int) $record[$enableFields['disabled']];
98
+            $addFields['hidden'] = (int)$record[$enableFields['disabled']];
99 99
         }
100 100
         if (isset($enableFields['starttime'])) {
101
-            $addFields['starttime'] = (int) $record[$enableFields['starttime']];
101
+            $addFields['starttime'] = (int)$record[$enableFields['starttime']];
102 102
         }
103 103
         if (isset($enableFields['endtime'])) {
104
-            $addFields['endtime'] = (int) $record[$enableFields['endtime']];
104
+            $addFields['endtime'] = (int)$record[$enableFields['endtime']];
105 105
         }
106 106
         if (isset($enableFields['fe_group'])) {
107
-            $addFields['fe_group'] = (string) $record[$enableFields['fe_group']];
107
+            $addFields['fe_group'] = (string)$record[$enableFields['fe_group']];
108 108
         }
109 109
 
110 110
         foreach ($neededItems as $key => $value) {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             if ($value instanceof \DateTimeInterface) {
124 124
                 $record[$key] = $value->getTimestamp();
125 125
             } elseif (is_bool($value) || $key === 'start_time' || $key === 'end_time') {
126
-                $record[$key] = (int) $value;
126
+                $record[$key] = (int)$value;
127 127
             } elseif ($value === null) {
128 128
                 $record[$key] = '';
129 129
             }
Please login to merge, or discard this patch.
Classes/Service/TimeTableService.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
         }
120 120
         /** @var \DateTime $base */
121 121
         $base = clone $record[$position . '_date'];
122
-        if (is_int($record[$position . '_time']) && (int) $record[$position . '_time'] > 0) {
122
+        if (is_int($record[$position . '_time']) && (int)$record[$position . '_time'] > 0) {
123 123
             // Fix handling, if the time field contains a complete timestamp
124 124
             $seconds = $record[$position . '_time'] % DateTimeUtility::SECONDS_DAY;
125 125
             $base->setTime(0, 0, 0);
Please login to merge, or discard this patch.
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.
Classes/Service/IndexerService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         return $databaseConnection->exec_SELECTcountRows(
70 70
             '*',
71 71
             self::TABLE_NAME,
72
-            'foreign_table=' . $databaseConnection->fullQuoteStr($table, self::TABLE_NAME) . ' AND foreign_uid=' . (int) $uid
72
+            'foreign_table=' . $databaseConnection->fullQuoteStr($table, self::TABLE_NAME) . ' AND foreign_uid=' . (int)$uid
73 73
         );
74 74
     }
75 75
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             'start_date >= ' . $now->getTimestamp() . ' AND foreign_table=' . $databaseConnection->fullQuoteStr(
95 95
                 $table,
96 96
                 self::TABLE_NAME
97
-            ) . ' AND foreign_uid=' . (int) $uid,
97
+            ) . ' AND foreign_uid=' . (int)$uid,
98 98
             '',
99 99
             'start_date ASC, start_time ASC',
100 100
             $limit
@@ -176,11 +176,11 @@  discard block
 block discarded – undo
176 176
     {
177 177
         foreach ($neededItem as $key => $value) {
178 178
             if (MathUtility::canBeInterpretedAsInteger($value)) {
179
-                if ((int) $value !== (int) $currentItem[$key]) {
179
+                if ((int)$value !== (int)$currentItem[$key]) {
180 180
                     return false;
181 181
                 }
182 182
             } else {
183
-                if ((string) $value !== (string) $currentItem[$key]) {
183
+                if ((string)$value !== (string)$currentItem[$key]) {
184 184
                     return false;
185 185
                 }
186 186
             }
@@ -224,12 +224,12 @@  discard block
 block discarded – undo
224 224
                 $validKeys[$key] = $databaseConnection->fullQuoteStr($value, self::TABLE_NAME);
225 225
             }
226 226
 
227
-            return (bool) $databaseConnection->exec_DELETEquery(
227
+            return (bool)$databaseConnection->exec_DELETEquery(
228 228
                 self::TABLE_NAME,
229 229
                 'unique_register_key NOT IN (' . implode(',', $validKeys) . ')'
230 230
             );
231 231
         }
232 232
 
233
-        return (bool) $databaseConnection->exec_TRUNCATEquery(self::TABLE_NAME);
233
+        return (bool)$databaseConnection->exec_TRUNCATEquery(self::TABLE_NAME);
234 234
     }
235 235
 }
Please login to merge, or discard this patch.
Classes/Service/Url/AbstractUrl.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
     protected function getIndexBase($indexUid)
35 35
     {
36 36
         $indexRepository = HelperUtility::create(IndexRepository::class);
37
-        $index = $indexRepository->findByUid((int) $indexUid);
37
+        $index = $indexRepository->findByUid((int)$indexUid);
38 38
         if (!($index instanceof Index)) {
39 39
             return 'idx-' . $indexUid;
40 40
         }
Please login to merge, or discard this patch.
Classes/Service/Url/RealUrl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 WHERE tx_calendarize_domain_model_index.uid IS NULL AND tx_realurl_uniqalias.tablename=\'tx_calendarize_domain_model_index\'';
63 63
         $res = $databaseConnection->admin_query($selectInvalidItems);
64 64
         while ($row = $databaseConnection->sql_fetch_assoc($res)) {
65
-            $removeIds[] = (int) $row['uid'];
65
+            $removeIds[] = (int)$row['uid'];
66 66
         }
67 67
         if (empty($removeIds)) {
68 68
             return;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             )
91 91
         );
92 92
         if (isset($row['value_id'])) {
93
-            return (int) $row['value_id'];
93
+            return (int)$row['value_id'];
94 94
         }
95 95
 
96 96
         $matches = [];
@@ -117,13 +117,13 @@  discard block
 block discarded – undo
117 117
             'tablename=' . $databaseConnection->fullQuoteStr(
118 118
                 IndexerService::TABLE_NAME,
119 119
                 IndexerService::TABLE_NAME
120
-            ) . ' AND value_id=' . (int) $value
120
+            ) . ' AND value_id=' . (int)$value
121 121
         );
122 122
         if (isset($row['value_alias'])) {
123 123
             return $row['value_alias'];
124 124
         }
125 125
 
126
-        $alias = $this->getIndexBase((int) $value);
126
+        $alias = $this->getIndexBase((int)$value);
127 127
         $alias = $this->cleanUrl($alias);
128 128
 
129 129
         $databaseConnection = HelperUtility::getDatabaseConnection();
Please login to merge, or discard this patch.
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/Service/TimeTable/TimeTimeTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
      */
240 240
     protected function getFrequencyLimitPerItem()
241 241
     {
242
-        $maxLimit = (int) ConfigurationUtility::get('frequencyLimitPerItem');
242
+        $maxLimit = (int)ConfigurationUtility::get('frequencyLimitPerItem');
243 243
         if ($maxLimit <= 0) {
244 244
             $maxLimit = 300;
245 245
         }
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/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.