Passed
Push — preview-1.19.0 ( 2aee7c...a81967 )
by Guilherme
04:14
created

PersonController::connectNfgFragmentAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 7
ccs 0
cts 5
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 * This file is part of the login-cidadao project or it's bundles.
4
 *
5
 * (c) Guilherme Donato <guilhermednt on github>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace PROCERGS\LoginCidadao\CoreBundle\Controller;
12
13
use PROCERGS\LoginCidadao\CoreBundle\Helper\MeuRSHelper;
14
use LoginCidadao\CoreBundle\Controller\PersonController as BaseController;
15
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
16
17
class PersonController extends BaseController
18
{
19
    /**
20
     * @Template()
21
     */
22
    public function connectNfgFragmentAction()
23
    {
24
        /** @var MeuRSHelper $helper */
25
        $helper = $this->get('meurs.helper');
26
        $personMeuRS = $helper->getPersonMeuRS($this->getUser(), true);
27
28
        return compact('personMeuRS');
29
    }
30
}
31