UserController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A meAction() 0 6 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\Account;
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("/account/user", name="account_user")
19
 */
20
class UserController extends AbstractController
21
{
22
    /**
23
     * @Route("/me", name="_me")
24
     * @Template("views/Account/User/me.html.twig")
25
     */
26
    public function meAction(): array
27
    {
28
        return [
29
            'user' => $this->getUser(),
30
        ];
31
    }
32
}
33