HomeController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 4
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A showAction() 0 6 1
1
<?php
2
3
class HomeController extends HTMLController
4
{
5 1
    public function showAction()
6
    {
7 1
        $matches = MatchController::getQueryBuilder()->sortBy('time')->reverse()->limit(6)->fromPage(1);
8
9 1
        return array("matches" => $matches->getModels(), "news" => News::getNews(0, 5));
10
    }
11
}
12