Increase Mutation Score Indicator (MSI) by removing "src/Type/DatePeriod.php:131 [M] LogicalOr" mutant

This commit is contained in:
Meritoo
2019-08-11 13:25:28 +02:00
parent ec1e95a086
commit bc20645cba
2 changed files with 43 additions and 1 deletions

View File

@@ -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