Completed
Push — master ( 435c51...7d7e16 )
by Andreas
02:08
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/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.
src/HolidayIteratorFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
         $dom->load($file);
55 55
         $dom->xinclude();
56 56
 
57
-        if (! $dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) {
57
+        if (!$dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) {
58 58
             throw new \Exception('XML-File does not validate agains schema');
59 59
         }
60 60
         foreach ($dom->documentElement->childNodes as $child) {
61
-            if (! $child instanceof \DOMElement) {
61
+            if (!$child instanceof \DOMElement) {
62 62
                 continue;
63 63
             }
64 64
             $iterator->append($this->getElement($child));
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     public function createIteratorFromISO3166(string $isoCode) : HolidayIterator
78 78
     {
79 79
         $file = __DIR__ . '/../share/' . strtoupper($isoCode) . '.xml';
80
-        if (! is_readable($file)) {
80
+        if (!is_readable($file)) {
81 81
             throw new \UnexpectedValueException(sprintf(
82 82
                 'There is no holiday-file for %s',
83 83
                 $isoCode
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                     $this->getFree($child),
104 104
                     $child->getAttribute('day'),
105 105
                     $child->getAttribute('month'),
106
-                    ($child->hasAttribute('year')?$child->getAttribute('year'): null)
106
+                    ($child->hasAttribute('year') ? $child->getAttribute('year') : null)
107 107
                 );
108 108
             case 'dateFollowUp':
109 109
                 return new DateFollowUp(
Please login to merge, or discard this patch.