Completed
Pull Request — master (#404)
by De Cramer
03:04
created

ServerDescription::getInformation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace eXpansion\Bundle\ServerInformation\Services\ServerInformation;
4
5
use eXpansion\Bundle\ServerInformation\Ui\Factory\ServerInformationLineFactory;
6
use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
7
use eXpansion\Framework\Core\Storage\GameDataStorage;
8
use FML\Controls\Control;
9
10
class ServerDescription extends ServerName
11
{
12
    /**
13
     * @inheritdoc
14
     */
15
    public function getInformation(string $login): Control
16
    {
17
        return $this->serverInformationLineFactory->create(
18
            "expansion_server_information.server_description",
19
            explode("\n", $this->dataStorage->getServerOptions()->comment)
20
        );
21
    }
22
}
23