Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
AltchaChallengeController
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 __invoke
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Controller;
4
5use App\Security\Service\AltchaServiceInterface;
6use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
7use Symfony\Component\HttpFoundation\JsonResponse;
8use Symfony\Component\Routing\Attribute\Route;
9
10/**
11 * @author Wilhelm Zwertvaegher
12 */
13class AltchaChallengeController extends AbstractController
14{
15    public function __construct(private readonly AltchaServiceInterface $altchaService)
16    {
17    }
18
19    #[Route('/altcha', name: 'altcha', methods: ['GET'])]
20    public function __invoke(): JsonResponse
21    {
22        return $this->json($this->altchaService->createChallenge());
23    }
24}

Paths

Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once. Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

AltchaChallengeController->__construct
15    public function __construct(private readonly AltchaServiceInterface $altchaService)
16    {
17    }
AltchaChallengeController->__invoke
22        return $this->json($this->altchaService->createChallenge());
23    }
{main}
3namespace App\Controller;
4
5use App\Security\Service\AltchaServiceInterface;
6use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
7use Symfony\Component\HttpFoundation\JsonResponse;
8use Symfony\Component\Routing\Attribute\Route;
9
10/**
11 * @author Wilhelm Zwertvaegher
12 */
13class AltchaChallengeController extends AbstractController
14{
15    public function __construct(private readonly AltchaServiceInterface $altchaService)
16    {
17    }
18
19    #[Route('/altcha', name: 'altcha', methods: ['GET'])]
20    public function __invoke(): JsonResponse
21    {
22        return $this->json($this->altchaService->createChallenge());
23    }