DefaultController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 3 1
1
<?php
2
3
namespace App\Controller\Paypal;
4
5
use Symfony\Component\HttpFoundation\Request;
6
use Symfony\Component\Routing\Annotation\Route;
7
use Symfony\Component\HttpFoundation\Response;
8
use Symfony\Component\HttpFoundation\RedirectResponse;
9
10
/**
11
 * Class DefaultController
12
 * @package App\Controller\Paypal
13
 *
14
 * @Route("/paypal", name="paypal-")
15
 */
16
class DefaultController extends AbstractController
17
{
18
    /**
19
     * @Route("/", name="index", methods={"GET"})
20
     *
21
     * @return Response
22
     */
23
    public function index()
24
    {
25
        return $this->render('paypal/index.html.twig');
26
    }
27
}
28