LuckyController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A number() 0 7 1
1
<?php
2
3
namespace App\Controller;
4
5
use Symfony\Component\HttpFoundation\Response;
6
use Symfony\Component\Routing\Annotation\Route;
7
8
class LuckyController
9
{
10
    #[Route('/lucky/number')]
11
    public function number(): Response
12
    {
13
        $number = random_int(0, 100);
14
15
        return new Response(
16
            '<html><body>Lucky number: '.$number.'</body></html>'
17
        );
18
    }
19
}
20