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   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 9
cts 12
cp 0.75
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A fetchData() 0 7 1
A afterFetchData() 0 5 2
A onAfterFetchData() 0 4 1
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
}