Passed
Push — 2.6.0 ( ...f22176 )
by steve
18:56
created

BaseUtility::iconPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
ccs 0
cts 3
cp 0
crap 2
1
<?php
2
3
use craft\base\Component;
0 ignored issues
show
Bug introduced by
The type craft\base\Component 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...
4
use craft\base\UtilityInterface;
0 ignored issues
show
Bug introduced by
The type craft\base\UtilityInterface 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...
5
use neon\uutilities\utils\IUtility;
0 ignored issues
show
Bug introduced by
The type neon\uutilities\utils\IUtility 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
/**
9
 * Utility is the base class for classes representing Control Panel utilities.
10
 *
11
 * @author Newicon <[email protected]>
12
 * @since 1.1.10
13
 */
14
abstract class BaseUtility implements IUtility
15
{
16
	// Static
17
	// =========================================================================
18
19
	/**
20
	 * @inheritdoc
21
	 */
22
	public static function iconPath()
23
	{
24
		return null;
25
	}
26
27
	/**
28
	 * @inheritdoc
29
	 */
30
	public static function badgeCount(): int
31
	{
32
		// 0 = no badge
33
		return 0;
34
	}
35
}