@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Calendarize logical exception. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Index interface for the ke_search extension to index the events. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Features; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Feed interface. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Features; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * RealURL features. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Features; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Booking interface. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Features; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * Cleanup the event models. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Command; |
| 9 | 9 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | // climb thru the events and hide/delete them |
| 71 | 71 | foreach ($events as $event) { |
| 72 | - $uid = (int) $event['foreign_uid']; |
|
| 72 | + $uid = (int)$event['foreign_uid']; |
|
| 73 | 73 | |
| 74 | 74 | $model = $repository->findByUid($uid); |
| 75 | 75 | |
@@ -102,12 +102,12 @@ discard block |
||
| 102 | 102 | protected function processEvent(EventRepository $repository, Event $model, $modus) |
| 103 | 103 | { |
| 104 | 104 | // define the function for the delete-modus. |
| 105 | - $delete = function ($repository, $model) { |
|
| 105 | + $delete = function($repository, $model) { |
|
| 106 | 106 | $repository->remove($model); |
| 107 | 107 | }; |
| 108 | 108 | |
| 109 | 109 | // define the function for the hide-modus. |
| 110 | - $hide = function ($repository, $model) { |
|
| 110 | + $hide = function($repository, $model) { |
|
| 111 | 111 | $model->setHidden(true); |
| 112 | 112 | $repository->update($model); |
| 113 | 113 | }; |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | protected function findOutdatedEvents($tableName, $waitingPeriod) |
| 144 | 144 | { |
| 145 | 145 | // calculate the waiting time |
| 146 | - $interval = 'P' . (int) $waitingPeriod . 'D'; |
|
| 146 | + $interval = 'P' . (int)$waitingPeriod . 'D'; |
|
| 147 | 147 | $now = DateTimeUtility::getNow(); |
| 148 | 148 | $now->sub(new \DateInterval($interval)); |
| 149 | 149 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Command controller abstraction. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Command; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * Import. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Command; |
| 9 | 9 | |
@@ -118,6 +118,6 @@ discard block |
||
| 118 | 118 | )); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - return (array) (new \ICal($absoluteIcalFile))->events(); |
|
| 121 | + return (array)(new \ICal($absoluteIcalFile))->events(); |
|
| 122 | 122 | } |
| 123 | 123 | } |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Reindex the event models. |
| 5 | 5 | */ |
| 6 | -declare(strict_types=1); |
|
| 6 | +declare(strict_types = 1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Calendarize\Command; |
| 9 | 9 | |