tzurbaev /
api-client
| 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
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
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 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.