Completed
Push — master ( 7d7e16...bf07fb )
by Andreas
01:59
created
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));
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $file = __DIR__ . '/../share/%s.xml';
80 80
         $file1 = sprintf($file, $isoCode);
81 81
 
82
-        if (! is_readable($file1)) {
82
+        if (!is_readable($file1)) {
83 83
             throw new \UnexpectedValueException(sprintf(
84 84
                 'There is no holiday-file for %s',
85 85
                 $isoCode
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                     $this->getFree($child),
106 106
                     $child->getAttribute('day'),
107 107
                     $child->getAttribute('month'),
108
-                    ($child->hasAttribute('year')?$child->getAttribute('year'): null)
108
+                    ($child->hasAttribute('year') ? $child->getAttribute('year') : null)
109 109
                 );
110 110
             case 'dateFollowUp':
111 111
                 return new DateFollowUp(
Please login to merge, or discard this patch.