Passed
Push — addCentralAfricanRepublic ( f53eb2 )
by Andreas
02:20
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/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.
src/ObservanceDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
 	public function dateMatches(DateTimeInterface $date): bool
43 43
 	{
44
-		if (! $this->isWithinObservance((int) $date->format('Y'))) {
44
+		if (!$this->isWithinObservance((int) $date->format('Y'))) {
45 45
 			return false;
46 46
 		}
47 47
 
Please login to merge, or discard this patch.
src/Factory/ObservanceDecoratorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
 	public function decorate(HolidayIteratorItemInterface $element, DOMElement $domElement): HolidayIteratorItemInterface
20 20
 	{
21
-		if (! $domElement->hasAttribute('firstobservance') && ! $domElement->hasAttribute('lastobservance')) {
21
+		if (!$domElement->hasAttribute('firstobservance') && !$domElement->hasAttribute('lastobservance')) {
22 22
 			return $element;
23 23
 		}
24 24
 
Please login to merge, or discard this patch.
src/CalendarDay.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 		$day = $cal->toDateTime();
117 117
 		$day->modify($direction . ' ' . $modifiedDay);
118 118
 		$cal->setTime($day->getTimestamp() * 1000);
119
-		$cal2         = clone $this->calendar;
119
+		$cal2 = clone $this->calendar;
120 120
 		$cal2->setTime($dateTime->getTimestamp() * 1000);
121 121
 
122 122
 		if (null !== $this->year && $cal->get(IntlCalendar::FIELD_YEAR) !== $cal2->get(IntlCalendar::FIELD_YEAR)) {
Please login to merge, or discard this patch.
src/SwapDirection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
 	public static function forward(): self
45 45
 	{
46
-		if (! isset(self::$instances[self::FORWARD])) {
46
+		if (!isset(self::$instances[self::FORWARD])) {
47 47
 			self::$instances[self::FORWARD] = new self(self::FORWARD);
48 48
 		}
49 49
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
 	public static function rewind(): self
54 54
 	{
55
-		if (! isset(self::$instances[self::REWIND])) {
55
+		if (!isset(self::$instances[self::REWIND])) {
56 56
 			self::$instances[self::REWIND] = new self(self::REWIND);
57 57
 		}
58 58
 
Please login to merge, or discard this patch.
src/Factory/SwapDecoratorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 		return new SwapRule(
62 62
 			$direction,
63 63
 			GregorianWeekday::fromString($to),
64
-			...array_map(function ($item) {
64
+			...array_map(function($item) {
65 65
 				return GregorianWeekday::fromString($item);
66 66
 			}, explode(' ', $when))
67 67
 		);
Please login to merge, or discard this patch.