PhpConfigLoader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 4 1
1
<?php
2
/**
3
 * Class-loader for routes config in php array format
4
 *
5
 * @file      PhpConfigLoader.php
6
 *
7
 * PHP version 8.0+
8
 *
9
 * @author    Yancharuk Alexander <alex at itvault dot info>
10
 * @copyright © 2012-2021 Alexander Yancharuk
11
 * @date      2015-05-24 12:17
12
 * @license   The BSD 3-Clause License
13
 *            <https://tldrlegal.com/license/bsd-3-clause-license-(revised)>
14
 */
15
16
namespace Veles\Routing;
17
18
/**
19
 * Class PhpConfigLoader
20
 * @author  Yancharuk Alexander <alex at itvault dot info>
21
 */
22
class PhpConfigLoader extends AbstractConfigLoader
23
{
24
	/**
25
	 * Load routes data from file
26
	 *
27
	 * return array
28
	 */
29 1
	public function load()
30
	{
31
		/** @noinspection PhpIncludeInspection */
32 1
		return include $this->getPath();
33
	}
34
}
35