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 = 19-20 lines in 3 locations

protected/controllers/ProductController.php 3 locations

@@ 42-61 (lines=20) @@
39
    $this->render('categories', array('categories' => $categories));
40
  }
41
42
  public function actionCategory($category)
43
  {
44
    /**
45
     * @var ProductCategory $model
46
     */
47
    $model = ProductCategory::model()->findByAttributes(array('url' => $category));
48
49
    if( !$model )
50
      throw new CHttpException(404, 'Страница не найдена');
51
52
    $this->breadcrumbs = array(
53
      'Производители' => $this->createUrl('product/categories'),
54
      $model->name,
55
    );
56
57
    $criteria = new CDbCriteria();
58
    $criteria->compare('a.category_id', $model->id);
59
60
    $this->renderPage(array($model), $criteria);
61
  }
62
63
  public function actionSection($section)
64
  {
@@ 63-81 (lines=19) @@
60
    $this->renderPage(array($model), $criteria);
61
  }
62
63
  public function actionSection($section)
64
  {
65
    /**
66
     * @var ProductSection $model
67
     */
68
    $model = ProductSection::model()->findByAttributes(array('url' => $section));
69
70
    if( !$model )
71
      throw new CHttpException(404, 'Страница не найдена');
72
73
    $this->breadcrumbs = array(
74
      $model->name,
75
    );
76
77
    $criteria = new CDbCriteria();
78
    $criteria->compare('a.section_id', $model->id);
79
80
    $this->renderPage(array($model), $criteria);
81
  }
82
83
  public function actionType($type)
84
  {
@@ 83-101 (lines=19) @@
80
    $this->renderPage(array($model), $criteria);
81
  }
82
83
  public function actionType($type)
84
  {
85
    /**
86
     * @var ProductType $model
87
     */
88
    $model = ProductType::model()->findByAttributes(array('url' => $type));
89
90
    if( !$model )
91
      throw new CHttpException(404, 'Страница не найдена');
92
93
    $this->breadcrumbs = array(
94
      $model->name,
95
    );
96
97
    $criteria = new CDbCriteria();
98
    $criteria->compare('a.type_id', $model->id);
99
100
    $this->renderPage(array($model), $criteria);
101
  }
102
103
  public function actionOne($url)
104
  {