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

StatementHeadController::getStatement()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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