BasicConfigurationTrait::getBaseConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 13
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 18
rs 9.8333
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
			'http_listen_port' => 8080,
33
			'http_username'    => 'admin',
34
			'http_password'    => 'admin',
35
		];
36
	}
37
38
}
39