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 — 5.0 ( c6890e...9916e2 )
by Jonny
24:09
created

ZoomFactor::jsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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
10
namespace JonnyW\PhantomJs\Page;
11
12
/**
13
 * PHP PhantomJs.
14
 *
15
 * @author Jon Wenmoth <[email protected]>
16
 */
17
class ZoomFactor implements \JsonSerializable
18
{
19
    /**
20
     * Zoom.
21
     *
22
     * @var int
23
     */
24
    private $zoom;
25
26
    /**
27
     * Internal constructor.
28
     *
29
     * @param int $zoom
30
     */
31
    public function __construct($zoom)
32
    {
33
        $this->zoom = (int) $zoom;
34
    }
35
36
    /**
37
     * Format data for JSON serialization.
38
     *
39
     * @return array
40
     */
41
    public function jsonSerialize()
42
    {
43
        return array(
44
            'zoom' => $this->zoom,
45
        );
46
    }
47
}
48