Passed
Pull Request — main (#4931)
by Greg
15:47 queued 09:48
created
app/Factories/TimestampFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function make(int $timestamp, UserInterface $user = null): TimestampInterface
48 48
     {
49
-        $user     ??= Auth::user();
49
+        $user ??= Auth::user();
50 50
         $timezone = $user->getPreference(UserInterface::PREF_TIME_ZONE, Site::getPreference('TIMEZONE'));
51 51
         $locale   = I18N::locale()->code();
52 52
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function fromString(?string $string, string $format = 'Y-m-d H:i:s', UserInterface $user = null): TimestampInterface
66 66
     {
67 67
         $string ??= date($format);
68
-        $utc    = new DateTimeZone('UTC');
68
+        $utc = new DateTimeZone('UTC');
69 69
 
70 70
         return $this->fromZoneString($utc, $string, $format, $user);
71 71
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function fromLocalString(string $string, string $format = 'Y-m-d H:i:s', UserInterface $user = null): TimestampInterface
83 83
     {
84
-        $user     ??= Auth::user();
84
+        $user ??= Auth::user();
85 85
         $timezone = new DateTimeZone($user->getPreference(UserInterface::PREF_TIME_ZONE, Site::getPreference('TIMEZONE')));
86 86
 
87 87
         return $this->fromZoneString($timezone, $string, $format, $user);
Please login to merge, or discard this patch.