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.

Response   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A __toString() 0 4 1
1
<?php
2
3
namespace Foaas;
4
5
/**
6
 * A fucking FOAAS response.
7
 */
8
class Response
9
{
10
    /**
11
     * @var string
12
     */
13
    public $message;
14
15
    /**
16
     * @var string
17
     */
18
    public $subtitle;
19
20
    /**
21
     * Make a fucking response, okay?
22
     *
23
     * @param string $message
24
     * @param string $subtitle
25
     */
26 3
    public function __construct($message, $subtitle)
27
    {
28 3
        $this->message = $message;
29 3
        $this->subtitle = $subtitle;
30 3
    }
31
32
    /**
33
     * You'd better be able to fucking print this response as a string.
34
     *
35
     * @return string
36
     */
37 1
    public function __toString()
38
    {
39 1
        return "{$this->message} {$this->subtitle}";
40
    }
41
}
42