Issues (8)

src/HasLike.php (3 issues)

Labels
Severity
1
<?php
2
3
namespace CSlant\LaravelLike;
4
5
use CSlant\LaravelLike\Traits\InteractionRelationship;
0 ignored issues
show
The type CSlant\LaravelLike\Traits\InteractionRelationship 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 CSlant\LaravelLike\Traits\Like\LikeCount;
0 ignored issues
show
The type CSlant\LaravelLike\Traits\Like\LikeCount 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...
7
use CSlant\LaravelLike\Traits\Like\LikeScopes;
0 ignored issues
show
The type CSlant\LaravelLike\Traits\Like\LikeScopes 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
use Illuminate\Database\Eloquent\Model;
9
10
/**
11
 * Trait HasLike
12
 * use this trait in your model(post, article,...) to enable liking functionality
13
 *
14
 * @package CSlant\LaravelLike
15
 * @mixin Model
16
 */
17
trait HasLike
18
{
19
    use InteractionRelationship;
20
    use LikeCount;
21
    use LikeScopes;
22
}
23