Completed
Push — dependabot/bundler/docs/jekyll... ( 59017a...a5569c )
by Andreas
28s queued 15s
created
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
             if ($child->nodeName === 'resources') {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $file = __DIR__ . '/../share/%s.xml';
95 95
         $file1 = sprintf($file, $isoCode);
96 96
 
97
-        if (! is_readable($file1)) {
97
+        if (!is_readable($file1)) {
98 98
             throw new UnexpectedValueException(sprintf(
99 99
                 'There is no holiday-file for %s',
100 100
                 $isoCode
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 $day = CalendarDayFactory::createCalendarDay(
124 124
                     (int) $child->getAttribute('day'),
125 125
                     (int) $child->getAttribute('month'),
126
-                    ($child->hasAttribute('calendar')?$child->getAttribute('calendar'): 'gregorian')
126
+                    ($child->hasAttribute('calendar') ? $child->getAttribute('calendar') : 'gregorian')
127 127
                 );
128 128
                 if ($child->hasAttribute('year')) {
129 129
                     $day->setYear((int) $child->getAttribute('year'));
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 $day = CalendarDayFactory::createCalendarDay(
138 138
                     (int) $child->getAttribute('day'),
139 139
                     (int) $child->getAttribute('month'),
140
-                    ($child->hasAttribute('calendar')?$child->getAttribute('calendar'): 'gregorian')
140
+                    ($child->hasAttribute('calendar') ? $child->getAttribute('calendar') : 'gregorian')
141 141
                 );
142 142
 
143 143
                 return new DateFollowUp(
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                     $this->getFree($child),
146 146
                     $day,
147 147
                     $child->getAttribute('followup'),
148
-                    ($child->hasAttribute('replaced')?explode(' ', $child->getAttribute('replaced')):[])
148
+                    ($child->hasAttribute('replaced') ?explode(' ', $child->getAttribute('replaced')) : [])
149 149
                 );
150 150
             case 'relative':
151 151
                 return new Relative(
Please login to merge, or discard this patch.
src/HolidayIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     #[\ReturnTypeWillChange]
47 47
     public function append($value)
48 48
     {
49
-        if (! $value instanceof HolidayIteratorItemInterface) {
49
+        if (!$value instanceof HolidayIteratorItemInterface) {
50 50
             return;
51 51
         }
52 52
 
Please login to merge, or discard this patch.