@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | { |
77 | 77 | $dateTime = \DateTime::createFromFormat($format, $time, $this->resolveDateTimeZone($timeZone)); |
78 | 78 | |
79 | - if (empty($dateTime) || (! $dateTime instanceof \DateTime)) { |
|
79 | + if (empty($dateTime) || (!$dateTime instanceof \DateTime)) { |
|
80 | 80 | throw new DateTimeFactoryException( |
81 | 81 | sprintf( |
82 | 82 | 'Failed to create a valid \DateTime instance using format \'%s\' for time \'%s\' in \'%s\'.', |
@@ -101,9 +101,9 @@ discard block |
||
101 | 101 | */ |
102 | 102 | private function resolveDateTimeZone($timeZone): ?\DateTimeZone |
103 | 103 | { |
104 | - if (is_string($timeZone) && ! empty($timeZone)) { |
|
104 | + if (is_string($timeZone) && !empty($timeZone)) { |
|
105 | 105 | $timeZone = $this->createDateTimeZone($timeZone); |
106 | - } elseif (empty($timeZone) || (! $timeZone instanceof \DateTimeZone)) { |
|
106 | + } elseif (empty($timeZone) || (!$timeZone instanceof \DateTimeZone)) { |
|
107 | 107 | $timeZone = null; |
108 | 108 | } |
109 | 109 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $factory = $config['factory'] ?? DateTimeFactory::class; |
31 | 31 | |
32 | - if (! is_a($factory, DateTimeFactory::class, true)) { |
|
32 | + if (!is_a($factory, DateTimeFactory::class, true)) { |
|
33 | 33 | throw new FactoryException(sprintf( |
34 | 34 | 'The factory argument must be a class that implements \'%s\'; \'%s\' provided in \'%s\'', |
35 | 35 | DateTimeFactory::class, |