Completed
Push — master ( 76780c...484b84 )
by Bertrand
08:55
created

UserController::avatar()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 3
rs 10
1
<?php
2
3
4
namespace App\Http\Controllers\Api;
5
6
use App\Src\UseCases\Domain\Users\GetAvatar;
7
use Illuminate\Routing\Controller as BaseController;
8
9
class UserController extends BaseController
10
{
11
    public function avatar(string $uuid, string $width, GetAvatar $getAvatar)
12
    {
13
        return $getAvatar->execute($uuid, $width);
0 ignored issues
show
Bug introduced by
$width of type string is incompatible with the type integer expected by parameter $dim of App\Src\UseCases\Domain\Users\GetAvatar::execute(). ( Ignorable by Annotation )

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

13
        return $getAvatar->execute($uuid, /** @scrutinizer ignore-type */ $width);
Loading history...
14
    }
15
}
16