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 )
by Jonny
23:29
created

StreamOutput::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
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\IO;
11
12
/**
13
 * PHP PhantomJs.
14
 *
15
 * @author Jon Wenmoth <[email protected]>
16
 */
17
class StreamOutput implements OutputInterface
18
{
19
    use \GuzzleHttp\Psr7\MessageTrait;
20
    use \JonnyW\PhantomJs\IO\OutputTrait;
21
22
    /**
23
     * Internal constructor.
24
     *
25
     * @param string|null|resource|StreamInterface $body
26
     */
27
    public function __construct($body)
28
    {
29
        $this->stream = \GuzzleHttp\Psr7\stream_for($body);
30
    }
31
32
    /**
33
     * Get output type.
34
     *
35
     * @return string
36
     */
37
    public function getType()
38
    {
39
        return 'stream';
40
    }
41
}
42