Passed
Pull Request — main (#27)
by Tan
06:49 queued 04:05
created

UserTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 1
eloc 3
c 2
b 1
f 1
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A searchableAs() 0 3 1
1
<?php
2
3
namespace CSlant\Blog\Core\Models\Traits;
4
5
use CSlant\Blog\ElasticScout\Modules\Traits\SearchableAs;
0 ignored issues
show
Bug introduced by
The type CSlant\Blog\ElasticScout...les\Traits\SearchableAs 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
7
/**
8
 * Trait UserTrait
9
 * @package CSlant\Blog\Core\Models\Traits
10
 * @mixin SearchableAs
11
 *
12
 * @method string userSearchableAs() see \CSlant\Blog\ElasticScout\Modules\Traits\SearchableAs::userSearchableAs()
13
 */
14
trait UserTrait
15
{
16
    use SearchableAs;
17
18
    public function searchableAs(): string
19
    {
20
        return $this->userSearchableAs();
21
    }
22
}
23