Completed
Push — master ( 851150...ee52e4 )
by Mahmoud
03:11
created

ContainersButler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getLoginWebPageName() 0 10 2
1
<?php
2
3
namespace App\Ship\Engine\Butlers;
4
5
use App\Ship\Features\Exceptions\WrongConfigurationsException;
6
use Illuminate\Support\Facades\Config;
7
8
/**
9
 * Class ContainersButler.
10
 *
11
 * Helper Class to serve on the Containers layer.
12
 *
13
 * @author Mahmoud Zalt <[email protected]>
14
 */
15
class ContainersButler
16
{
17
18
    /**
19
     * @return  mixed
20
     */
21
    public function getLoginWebPageName()
22
    {
23
        $loginPage = Config::get('hello.containers.login-page-name');
24
25
        if (is_null($loginPage)) {
26
            throw new WrongConfigurationsException();
27
        }
28
29
        return $loginPage;
30
    }
31
32
33
34
}
35