mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 17:41:50 +01:00
Increase Mutation Score Indicator (MSI) by removing "src/Type/DatePeriod.php:131 [M] LogicalOr" mutant
This commit is contained in:
@@ -114,7 +114,8 @@ class DatePeriod extends BaseType
|
||||
* Returns formatted one of the period's date: start date or end date
|
||||
*
|
||||
* @param string $format Format used to format the date
|
||||
* @param bool $startDate (optional) If is set to true, start date will be formatted. Otherwise - end date.
|
||||
* @param bool $startDate (optional) If is set to true, start date will be formatted (default behaviour).
|
||||
* Otherwise - end date.
|
||||
* @return string
|
||||
*/
|
||||
public function getFormattedDate(string $format, bool $startDate = true): string
|
||||
|
||||
Reference in New Issue
Block a user