Passed
Branch master (28aefb)
by Alex
07:03
created
Category
src/DateTimeFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Factory/CurrentDateTimeProviderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.