Ran phpcbf over code
This commit is contained in:
@ -11,7 +11,7 @@ declare(strict_types = 1);
|
||||
*/
|
||||
final class NodaSplitTime {
|
||||
|
||||
const DEFAULT_DATE = '0001-01-01';
|
||||
public const DEFAULT_DATE = '0001-01-01';
|
||||
|
||||
public readonly string $start_year;
|
||||
public readonly string $end_year;
|
||||
@ -40,11 +40,13 @@ final class NodaSplitTime {
|
||||
$start_date = $end_date = $year . '-' . $month . '-' . $day;
|
||||
|
||||
if ($before_after_indicator === NodaTimeBeforeAfterIndicator::before
|
||||
|| $before_after_indicator === NodaTimeBeforeAfterIndicator::until) {
|
||||
|| $before_after_indicator === NodaTimeBeforeAfterIndicator::until
|
||||
) {
|
||||
$start_year = $start_date = '?';
|
||||
}
|
||||
if ($before_after_indicator === NodaTimeBeforeAfterIndicator::after
|
||||
|| $before_after_indicator === NodaTimeBeforeAfterIndicator::since) {
|
||||
|| $before_after_indicator === NodaTimeBeforeAfterIndicator::since
|
||||
) {
|
||||
$end_year = $end_date = '?';
|
||||
}
|
||||
|
||||
@ -94,7 +96,6 @@ final class NodaSplitTime {
|
||||
throw new MDgenericInvalidInputsException("Times with no certain end need to have a question mark (?) entered as a end date");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -272,7 +273,6 @@ final class NodaSplitTime {
|
||||
|
||||
return "";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -330,7 +330,6 @@ final class NodaSplitTime {
|
||||
$this->end_date = '9999-12-31';
|
||||
}
|
||||
|
||||
|
||||
if (!isset($this->start_date) && false !== $start_date) {
|
||||
$this->start_date = date("Y-m-d", MD_STD::strtotime($start_date));
|
||||
}
|
||||
@ -361,7 +360,5 @@ final class NodaSplitTime {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user