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.

contentAjaxHandle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 6
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A view() 0 4 1
1
<?php
2
/**
3
 * @package content
4
 */
5
/**
6
 * The AjaxHandle page is used for generating handles on the fly
7
 * that are used in Symphony's javascript
8
 */
9
class contentAjaxHandle extends JSONPage
0 ignored issues
show
Coding Style introduced by
This class is not in CamelCase format.

Classes in PHP are usually named in CamelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.

Thus the name database provider becomes DatabaseProvider.

Loading history...
10
{
11
    public function view()
12
    {
13
        $string = $_GET['string'];
14
        $this->_Result['handle'] = Lang::createHandle($string, 255, '-', true);
15
    }
16
}
17