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.

Code Duplication    Length = 8-9 lines in 6 locations

protected/models/product/ProductCategory.php 1 location

@@ 31-39 (lines=9) @@
28
    );
29
  }
30
31
  public function defaultScope()
32
  {
33
    $alias = $this->getTableAlias(false, false);
34
35
    return array(
36
      'condition' => $alias.'.visible=1',
37
      'order' => "IF($alias.position=0, 99999, $alias.position), $alias.name",
38
    );
39
  }
40
41
  public function relations()
42
  {

protected/models/product/ProductCollection.php 1 location

@@ 21-29 (lines=9) @@
18
 */
19
class ProductCollection extends FActiveRecord
20
{
21
  public function defaultScope()
22
  {
23
    $alias = $this->getTableAlias(false, false);
24
25
    return array(
26
      'condition' => $alias.'.visible=1',
27
      'order' => "IF($alias.position=0, 99999, $alias.position), $alias.name",
28
    );
29
  }
30
}

protected/models/product/ProductParameterVariant.php 1 location

@@ 36-43 (lines=8) @@
33
    return '{{product_param_variant}}';
34
  }
35
36
  public function defaultScope()
37
  {
38
    $alias = $this->getTableAlias(false, false);
39
40
    return array(
41
      'order' => "IF({$alias}.position=0, 1, 0), {$alias}.position ASC, {$alias}.name"
42
    );
43
  }
44
45
  public function __toString()
46
  {

protected/models/product/ProductSection.php 1 location

@@ 30-38 (lines=9) @@
27
    );
28
  }
29
30
  public function defaultScope()
31
  {
32
    $alias = $this->getTableAlias(false, false);
33
34
    return array(
35
      'condition' => $alias.'.visible=1',
36
      'order' => "IF($alias.position=0, 99999, $alias.position), name",
37
    );
38
  }
39
40
  public function getMenu($criteria = null)
41
  {

protected/models/product/ProductType.php 1 location

@@ 22-30 (lines=9) @@
19
 */
20
class ProductType extends FActiveRecord
21
{
22
  public function defaultScope()
23
  {
24
    $alias = $this->getTableAlias(false, false);
25
26
    return array(
27
      'condition' => $alias.'.visible=1',
28
      'order' => "IF($alias.position=0, 99999, $alias.position), $alias.name",
29
    );
30
  }
31
32
  public function behaviors()
33
  {

protected/models/TextBlock.php 1 location

@@ 33-41 (lines=9) @@
30
    );
31
  }
32
33
  public function defaultScope()
34
  {
35
    $alias = $this->getTableAlias(false, false);
36
37
    return array(
38
      'condition' => $alias.'.visible=1',
39
      'order' => "{$alias}.location, {$alias}.position",
40
    );
41
  }
42
43
  /**
44
   * @return array