Completed
Branch master (62dfe3)
by Andreas
07:44
created
src/IteratorItem/EasterOrthodox.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -29,9 +29,6 @@
 block discarded – undo
29 29
 
30 30
 namespace Org_Heigl\Holidaychecker\IteratorItem;
31 31
 
32
-use Org_Heigl\DateIntervalComparator\DateIntervalComparator;
33
-use Org_Heigl\Holidaychecker\HolidayIteratorItemInterface;
34
-
35 32
 class EasterOrthodox extends Easter
36 33
 {
37 34
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@
 block discarded – undo
69 69
         if ($endOfPessach > $orthodoxEaster) {
70 70
             $weekday = $endOfPessach->format('w');
71 71
             var_Dump('foo');
72
-            var_Dump($endOfPessach->add(new \DateInterval('P' . (7-$weekday) . 'D')));
73
-            return $endOfPessach->add(new \DateInterval('P' . (7-$weekday) . 'D'));
72
+            var_Dump($endOfPessach->add(new \DateInterval('P' . (7 - $weekday) . 'D')));
73
+            return $endOfPessach->add(new \DateInterval('P' . (7 - $weekday) . 'D'));
74 74
         }
75 75
 
76 76
         var_Dump('bar');
Please login to merge, or discard this patch.
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.