Issues (30)

src/FrequencyDistributionExpression.php (3 issues)

Labels
Severity
1
<?php
2
3
namespace Insenseanalytics\NovaBarMetrics;
4
5
use Illuminate\Database\Eloquent\Builder;
0 ignored issues
show
The type Illuminate\Database\Eloquent\Builder 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\Query\Expression;
0 ignored issues
show
The type Illuminate\Database\Query\Expression 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
8
abstract class FrequencyDistributionExpression
9
{
10
    /**
11
     * The query builder being used to build the trend.
12
     *
13
     * @var \Illuminate\Database\Query\Builder
0 ignored issues
show
The type Illuminate\Database\Query\Builder 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...
14
     */
15
    public $query;
16
17
    /**
18
     * The column being measured.
19
     *
20
     * @var string
21
     */
22
    public $column;
23
24
    /**
25
     * The step size for the frequency distribution.
26
     *
27
     * @var int
28
     */
29
    public $stepSize;
30
31
    /**
32
     * Create a new raw query expression.
33
     *
34
     * @param \Illuminate\Database\Eloquent\Builder $query
35
     * @param string                                $column
36
     * @param int                                   $stepSize
37
     */
38
    public function __construct(Builder $query, $column, $stepSize)
39
    {
40
        $this->query = $query;
41
        $this->column = $column;
42
        $this->stepSize = $stepSize;
43
    }
44
45
    /**
46
     * Get the value of the expression.
47
     *
48
     * @return array
49
     */
50
    abstract public function getValue();
51
}
52