BarChartMetric   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A result() 0 3 1
1
<?php
2
3
namespace Insenseanalytics\NovaBarMetrics;
4
5
use Laravel\Nova\Metrics\Partition;
0 ignored issues
show
Bug introduced by
The type Laravel\Nova\Metrics\Partition 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
abstract class BarChartMetric extends Partition
8
{
9
	use HasFrequencyDistributions;
10
11
	/**
12
	 * The element's component.
13
	 *
14
	 * @var string
15
	 */
16
	public $component = 'bar-chart-metric';
17
18
	/**
19
	 * Create a new partition metric result.
20
	 *
21
	 * @param array $value
22
	 *
23
	 * @return \Insenseanalytics\NovaBarMetrics\BarChartMetricResult
24
	 */
25
	public function result(array $value)
26
	{
27
		return new BarChartMetricResult($value);
28
	}
29
}
30