Completed
Push — main ( afcb30...7ad494 )
by Andreas
01:33 queued 10s
created
Category
src/HolidayIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/IteratorItem/EasterOrthodox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         $orthodoxEaster = $this->getOrthodoxEaster($year);
70 70
         if ($endOfPessach > $orthodoxEaster) {
71 71
             $weekday = (int) $endOfPessach->format('w');
72
-            return $endOfPessach->add(new DateInterval('P' . (7-$weekday) . 'D'));
72
+            return $endOfPessach->add(new DateInterval('P' . (7 - $weekday) . 'D'));
73 73
         }
74 74
 
75 75
         return $orthodoxEaster;
Please login to merge, or discard this patch.
src/IteratorItem/DateFollowUp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,8 @@
 block discarded – undo
102 102
             ];
103 103
         }
104 104
 
105
-        return array_map(function (string $day) use ($daymap) {
106
-            if (! isset($daymap[$day])) {
105
+        return array_map(function(string $day) use ($daymap) {
106
+            if (!isset($daymap[$day])) {
107 107
                 return null;
108 108
             }
109 109
             return $daymap[$day];
Please login to merge, or discard this patch.
src/CalendarDayFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 {
41 41
     public static function createCalendarDay(int $day, int $month, string $calendar): CalendarDay
42 42
     {
43
-        if (! Calendar::isValidCalendarName($calendar)) {
43
+        if (!Calendar::isValidCalendarName($calendar)) {
44 44
             throw new UnknownCalendar(sprintf(
45 45
                 'The calendar %s is not known to the ICU',
46 46
                 $calendar
Please login to merge, or discard this patch.
src/CalendarDay.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     public function isSameDay(DateTimeInterface $dateTime): bool
73 73
     {
74
-        $cal         = clone $this->calendar;
74
+        $cal = clone $this->calendar;
75 75
         $cal->setTime($dateTime->getTimestamp() * 1000);
76 76
 
77 77
         if (null !== $this->year &&
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $day = $cal->toDateTime();
95 95
         $day->modify('next ' . $followUpDay);
96 96
         $cal->setTime($day->getTimestamp() * 1000);
97
-        $cal2         = clone $this->calendar;
97
+        $cal2 = clone $this->calendar;
98 98
         $cal2->setTime($dateTime->getTimestamp() * 1000);
99 99
 
100 100
         if (null !== $this->year && $cal->get(IntlCalendar::FIELD_YEAR) !== $cal2->get(IntlCalendar::FIELD_YEAR)) {
Please login to merge, or discard this patch.
src/HolidayIteratorFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
         $dom->load($file);
67 67
         $dom->xinclude();
68 68
 
69
-        if (! @$dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) {
69
+        if (!@$dom->schemaValidate(__DIR__ . '/../share/holidays.xsd')) {
70 70
             throw new Exception('XML-File does not validate agains schema');
71 71
         }
72 72
         foreach ($dom->documentElement->childNodes as $child) {
73
-            if (! $child instanceof DOMElement) {
73
+            if (!$child instanceof DOMElement) {
74 74
                 continue;
75 75
             }
76 76
             $iterator->append($this->getElement($child));
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $file = __DIR__ . '/../share/%s.xml';
92 92
         $file1 = sprintf($file, $isoCode);
93 93
 
94
-        if (! is_readable($file1)) {
94
+        if (!is_readable($file1)) {
95 95
             throw new UnexpectedValueException(sprintf(
96 96
                 'There is no holiday-file for %s',
97 97
                 $isoCode
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 $day = CalendarDayFactory::createCalendarDay(
121 121
                     (int) $child->getAttribute('day'),
122 122
                     (int) $child->getAttribute('month'),
123
-                    ($child->hasAttribute('calendar')?$child->getAttribute('calendar'): 'gregorian')
123
+                    ($child->hasAttribute('calendar') ? $child->getAttribute('calendar') : 'gregorian')
124 124
                 );
125 125
                 if ($child->hasAttribute('year')) {
126 126
                     $day->setYear((int) $child->getAttribute('year'));
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                 $day = CalendarDayFactory::createCalendarDay(
135 135
                     (int) $child->getAttribute('day'),
136 136
                     (int) $child->getAttribute('month'),
137
-                    ($child->hasAttribute('calendar')?$child->getAttribute('calendar'): 'gregorian')
137
+                    ($child->hasAttribute('calendar') ? $child->getAttribute('calendar') : 'gregorian')
138 138
                 );
139 139
 
140 140
                 return new DateFollowUp(
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                     $this->getFree($child),
143 143
                     $day,
144 144
                     $child->getAttribute('followup'),
145
-                    ($child->hasAttribute('replaced')?explode(' ', $child->getAttribute('replaced')):[])
145
+                    ($child->hasAttribute('replaced') ?explode(' ', $child->getAttribute('replaced')) : [])
146 146
                 );
147 147
             case 'relative':
148 148
                 return new Relative(
Please login to merge, or discard this patch.