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

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 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
}