GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Term   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 10
dl 0
loc 17
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A meta() 0 2 1
A sluggable() 0 7 1
1
<?php
2
3
namespace Raystech\StarterKit\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Cviebrock\EloquentSluggable\Sluggable;
7
use App\Traits\CustomSlugify;
0 ignored issues
show
Bug introduced by
The type App\Traits\CustomSlugify 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...
8
9
class Term extends Model
10
{
11
  use Sluggable;
12
  use CustomSlugify;
13
  
14
  protected $fillable = ['name', 'slug', 'term_group'];
15
16
  public function meta() {
17
    return $this->hasMany('App\Models\TermMeta');
18
  }
19
  public function sluggable()
20
  {
21
    return [
22
      'slug' => [
23
        'source' => 'name',
24
        'method' => function ($string, $separator) {
25
          return $this->slugify_th($string, $separator);
26
        }
27
      ]
28
    ];
29
  }
30
31
  
32
}
33