Completed
Push — master ( bb7259...dc298a )
by Sam
03:00
created

BasicConfigurationTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 25
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getBaseConfiguration() 0 17 1
1
<?php
2
3
namespace Jalle19\StatusManager\Test\Configuration;
4
5
/**
6
 * Class BasicConfigurationTrait
7
 * @package   Jalle19\StatusManager\Test\Configuration
8
 * @copyright Copyright &copy; Sam Stenvall 2016-
9
 * @license   https://www.gnu.org/licenses/gpl.html The GNU General Public License v2.0
10
 */
11
trait BasicConfigurationTrait
12
{
13
14
	/**
15
	 * @return array
16
	 */
17
	private function getBaseConfiguration()
18
	{
19
		return [
20
			'database_path'   => '/tmp',
21
			'log_path'        => '/tmp',
22
			'access_token'    => 'access',
23
			'instances'       => [
24
				[
25
					'address' => 'address',
26
					'port'    => 9981,
27
				],
28
			],
29
			'update_interval' => 1,
30
			'listen_address'  => '0.0.0.0',
31
			'listen_port'     => 9333,
32
		];
33
	}
34
35
}
36