Fix styling

This commit is contained in:
hekmatinasser authored and GitHub Actions committed 2022-02-16 09:29:28 +00:00
1 parent f273aba80d
commit 6551b9eecf
1 file changed
+2 -1
+2 -1
View File
@@ -18,7 +18,7 @@ trait Creator
*/ */
public function __construct($datetime = null, $timezone = null) public function __construct($datetime = null, $timezone = null)
{ {
if(static::$testNow) { if (static::$testNow) {
$dt = static::$testNow; $dt = static::$testNow;
} elseif (empty($datetime)) { } elseif (empty($datetime)) {
$dt = 'now'; $dt = 'now';
@@ -266,6 +266,7 @@ trait Creator
if ($tz === false) { if ($tz === false) {
throw new InvalidArgumentException(sprintf("Unknown timezone '%s'", $tz)); throw new InvalidArgumentException(sprintf("Unknown timezone '%s'", $tz));
} }
return $tz; return $tz;
} }
} }