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.

BHint::rules()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
ccs 0
cts 6
cp 0
crap 2
1
<?php
2
/**
3
 * @author Alexey Tatarinov <[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.modules.settings.models
8
 *
9
 * @method static BHint model(string $class = __CLASS__)
10
 *
11
 * @property integer $id
12
 * @property string $model
13
 * @property string $attribute
14
 * @property string $content
15
 */
16
class BHint extends BActiveRecord
17
{
18
  public function rules()
19
  {
20
    return array(
21
      array('model, attribute, content', 'required'),
22
      array('model, attribute', 'length', 'max' => 255),
23
      array('popup', 'numerical', 'integerOnly' => true),
24
25
      array('id, model, attribute, content', 'safe', 'on' => 'search'),
26
    );
27
  }
28
29
  public function attributeLabels()
30
  {
31
    return CMap::mergeArray(parent::attributeLabels(), array(
32
        'popup' => 'Вывод в popup'
33
      )
34
    );
35
  }
36
}