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 ( 092f5d...2848dd )
by やかみ
03:55
created

Test   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 40
rs 10
c 1
b 0
f 0
wmc 7
lcom 1
cbo 1
1
<?php
2
namespace app\controllers;
3
4
use Kotori\Core\Controller;
5
6
class Test extends Controller
7
{
8
    public function __construct()
9
    {
10
        parent::__construct();
11
    }
12
13
    public function receiveGet()
14
    {
15
        $this->response->throwJSON($this->request->get());
16
    }
17
18
    public function receivePost()
19
    {
20
        $this->response->throwJSON($this->request->post());
21
    }
22
23
    public function setAndGetCookie()
24
    {
25
        $this->request->cookie('name', 'honoka');
26
        $this->response->throwJSON($this->request->cookie('name'));
27
    }
28
29
    public function deleteCookie()
30
    {
31
        $this->request->cookie('name', 'honoka');
32
        $this->request->cookie('name', null);
33
        $this->response->throwJSON($this->request->cookie('name'));
34
    }
35
36
    public function isSecure()
37
    {
38
        $this->response->throwJSON($this->request->isSecure());
39
    }
40
41
    public function getBaseUrl()
42
    {
43
        $this->response->throwJSON($this->request->getBaseUrl());
44
    }
45
}
46