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.

Rest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 6 1
A indexAction() 0 4 1
1
<?php
2
/**
3
 * Controller
4
 *
5
 * @copyright Copyright (c)  Gjero Krsteski (http://krsteski.de)
6
 * @license   http://opensource.org/licenses/MIT MIT License
7
 */
8
9
namespace Pimf\Controller;
10
11
/**
12
 * Base class for representational state transfer app building.
13
 *
14
 * REST in PHP can be done pretty simple. Use this abstract controller for REST calls.
15
 * This works with Apache and Lighttpd out of the box, and no rewrite rules are needed.
16
 *
17
 * @package Controller
18
 * @author  Gjero Krsteski <[email protected]>
19
 */
20
class Rest extends Base
21
{
22
    public function init()
23
    {
24
        // allow cross-origin resource sharing
25
        header("Access-Control-Allow-Origin: *");
26
        header("Access-Control-Allow-Methods: *");
27
    }
28
29
    /**
30
     * Can be overridden.
31
     */
32
    public function indexAction()
33
    {
34
        //...
35
    }
36
}
37