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.

ApiClientAwareContext::setClient()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Behat WebApiExtension.
5
 * (c) Konstantin Kudryashov <[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 Behat\WebApiExtension\Context;
12
13
use Behat\Behat\Context\Context;
14
use GuzzleHttp\ClientInterface;
15
16
/**
17
 * Guzzle Client-aware interface for contexts.
18
 *
19
 * @author Frédéric G. Marand <[email protected]>
20
 *
21
 * @see WebApiAwareInitializer
22
 */
23
interface ApiClientAwareContext extends Context
0 ignored issues
show
Coding Style introduced by
ApiClientAwareContext does not seem to conform to the naming convention (^[A-Z][a-zA-Z0-9]*Interface$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
24
{
25
    /**
26
     * Sets Guzzle Client instance.
27
     *
28
     * @param \GuzzleHttp\Client $client Guzzle client.
0 ignored issues
show
Documentation introduced by
Should the type for parameter $client not be ClientInterface?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
29
     *
30
     * @return void
31
     */
32
    public function setClient(ClientInterface $client);
33
}
34