@@ -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)); |
@@ -79,7 +79,7 @@ discard block |
||
| 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 |
||
| 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( |