Completed
Push — master ( 10cdc0...f5604b )
by Tim
18:35 queued 14:16
created
Classes/Service/RecurrenceService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * Recurrence service.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service;
9 9
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         // clone and reset and move to next month
68 68
         $dateTime = clone $date;
69
-        $dateTime->setDate((int) $dateTime->format('Y'), (int) $dateTime->format('m'), 1);
69
+        $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), 1);
70 70
         $dateTime->modify($modify);
71 71
 
72 72
         $days = $this->getValidDays($day);
@@ -162,15 +162,15 @@  discard block
 block discarded – undo
162 162
     protected function findDayInCurrentMonth(\DateTime $dateTime, string $direction, array $validDays, int $position = 1)
163 163
     {
164 164
         if (self::DIRECTION_UP === $direction) {
165
-            $dateTime->setDate((int) $dateTime->format('Y'), (int) $dateTime->format('m'), 1);
165
+            $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), 1);
166 166
             $modify = '+1 day';
167 167
         } else {
168
-            $dateTime->setDate((int) $dateTime->format('Y'), (int) $dateTime->format('m'), (int) $dateTime->format('t'));
168
+            $dateTime->setDate((int)$dateTime->format('Y'), (int)$dateTime->format('m'), (int)$dateTime->format('t'));
169 169
             $modify = '-1 day';
170 170
         }
171 171
         $validMonth = $dateTime->format('Y-m');
172 172
         while ($dateTime->format('Y-m') === $validMonth) {
173
-            if (\in_array((int) $dateTime->format('N'), $validDays, true)) {
173
+            if (\in_array((int)$dateTime->format('N'), $validDays, true)) {
174 174
                 --$position;
175 175
                 if (0 === $position) {
176 176
                     return $dateTime;
Please login to merge, or discard this patch.