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.

DeleteQueryBuilder::from()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php declare (strict_types=1);
2
/**
3
 * @license MIT
4
 * @author Samuel Adeshina <[email protected]>
5
 */
6
namespace EmmetBlue\Core\Builder\QueryBuilder;
7
8
/**
9
 * class DeleteQueryBuilder.
10
 * Builds an Delete query.
11
 *
12
 * {@see QueryBuilder}
13
 *
14
 * @author Samuel Adeshina <[email protected]>
15
 *
16
 * @since 28/05/2016
17
 */
18
class DeleteQueryBuilder extends QueryBuilder
19
{
20
    /**
21
     * @var \EmmetBlue\Core\Builder\QueryBuilder
22
     */
23
    protected $queryBuilder;
24
25
    /**
26
     * @param string|null $tableName
0 ignored issues
show
Bug introduced by
There is no parameter named $tableName. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
27
     */
28
    public function __construct()
29
    {
30
        $DeleteKeyword = "Delete";
31
        $this->queryBuilder = $this->build($DeleteKeyword);
0 ignored issues
show
Documentation Bug introduced by
It seems like $this->build($DeleteKeyword) of type object<EmmetBlue\Core\Bu...ryBuilder\QueryBuilder> is incompatible with the declared type object<EmmetBlue\Core\Builder\QueryBuilder> of property $queryBuilder.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
32
    }
33
34
     /**
35
     * {@inheritdoc}
36
     *
37
     * @param string $tableName
38
     *
39
     * @return \EmmetBlue\Core\Builder\DeleteQueryBuilder
40
     */
41
    public function from(string $tableName)
42
    {
43
        $this->queryBuilder = $this->queryBuilder->build("FROM ".$tableName);
44
45
        return $this;
46
    }
47
}
48