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.

LimitPluginTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testPlugin() 0 13 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Geocoder package.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT License
11
 */
12
13
namespace Geocoder\Plugin\Tests\Plugin;
14
15
use Geocoder\Plugin\Plugin\LimitPlugin;
16
use Geocoder\Query\GeocodeQuery;
17
use Geocoder\Query\Query;
18
use PHPUnit\Framework\TestCase;
19
20
class LimitPluginTest extends TestCase
21
{
22
    public function testPlugin()
23
    {
24
        $query = GeocodeQuery::create('foo');
25
        $first = function (Query $query) {
0 ignored issues
show
Unused Code introduced by
The parameter $query 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
            $this->fail('Plugin should not restart the chain');
27
        };
28
        $next = function (Query $query) {
29
            $this->assertEquals(4711, $query->getLimit());
30
        };
31
32
        $plugin = new LimitPlugin(4711);
33
        $plugin->handleQuery($query, $next, $first);
34
    }
35
}
36