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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
ccs 0
cts 10
cp 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A rules() 0 10 1
A attributeLabels() 0 7 1
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
}