@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Link to the month. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\ViewHelpers\Link; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Check if a date is lower. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\ViewHelpers; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * TitleTagViewHelper. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\ViewHelpers; |
9 | 9 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Days in week view helper. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\ViewHelpers\Loop; |
9 | 9 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | $days = []; |
41 | - $move = (int) ($date->format('N') - ((int) $this->arguments['weekStartsAt'])); |
|
41 | + $move = (int)($date->format('N') - ((int)$this->arguments['weekStartsAt'])); |
|
42 | 42 | $date->modify('-' . $move . ' days'); |
43 | 43 | $inWeek = false; |
44 | 44 | for ($i = 0; $i < 7; ++$i) { |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Days in month view helper. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\ViewHelpers\Loop; |
9 | 9 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | { |
24 | 24 | $daysInMonth = $date->format('t'); |
25 | 25 | $days = []; |
26 | - $move = (int) ($date->format('j') - 1); |
|
26 | + $move = (int)($date->format('j') - 1); |
|
27 | 27 | $date->modify('-' . $move . ' days'); |
28 | 28 | |
29 | 29 | for ($i = 0; $i < $daysInMonth; ++$i) { |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Abstraction for loop view helper. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\ViewHelpers\Loop; |
9 | 9 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Weeks in month view helper. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\ViewHelpers\Loop; |
9 | 9 | |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | $dateClone->modify('first day of this month'); |
39 | 39 | |
40 | 40 | $monthCheck = $dateClone->format('m'); |
41 | - while ((int) $monthCheck === (int) $dateClone->format('m')) { |
|
42 | - $week = (int) $dateClone->format('W'); |
|
41 | + while ((int)$monthCheck === (int)$dateClone->format('m')) { |
|
42 | + $week = (int)$dateClone->format('W'); |
|
43 | 43 | if (!isset($weeks[$week])) { |
44 | 44 | $weeks[$week] = [ |
45 | 45 | 'week' => $week, |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Modify a DateTime. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\ViewHelpers\DateTime; |
9 | 9 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Check if the given Index is on the given day. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Calendarize\ViewHelpers\DateTime; |
9 | 9 |