TradeController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A GetAll() 0 4 1
1
<?php
2
3
namespace PhpDraft\Controllers;
4
5
use Silex\Application;
6
use Symfony\Component\HttpFoundation\Request;
7
use Symfony\Component\HttpFoundation\Response;
8
use PhpDraft\Domain\Models\PhpDraftResponse;
9
10
class TradeController {
11
  public function GetAll(Application $app, Request $request) {
12
    $draft_id = (int)$request->get('draft_id');
13
14
    return $app->json($app['phpdraft.TradeRepository']->GetTrades($draft_id), Response::HTTP_OK);
15
  }
16
}