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 ( 2ec89f...0b541d )
by Alexey
13:03
created

BFrontendMenuGridPositionColumn::getPrimaryKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author Nikita Melnikov <[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.menu.components.grid
8
 */
9
class BFrontendMenuGridPositionColumn extends OnFlyEditField
10
{
11
  /**
12
   * @param int $row
13
   * @param BFrontendMenuGridAdapter $data
14
   */
15
  protected function renderDataCellContent($row, $data)
16
  {
17
    if( $data->active )
18
    {
19
      parent::renderDataCellContent($row, $data);
20
    }
21
  }
22
23
  /**
24
   * @param BFrontendMenuGridAdapter $data
25
   *
26
   * @return mixed
27
   */
28
  protected function getPrimaryKey($data)
29
  {
30
    return BFrontendMenuGridView::encodeMenuItem($data);
31
  }
32
}