Test Setup Failed
Push — master ( d53689...335649 )
by Daniel
18:36
created

DefaultController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A whoAction() 0 4 1
1
<?php
2
3
namespace ApiBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
use Symfony\Component\HttpFoundation\JsonResponse;
7
8
class DefaultController extends Controller
9
{
10
    public function whoAction()
11
    {
12
        return new JsonResponse(['name' => 'Daniel Oliveira <[email protected]>']);
13
    }
14
}
15