From b65c8969fc9f00526e2d432121f3d5bc9fb5f3ea Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Mon, 13 Jun 2022 07:41:23 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/AbstractDay.php | 4 ++-- src/BusinessInterface.php | 4 ++-- src/Days.php | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/AbstractDay.php b/src/AbstractDay.php index 9843ede..c82f374 100644 --- a/src/AbstractDay.php +++ b/src/AbstractDay.php @@ -27,8 +27,8 @@ abstract class AbstractDay implements DayInterface /** * Constructor. * - * @param integer $dayOfWeek The day of week - * @param array $openingIntervals The opening intervals + * @param int $dayOfWeek The day of week + * @param array $openingIntervals The opening intervals */ public function __construct($dayOfWeek, array $openingIntervals) { diff --git a/src/BusinessInterface.php b/src/BusinessInterface.php index b4e361e..2a9a9e9 100644 --- a/src/BusinessInterface.php +++ b/src/BusinessInterface.php @@ -37,9 +37,9 @@ public function within(\DateTime $date); * @param \DateTime $end The end date * @param \DateInterval $interval The interval between two dates * - * @return \DateTime[] - * * @throws \LogicException If the start date is not earlier than end date + * + * @return \DateTime[] */ public function timeline(\DateTime $start, \DateTime $end, \DateInterval $interval); diff --git a/src/Days.php b/src/Days.php index c17ad9f..c22e818 100644 --- a/src/Days.php +++ b/src/Days.php @@ -27,13 +27,13 @@ final class Days const SUNDAY = 7; private static $strings = [ - self::MONDAY => 'Monday', - self::TUESDAY => 'Tuesday', + self::MONDAY => 'Monday', + self::TUESDAY => 'Tuesday', self::WEDNESDAY => 'Wednesday', - self::THURSDAY => 'Thursday', - self::FRIDAY => 'Friday', - self::SATURDAY => 'Saturday', - self::SUNDAY => 'Sunday' + self::THURSDAY => 'Thursday', + self::FRIDAY => 'Friday', + self::SATURDAY => 'Saturday', + self::SUNDAY => 'Sunday', ]; /**