GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Day   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 31
ccs 13
cts 13
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDaysOfWeek() 0 12 1
A jsonSerialize() 0 7 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Speicher210\BusinessHours\Day;
6
7
/**
8
 * Represents a standard business day.
9
 */
10
class Day extends AbstractDay
11
{
12
    /**
13
     * Get the days of week.
14
     *
15 6
     * @return integer[]
16
     */
17
    public static function getDaysOfWeek(): array
18 6
    {
19 6
        return [
20 6
            self::WEEK_DAY_MONDAY,
21 6
            self::WEEK_DAY_TUESDAY,
22 6
            self::WEEK_DAY_WEDNESDAY,
23 6
            self::WEEK_DAY_THURSDAY,
24 6
            self::WEEK_DAY_FRIDAY,
25 6
            self::WEEK_DAY_SATURDAY,
26
            self::WEEK_DAY_SUNDAY,
27
        ];
28
    }
29
30
    /**
31 6
     * {@inheritdoc}
32
     */
33
    public function jsonSerialize()
34 6
    {
35 6
        return [
36 6
            'dayOfWeek' => $this->dayOfWeek,
37
            'openingIntervals' => $this->openingHoursIntervals,
38
        ];
39
    }
40
}
41