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::actionIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
ccs 0
cts 8
cp 0
crap 2
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
}