Homepage   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10
c 2
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 11 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace drupol\CasBundle\Controller;
6
7
use Symfony\Component\HttpFoundation\Response;
8
9
/**
10
 * Class Homepage.
11
 */
12
final class Homepage
13
{
14
    /**
15
     * @return \Symfony\Component\HttpFoundation\Response
16
     */
17 1
    public function __invoke()
18
    {
19
        $body = <<< 'EOF'
20 1
<p>You have been redirected here by default. You are most probably using the default CAS configuration.</p>
21
22
<p>The default CAS bundle configuration should be installed in <code>config/packages/dev/cas_bundle.yaml</code></p>
23
24
<p>Please update your configuration and replace <code>cas_bundle_homepage</code> with an existing route of your app.</p>
25
EOF;
26
27 1
        return new Response($body);
28
    }
29
}
30