Skip to content

extract pageLinks to improve readability #2391

extract pageLinks to improve readability

extract pageLinks to improve readability #2391

Triggered via push June 14, 2024 13:31
Status Failure
Total duration 3m 12s
Artifacts

lint.yml

on: push
Matrix: PHP Static Analysis
Fit to window
Zoom out
Zoom in

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.