| @@ -37,7 +37,7 @@ | ||
| 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 | |
| @@ -62,7 +62,7 @@ | ||
| 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; | 
| @@ -54,11 +54,11 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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( |