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.

HostDefaultConfigTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 15
dl 0
loc 22
c 1
b 0
f 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testOnFunc() 0 6 1
A recipe() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/* (c) Anton Medvedev <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace joy;
12
13
class HostDefaultConfigTest extends JoyTest
14
{
15
    protected function recipe(): string
16
    {
17
        return <<<'PHP'
18
            <?php
19
            namespace Deployer;
20
            localhost();
21
22
            task('test', function () {
23
                $port = currentHost()->getPort();
24
                writeln(empty($port) ? 'empty' : "port:$port");
25
            });
26
            PHP;
27
    }
28
29
    public function testOnFunc()
30
    {
31
        $this->dep('test');
32
        $display = $this->tester->getDisplay();
33
        self::assertEquals(0, $this->tester->getStatusCode(), $display);
34
        self::assertStringContainsString('empty', $display);
35
    }
36
}
37