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

backend/protected/controllers/BController.php 1 location

@@ 306-310 (lines=5) @@
303
        if( $key !== 0 )
304
          $model->setPrimaryKey($primaryModel->getPrimaryKey());
305
306
        if( !$model->save(false) )
307
        {
308
          Yii::app()->db->currentTransaction->rollback();
309
          throw new CHttpException(500, 'Can`t save '.get_class($model).' model');
310
        }
311
      }
312
313
      if( $extendedSave )

protected/components/form/FForm.php 1 location

@@ 368-372 (lines=5) @@
365
          $model->$foreignKey = $this->model->getPrimaryKey();
366
        }
367
368
        if( !$model->save(false) )
369
        {
370
          Yii::app()->db->currentTransaction->rollback();
371
          throw new CHttpException(500, 'Can`t save '.get_class($this->model).' model');
372
        }
373
374
        $this->saveFiles($model);
375
      }