PageController::contactAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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
/**
18
 * @Route("/site/page", name="site_page")
19
 */
20
class PageController extends AbstractController
21
{
22
    /**
23
     * @Route("/contact", name="_contact")
24
     * @Template("views/Site/Page/contact.html.twig")
25
     */
26
    public function contactAction(): array
27
    {
28
        return [
29
            'user' => $this->getUser(),
30
        ];
31
    }
32
}
33