@@ -29,9 +29,6 @@ |
||
| 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 | /** |
@@ -69,8 +69,8 @@ |
||
| 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'); |
@@ -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( |