Completed
Push — master ( 9764f8...4b90ae )
by Andreas
02:18
created
src/HolidayIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 {
38 38
     public function append($value)
39 39
     {
40
-        if (! $value instanceof HolidayIteratorItemInterface) {
40
+        if (!$value instanceof HolidayIteratorItemInterface) {
41 41
             return;
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/HolidayIteratorFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
 
42 42
         $dom = new \DOMDocument('1.0', 'UTF-8');
43 43
         $dom->load($file);
44
-        if (! $dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) {
44
+        if (!$dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) {
45 45
             throw new \Exception('XML-File does not validate agains schema');
46 46
         }
47 47
         foreach ($dom->documentElement->childNodes as $child) {
48
-            if (! $child instanceof \DOMElement) {
48
+            if (!$child instanceof \DOMElement) {
49 49
                 continue;
50 50
             }
51 51
             $iterator->append($this->getElement($child));
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                     $this->getFree($child),
70 70
                     $child->getAttribute('day'),
71 71
                     $child->getAttribute('month'),
72
-                    ($child->hasAttribute('year')?$child->getAttribute('year'): null)
72
+                    ($child->hasAttribute('year') ? $child->getAttribute('year') : null)
73 73
                 );
74 74
             case 'relative':
75 75
                 return new Relative(
Please login to merge, or discard this patch.
src/IteratorItem/EasterOrthodox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $orthodoxEaster = $this->getOrthodoxEaster($year);
63 63
         if ($endOfPessach > $orthodoxEaster) {
64 64
             $weekday = $endOfPessach->format('w');
65
-            return $endOfPessach->add(new \DateInterval('P' . (7-$weekday) . 'D'));
65
+            return $endOfPessach->add(new \DateInterval('P' . (7 - $weekday) . 'D'));
66 66
         }
67 67
 
68 68
         return $orthodoxEaster;
Please login to merge, or discard this patch.