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

ConfigureRequest::handle()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 2
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
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