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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A buildUrl() 0 7 1
A assertSeeMmexSuccess() 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\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