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.

MmexTestCase::buildUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
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\MmexClient;
10
11
use App\Models\User;
12
use Illuminate\Foundation\Testing\TestResponse;
13
use Tests\Features\FeatureTestCase;
14
15
abstract class MmexTestCase extends FeatureTestCase
16
{
17
    protected $apiUri = '/services.php';
18
    protected $success = 'Operation has succeeded';
19
20
    protected function buildUrl(array $data): string
21
    {
22
        $data['guid'] = $this->user->mmex_guid;
23
        $paramString = http_build_query($data);
24
25
        return $this->apiUri.'?'.$paramString;
26
    }
27
28
    /**
29
     * @param TestResponse $response
30
     *
31
     * @return TestResponse
32
     */
33
    protected function assertSeeMmexSuccess(TestResponse $response)
34
    {
35
        return $response->assertStatus(200)
36
            ->assertSee($this->success);
37
    }
38
}
39