Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Push — master ( 09cf36...e01915 )
by Cristian
15:00 queued 01:06
created

SluggableScopeHelpers::findBySlugOrFail()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Backpack\CRUD\app\Models\Traits\SpatieTranslatable;
4
5
use Cviebrock\EloquentSluggable\SluggableScopeHelpers as OriginalSluggableScopeHelpers;
0 ignored issues
show
Bug introduced by
The type Cviebrock\EloquentSluggable\SluggableScopeHelpers was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Illuminate\Database\Eloquent\Builder;
7
8
trait SluggableScopeHelpers
9
{
10
    use OriginalSluggableScopeHelpers;
11
12
    /**
13
     * Query scope for finding a model by its primary slug.
14
     *
15
     * @param \Illuminate\Database\Eloquent\Builder $scope
16
     * @param string                                $slug
17
     *
18
     * @return \Illuminate\Database\Eloquent\Builder
19
     */
20
    public function scopeWhereSlug(Builder $scope, string $slug): Builder
21
    {
22
        return $scope->where($this->getSlugKeyName().'->'.$this->getLocale(), $slug);
23
    }
24
}
25