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 = 7-7 lines in 2 locations

protected/controllers/TemplateController.php 1 location

@@ 93-99 (lines=7) @@
90
    $data['project'] = Yii::app()->params->project;
91
    $data['subject'] = Yii::app()->params->project;
92
93
    if( $contact = $this->getHeaderContacts() )
94
    {
95
      $data['emails'] = $contact->getFields('emails');
96
      $data['email'] = Arr::get($data['emails'], 0, '');
97
      $data['phones'] = $contact->getFields('phones');
98
      $data['phone'] = Arr::get($data['phones'], 0, '');
99
    }
100
    $data['model'] = Order::model()->findByPk(2);
101
102
    $content = $this->renderPartial('frontend.views.email.order', $data, true);

protected/share/SNotification.php 1 location

@@ 201-207 (lines=7) @@
198
199
    if( Yii::app()->controller->asa('common') )
200
    {
201
      if( $contact = Yii::app()->controller->getHeaderContacts() )
202
      {
203
        $vars['emails'] = $contact->getFields('emails');
204
        $vars['email'] = Arr::get($vars['emails'], 0, '');
205
        $vars['phones'] = $contact->getFields('phones');
206
        $vars['phone'] = Arr::get($vars['phones'], 0, '');
207
      }
208
    }
209
210
    return $index;