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.
Completed
Push — master ( 897a16...8dd544 )
by Dwight
18s queued 11s
created

Video::setTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace NotificationChannels\FacebookPoster\Attachments;
4
5
class Video extends Attachment
6
{
7
    /**
8
     * The video title.
9
     *
10
     * @var string
11
     */
12
    protected $title;
13
14
    /**
15
     * The video description.
16
     *
17
     * @var string
18
     */
19
    protected $description;
20
21
    /**
22
     * The video API method.
23
     *
24
     * @var string
25
     */
26
    protected $apiMethod = 'videoToUpload';
27
28
    /**
29
     * Create a new video instance.
30
     *
31
     * @param  string  $path
32
     * @param  string  $title
33
     * @param  string  $description
34
     * @param  string  $apiEndpoint
35
     */
36 1
    public function __construct($path, $title, $description, $apiEndpoint)
37
    {
38 1
        $this->path = $path;
39 1
        $this->title = $title;
40 1
        $this->description = $description;
41 1
        $this->apiEndpoint = $apiEndpoint;
42 1
    }
43
44
    /**
45
     * Get additional attachment data.
46
     *
47
     * @return array
48
     */
49 1
    public function getData()
50
    {
51 1
        return array_filter([
52 1
            'title' => $this->title,
53 1
            'description' => $this->description,
54
        ]);
55
    }
56
}
57