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 — rewrite-laravel ( ad2267...b1fe86 )
by Oliver
07:49
created

AbstractMmexTestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 2
cbo 4
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A buildUrl() 0 7 1
A seeSuccess() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: okaufmann
5
 * Date: 28.10.2016
6
 * Time: 01:23.
7
 */
8
9
namespace Tests\Feature\Api;
10
11
use Illuminate\Foundation\Testing\DatabaseMigrations;
12
use Illuminate\Foundation\Testing\TestResponse;
13
use Tests\TestCase;
14
use Tests\utils\DbUtils;
15
16
abstract class AbstractMmexTestCase extends TestCase
17
{
18
    use DatabaseMigrations;
19
    use DbUtils;
20
21
    protected $apiUri = '/services.php';
22
    protected $guid = '{D6A33C24-DE43-D62C-A609-EF5138F33F30}';
23
    protected $success = 'Operation has succeeded';
24
25
    protected function buildUrl(string $url, array $data): string
0 ignored issues
show
Unused Code introduced by
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
26
    {
27
        $data['guid'] = $this->guid;
28
        $paramString = http_build_query($data);
29
30
        return $this->apiUri.'?'.$paramString;
31
    }
32
33
    /**
34
     * @param TestResponse $response
35
     * @return TestResponse
36
     */
37
    protected function seeSuccess(TestResponse $response)
38
    {
39
        return $response->assertStatus(200)
40
            ->assertSee($this->success);
41
    }
42
}
43