Completed
Push — master ( 98a062...441031 )
by Ryan
10:10
created

ConfigureRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 2
1
<?php namespace Anomaly\Streams\Platform\Http\Command;
2
3
use Illuminate\Contracts\Config\Repository;
4
use Illuminate\Http\Request;
5
6
/**
7
 * Class ConfigureRequest
8
 *
9
 * @link   http://pyrocms.com/
10
 * @author PyroCMS, Inc. <[email protected]>
11
 * @author Ryan Thompson <[email protected]>
12
 */
13
class ConfigureRequest
14
{
15
16
    /**
17
     * Handle the command.
18
     *
19
     * @param Request    $request
20
     * @param Repository $config
21
     */
22
    public function handle(Request $request, Repository $config)
23
    {
24
        if ($config->get('streams::system.force_ssl')) {
25
            $request->server->set('HTTPS', true);
26
        }
27
    }
28
}
29