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.

HasTenant::tenant()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Raystech\StarterKit\Traits;
4
5
trait HasTenant
6
{
7
  /**
8
   * @return TenantRelationship relation
0 ignored issues
show
Bug introduced by
The type Raystech\StarterKit\Traits\TenantRelationship 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...
9
   */
10
  public function tenant() {
11
    $model_type = get_class($this);
12
    return $this->hasOne('App\Models\TenantRelationship', 'model_id')->where('model_type', $model_type);
0 ignored issues
show
Bug introduced by
It seems like hasOne() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

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

12
    return $this->/** @scrutinizer ignore-call */ hasOne('App\Models\TenantRelationship', 'model_id')->where('model_type', $model_type);
Loading history...
13
  }
14
}