Test Failed
Pull Request — master (#14)
by Samuel
01:57
created
src/Recurrence/DatetimeProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         // Estimate end date in case of count option
27 27
         $periodEndAt = $recurrence->getPeriodEndAt();
28 28
         if ($recurrence->hasCount()) {
29
-            $periodEndAt   = clone $recurrence->getPeriodStartAt();
29
+            $periodEndAt = clone $recurrence->getPeriodStartAt();
30 30
             $periodEndAt->modify(str_replace('1', ($recurrence->getCount()*$recurrence->getInterval()), $recurrence->getFrequency()->convertToDateTimeFormat()));
31 31
         }
32 32
 
Please login to merge, or discard this patch.
src/Recurrence/RruleTransformer/DtStartTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
                 return \DateTime::createFromFormat(
52 52
                     $datePattern['date_format'],
53 53
                     $matches[1],
54
-                    (($datePattern['timezone'])? new \DateTimeZone($datePattern['timezone']) : null)
54
+                    (($datePattern['timezone']) ? new \DateTimeZone($datePattern['timezone']) : null)
55 55
                 );
56 56
             }
57 57
         }
Please login to merge, or discard this patch.