HomepageController::homepageAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the zibios/sharep.
7
 *
8
 * (c) Zbigniew Ślązak
9
 */
10
11
namespace App\Controller\Site;
12
13
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
14
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
15
use Symfony\Component\Routing\Annotation\Route;
16
17
class HomepageController extends AbstractController
18
{
19
    /**
20
     * @Route("", name="homepage")
21
     * @Template("views/Site/Homepage/homepage.html.twig")
22
     */
23 1
    public function homepageAction(): array
24
    {
25
        return [
26 1
            'user' => $this->getUser(),
27
        ];
28
    }
29
}
30