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.

SyntaxException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getErrors() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the php-phantomjs.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
namespace JonnyW\PhantomJs\Exception;
10
11
/**
12
 * PHP PhantomJs
13
 *
14
 * @author Jon Wenmoth <[email protected]>
15
 */
16
class SyntaxException extends PhantomJsException
17
{
18
    /**
19
     * Error storage.
20
     *
21
     * @var array
22
     * @access protected
23
     */
24
    protected $errors;
25
26
    /**
27
     * Internal constructor.
28
     *
29
     * @access public
30
     * @param  string $exception
31
     * @param  array  $errors    (default: array())
32
     * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
33
     */
34 4
    public function __construct($exception, array $errors = array())
35
    {
36 4
        parent::__construct($exception);
37
38 4
        $this->errors = $errors;
39 4
    }
40
41
    /**
42
     * Get errors.
43
     *
44
     * @access public
45
     * @return array
46
     */
47 1
    public function getErrors()
48
    {
49 1
        return $this->errors;
50
    }
51
}
52