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 ( 1ba1f4...ea41a5 )
by Alexey
05:37
created

ProductModificationList   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 31
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 8 1
A afterFetchData() 0 5 1
A getModelName() 0 4 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.models.product
8
 *
9
 * @property CDbCriteria $criteria
10
 */
11
class ProductModificationList extends ProductList
12
{
13
  public $parameterNameModel = 'ProductParameterName';
14
15
  public $parameterModel = 'ProductParameter';
16
17
  /**
18
   * @var CDbCriteria
19
   */
20
  public $parametersCriteria;
21
22
  public function init()
23
  {
24
    $this->criteria->compare('t.visible', 1);
25
26
    $prefix = $this->getTablePrefix();
27
    $this->parametersCriteria = new CDbCriteria();
28
    $this->parametersCriteria->addColumnCondition(array($prefix.'.section' => 1, $prefix.'.section_list' => 1, $prefix.'.key' => ProductParameter::BASKET_KEY), 'OR');
29
  }
30
31
  protected function afterFetchData($event)
32
  {
33
    $this->setImages();
34
    $this->setParameters();
35
  }
36
37
  protected function getModelName()
38
  {
39
    return 'Product';
40
  }
41
}