Passed
Push — 1.11.x ( 106594...56cdc0 )
by Angel Fernando Quiroz
08:52
created

StatementHeadController   A

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 getStatement() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the xAPI package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace XApi\LrsBundle\Controller;
11
12
use Symfony\Component\HttpFoundation\Request;
13
use Symfony\Component\HttpFoundation\Response;
14
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
15
16
class StatementHeadController extends StatementGetController
17
{
18
    /**
19
     * @throws BadRequestHttpException if the query parameters does not comply with xAPI specification
20
     *
21
     * @return Response
22
     */
23
    public function getStatement(Request $request)
24
    {
25
        return parent::getStatement($request)->setContent('');
26
    }
27
}
28