Master   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getServers() 0 4 1
1
<?php
2
3
4
namespace Thunderbug\Tracker;
5
6
7
use Thunderbug\QuakeConnection\Master\Master as MasterLib;
8
9
/**
10
 * Class Master
11
 * @package Thunderbug\Tracker
12
 */
13
class Master
14
{
15
    /**
16
     * Get all servers that are listed in the master server
17
     * @param string $server
18
     * @param int $port
19
     * @return array
20
     */
21
    public static function getServers(string $server, int $port) : array
22
    {
23
        $master = new MasterLib($server, $port);
24
        return $master->getServerList();
25
    }
26
}