Fix styling

This commit is contained in:
hekmatinasser authored and GitHub Actions committed 2022-02-18 09:42:47 +00:00
1 parent 8ecabc5a5e
commit c856ab984d
1 file changed
+4 -2
+4 -2
View File
@@ -246,9 +246,10 @@ trait Accessor
{
list($year, $month, $day) = self::getGregorian($year, $month, $day);
if(static::isValidDate($year, $month, $day)) {
if (static::isValidDate($year, $month, $day)) {
parent::setDate($year, $month, $day);
}
return $this;
}
@@ -269,9 +270,10 @@ trait Accessor
$minute = $time[1] ?? 0;
$second = $time[2] ?? 0;
if(static::isValidTime($hour, $minute, $second)) {
if (static::isValidTime($hour, $minute, $second)) {
parent::setTime($hour, $minute, $second, 0);
}
return $this;
}
}