Passed
Push — master ( 518ca5...423f94 )
by Oliver
02:46
created
src/Entities/OpeningHours.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -223,6 +223,9 @@
 block discarded – undo
223 223
         return $day;
224 224
     }
225 225
 
226
+    /**
227
+     * @return DateTimeInterface
228
+     */
226 229
     protected function applyTimezone(DateTimeInterface $date)
227 230
     {
228 231
         if ($this->timezone) {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Webfactor\Laravel\OpeningHours\Entities;
4 4
 
5 5
 use DateTime;
6
-use DateTimeZone;
7 6
 use DateTimeInterface;
7
+use DateTimeZone;
8 8
 use Webfactor\Laravel\OpeningHours\Exceptions\Exception;
9 9
 use Webfactor\Laravel\OpeningHours\Exceptions\InvalidDate;
10 10
 use Webfactor\Laravel\OpeningHours\Exceptions\InvalidDayName;
Please login to merge, or discard this patch.
src/Entities/OpeningHoursForDay.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Webfactor\Laravel\OpeningHours\Entities;
4 4
 
5
-use Countable;
6 5
 use ArrayAccess;
7 6
 use ArrayIterator;
7
+use Countable;
8 8
 use IteratorAggregate;
9 9
 use Webfactor\Laravel\OpeningHours\Exceptions\OverlappingTimeRanges;
10 10
 use Webfactor\Laravel\OpeningHours\Helpers\Arr;
Please login to merge, or discard this patch.
src/Helpers/Arr.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@
 block discarded – undo
35 35
         return $flattened;
36 36
     }
37 37
 
38
+    /**
39
+     * @param string $key
40
+     */
38 41
     public static function pull(&$array, $key, $default = null)
39 42
     {
40 43
         $value = $array[$key] ?? $default;
Please login to merge, or discard this patch.