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