Completed
Push — master ( a67fbc...6c0a08 )
by Samuel
11s
created
src/Recurrence/RruleTransformer/FreqTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function transform($rRule)
14 14
     {
15
-        if(preg_match('/FREQ=([a-zA-Z]+)/', $rRule, $matches)) {
15
+        if (preg_match('/FREQ=([a-zA-Z]+)/', $rRule, $matches)) {
16 16
             return new Frequency($matches[1]);
17 17
         }
18 18
 
Please login to merge, or discard this patch.
src/Recurrence/RruleTransformer/DtStartTransformer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function transform($rRule)
14 14
     {
15
-        if(preg_match('/' . $this::RRULE_PARAMETER . ';TZID=([a-zA-Z_-]+[\/[a-zA-Z_+\-0-9]+]?):([0-9]{8}T[0-9]{6})/', $rRule, $matches)) {
15
+        if (preg_match('/'.$this::RRULE_PARAMETER.';TZID=([a-zA-Z_-]+[\/[a-zA-Z_+\-0-9]+]?):([0-9]{8}T[0-9]{6})/', $rRule, $matches)) {
16 16
             try {
17 17
                 return \DateTime::createFromFormat('Ymd\THis', $matches[2], new \DateTimeZone($matches[1]));
18 18
             } catch (\Exception $e) {
@@ -20,19 +20,19 @@  discard block
 block discarded – undo
20 20
             }
21 21
         }
22 22
 
23
-        if(preg_match('/' . $this::RRULE_PARAMETER . '=([0-9]{8}T[0-9]{6}Z)/', $rRule, $matches)) {
23
+        if (preg_match('/'.$this::RRULE_PARAMETER.'=([0-9]{8}T[0-9]{6}Z)/', $rRule, $matches)) {
24 24
             return \DateTime::createFromFormat('Ymd\THisZ', $matches[1], new \DateTimeZone('UTC'));
25 25
         }
26 26
 
27
-        if(preg_match('/' . $this::RRULE_PARAMETER . '=([0-9]{8}T[0-9]{6})/', $rRule, $matches)) {
27
+        if (preg_match('/'.$this::RRULE_PARAMETER.'=([0-9]{8}T[0-9]{6})/', $rRule, $matches)) {
28 28
             return \DateTime::createFromFormat('Ymd\THis', $matches[1]);
29 29
         }
30 30
 
31
-        if(preg_match('/' . $this::RRULE_PARAMETER . '=([0-9]{8})/', $rRule, $matches)) {
31
+        if (preg_match('/'.$this::RRULE_PARAMETER.'=([0-9]{8})/', $rRule, $matches)) {
32 32
             return \DateTime::createFromFormat('Ymd', $matches[1]);
33 33
         }
34 34
 
35
-        if(preg_match('/' . $this::RRULE_PARAMETER . '/', $rRule, $matches)) {
35
+        if (preg_match('/'.$this::RRULE_PARAMETER.'/', $rRule, $matches)) {
36 36
             throw new \InvalidArgumentException(sprintf('Invalid RRULE [%s]', $this::RRULE_PARAMETER));
37 37
         }
38 38
 
Please login to merge, or discard this patch.