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.
Completed
Push — master ( 4e3b80...57ffd6 )
by Alexey
08:08
created

SActiveDataProvider::afterFetchData()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author Alexey Tatarinov <[email protected]>
4
 * @link https://github.com/shogodev/argilla/
5
 * @copyright Copyright &copy; 2003-2016 Shogo
6
 * @license http://argilla.ru/LICENSE
7
 */
8
class SActiveDataProvider extends CActiveDataProvider
9
{
10 5
  public function fetchData()
11
  {
12 5
    $data = parent::fetchData();
13 5
    $this->setData($data);
14 5
    $this->afterFetchData();
15 5
    return $data;
16
  }
17
18 5
  public function afterFetchData()
19
  {
20 5
    if( $this->hasEventHandler('onAfterFetchData') )
21 5
      $this->onAfterFetchData(new CEvent($this));
22 5
  }
23
24
  public function onAfterFetchData($event)
25
  {
26
    $this->raiseEvent('onAfterFetchData', $event);
27
  }
28
}