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.

Stream   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 3 1
A __construct() 0 3 2
1
<?php
2
3
namespace Soheilrt\AdobeConnectClient\Client\Connection\Curl;
4
5
use Soheilrt\AdobeConnectClient\Client\Connection\StreamInterface;
6
7
/**
8
 * Stream for a cURL Connection.
9
 */
10
class Stream implements StreamInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $content = '';
16
17
    /**
18
     * Create the Stream.
19
     *
20
     * @param string $content
21
     */
22
    public function __construct($content)
23
    {
24
        $this->content = is_string($content) ? $content : '';
0 ignored issues
show
introduced by
The condition is_string($content) is always true.
Loading history...
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function __toString(): ?string
31
    {
32
        return $this->content;
33
    }
34
}
35