GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 764334...261594 )
by Alexey
33:15
created

IndexController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 27
rs 10
c 0
b 0
f 0
ccs 0
cts 16
cp 0
wmc 2
lcom 1
cbo 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 10 1
A getShowCase() 0 13 1
1
<?php
2
/**
3
 * @author Sergey Glagolev <[email protected]>
4
 * @link https://github.com/shogodev/argilla/
5
 * @copyright Copyright &copy; 2003-2014 Shogo
6
 * @license http://argilla.ru/LICENSE
7
 * @package frontend.controllers
8
 */
9
class IndexController extends FController
10
{
11
  public function actionIndex()
12
  {
13
    $news = News::model()->main()->findAll();
14
    $rotator = Banner::model()->getByLocationAll('rotator');
15
16
    $this->render('index', array(
17
      'rotator' => $rotator,
18
      'news' => $news,
19
    ));
20
  }
21
22
  public function getShowCase()
23
  {
24
    $criteria = new CDbCriteria(array('limit' => 12));
25
    $criteria->compare('t.main', 1);
26
27
    $showcase = new Showcase($criteria);
28
29
    $showcase->createTabByCondition('Новинки', 't.novelty', 1);
30
    $showcase->createTabByCondition('Лидеры продаж', 't.spec', 1);
31
    $showcase->createTabByCondition('Скидки', 't.discount', 1);
32
33
    return $showcase;
34
  }
35
}