Homepage::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 11
ccs 3
cts 3
cp 1
rs 10
c 2
b 0
f 0
cc 1
nc 1
nop 0
crap 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