Completed
Push — master ( 62dfe3...9cfd8b )
by Andreas
03:23
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@
 block discarded – undo
63 63
         if ($endOfPessach > $orthodoxEaster) {
64 64
             $weekday = $endOfPessach->format('w');
65 65
             var_Dump('foo');
66
-            var_Dump($endOfPessach->add(new \DateInterval('P' . (7-$weekday) . 'D')));
67
-            return $endOfPessach->add(new \DateInterval('P' . (7-$weekday) . 'D'));
66
+            var_Dump($endOfPessach->add(new \DateInterval('P' . (7 - $weekday) . 'D')));
67
+            return $endOfPessach->add(new \DateInterval('P' . (7 - $weekday) . 'D'));
68 68
         }
69 69
 
70 70
         return $orthodoxEaster;
Please login to merge, or discard this patch.