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