BooleanResponseTrait::handleResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 2
1
<?php
2
3
namespace Zurbaev\ApiClient\Traits\Commands;
4
5
use Psr\Http\Message\ResponseInterface;
6
use Zurbaev\ApiClient\Contracts\ApiResourceInterface;
7
8
trait BooleanResponseTrait
9
{
10
    /**
11
     * Handle command response.
12
     *
13
     * @param ResponseInterface    $response
14
     * @param ApiResourceInterface $owner
15
     *
16
     * @return bool
17
     */
18
    public function handleResponse(ResponseInterface $response, ApiResourceInterface $owner)
0 ignored issues
show
Unused Code introduced by
The parameter $response is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

18
    public function handleResponse(/** @scrutinizer ignore-unused */ ResponseInterface $response, ApiResourceInterface $owner)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $owner is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

18
    public function handleResponse(ResponseInterface $response, /** @scrutinizer ignore-unused */ ApiResourceInterface $owner)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
19
    {
20
        return true;
21
    }
22
}
23