@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Configuration Interface for constants. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Domain\Model; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Model Abstraction. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Domain\Model; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Configuration group repository. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Domain\Repository; |
9 | 9 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Event repository. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Domain\Repository; |
9 | 9 | |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | $ids = []; |
34 | 34 | foreach ($rows as $row) { |
35 | - $ids[] = (int) $row['uid']; |
|
35 | + $ids[] = (int)$row['uid']; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | return $ids; |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Repository Abstraction. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Domain\Repository; |
9 | 9 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Index repository. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Domain\Repository; |
9 | 9 | |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | */ |
290 | 290 | public function findWeek($year, $week, $weekStart = 1) |
291 | 291 | { |
292 | - $weekStart = (int) $weekStart; |
|
292 | + $weekStart = (int)$weekStart; |
|
293 | 293 | $daysShift = DateTimeUtility::SECONDS_DAY * ($weekStart - 1); |
294 | 294 | $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year); |
295 | 295 | $timezone = DateTimeUtility::getTimeZone(); |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Configuration repository. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Domain\Repository; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * CalDav repository. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Domain\Repository; |
9 | 9 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Index the given events. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\Service; |
9 | 9 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | return $databaseConnection->exec_SELECTcountRows( |
72 | 72 | '*', |
73 | 73 | self::TABLE_NAME, |
74 | - 'foreign_table=' . $databaseConnection->fullQuoteStr($table, self::TABLE_NAME) . ' AND foreign_uid=' . (int) $uid |
|
74 | + 'foreign_table=' . $databaseConnection->fullQuoteStr($table, self::TABLE_NAME) . ' AND foreign_uid=' . (int)$uid |
|
75 | 75 | ); |
76 | 76 | } |
77 | 77 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | 'start_date >= ' . $now->getTimestamp() . ' AND foreign_table=' . $databaseConnection->fullQuoteStr( |
97 | 97 | $table, |
98 | 98 | self::TABLE_NAME |
99 | - ) . ' AND foreign_uid=' . (int) $uid, |
|
99 | + ) . ' AND foreign_uid=' . (int)$uid, |
|
100 | 100 | '', |
101 | 101 | 'start_date ASC, start_time ASC', |
102 | 102 | $limit |
@@ -178,11 +178,11 @@ discard block |
||
178 | 178 | { |
179 | 179 | foreach ($neededItem as $key => $value) { |
180 | 180 | if (MathUtility::canBeInterpretedAsInteger($value)) { |
181 | - if ((int) $value !== (int) $currentItem[$key]) { |
|
181 | + if ((int)$value !== (int)$currentItem[$key]) { |
|
182 | 182 | return false; |
183 | 183 | } |
184 | 184 | } else { |
185 | - if ((string) $value !== (string) $currentItem[$key]) { |
|
185 | + if ((string)$value !== (string)$currentItem[$key]) { |
|
186 | 186 | return false; |
187 | 187 | } |
188 | 188 | } |
@@ -226,12 +226,12 @@ discard block |
||
226 | 226 | $validKeys[$key] = $databaseConnection->fullQuoteStr($value, self::TABLE_NAME); |
227 | 227 | } |
228 | 228 | |
229 | - return (bool) $databaseConnection->exec_DELETEquery( |
|
229 | + return (bool)$databaseConnection->exec_DELETEquery( |
|
230 | 230 | self::TABLE_NAME, |
231 | 231 | 'unique_register_key NOT IN (' . \implode(',', $validKeys) . ')' |
232 | 232 | ); |
233 | 233 | } |
234 | 234 | |
235 | - return (bool) $databaseConnection->exec_TRUNCATEquery(self::TABLE_NAME); |
|
235 | + return (bool)$databaseConnection->exec_TRUNCATEquery(self::TABLE_NAME); |
|
236 | 236 | } |
237 | 237 | } |