Apply fixes from StyleCI #2392
lint.yml
on: push
Lint Code Base
1m 21s
Matrix: PHP Static Analysis
Annotations
4 errors
PHP Static Analysis (8.1):
app/Http/Controllers/Device/Tabs/PortsController.php#L118
Parameter #1 $port of method App\Http\Controllers\Device\Tabs\PortsController::findPortNeighbors() expects App\Models\Port, Illuminate\Database\Eloquent\Model given.
|
PHP Static Analysis (8.1):
app/Http/Controllers/Device/Tabs/PortsController.php#L339
Call to an undefined method Illuminate\Database\Eloquent\Builder<Illuminate\Database\Eloquent\Model>::hasAccess().
|
PHP Static Analysis (8.1):
app/Http/Controllers/Device/Tabs/PortsController.php#L341
Parameter #2 $callback of method Illuminate\Database\Eloquent\Relations\HasMany<App\Models\Port>::when() expects (callable(Illuminate\Database\Eloquent\Relations\HasMany<App\Models\Port>, bool): Illuminate\Database\Eloquent\Builder)|null, Closure(Illuminate\Database\Eloquent\Builder, mixed): Illuminate\Database\Eloquent\Builder given.
|
PHP Static Analysis (8.1)
Process completed with exit code 1.
|