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 ( c11e1b...0baec8 )
by Jonny
03:47
created

SyntaxException::getErrors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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
    public function __construct($exception, array $errors = array())
35
    {
36
        parent::__construct($exception);
37
38
        $this->errors = $errors;
39
    }
40
41
    /**
42
     * Get errors.
43
     *
44
     * @access public
45
     * @return array
46
     */
47
    public function getErrors()
48
    {
49
        return $this->errors;
50
    }
51
}
52