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.

BEditColumn::renderDataCellContent()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 2
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
ccs 0
cts 7
cp 0
crap 6
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 backend.widgets.grid
8
 */
9
class BEditColumn extends BDataColumn
10
{
11
  public $type = 'html';
12
13
  protected $popup = false;
14
15
  protected function renderDataCellContent($row, $data)
16
  {
17
    if( $this->popup )
18
    {
19
      parent::renderDataCellContent($row, $data);
20
    }
21
    else
22
    {
23
      echo CHtml::link($data->{$this->name}, Yii::app()->controller->createUrl('update', array('id' => $data->id)));
24
    }
25
  }
26
}