@@ -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( |
34 | 34 | sprintf( |
35 | 35 | 'The factory argument must be a class that implements \'%s\'; \'%s\' provided in \'%s\'', |
@@ -51,9 +51,9 @@ discard block |
||
51 | 51 | */ |
52 | 52 | private function resolveDateTimeZone($timeZone): ?\DateTimeZone |
53 | 53 | { |
54 | - if (is_string($timeZone) && ! empty($timeZone)) { |
|
54 | + if (is_string($timeZone) && !empty($timeZone)) { |
|
55 | 55 | $timeZone = $this->createDateTimeZone($timeZone); |
56 | - } elseif (empty($timeZone) || (! $timeZone instanceof \DateTimeZone)) { |
|
56 | + } elseif (empty($timeZone) || (!$timeZone instanceof \DateTimeZone)) { |
|
57 | 57 | $timeZone = null; |
58 | 58 | } |
59 | 59 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | $dateTime = \DateTime::createFromFormat($format, $spec, $this->resolveDateTimeZone($timeZone)); |
104 | 104 | |
105 | - if (empty($dateTime) || (! $dateTime instanceof \DateTime)) { |
|
105 | + if (empty($dateTime) || (!$dateTime instanceof \DateTime)) { |
|
106 | 106 | throw new DateTimeFactoryException( |
107 | 107 | sprintf( |
108 | 108 | 'Failed to create a valid \DateTime instance using specification \'%s\' in \'%s\'.', |