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.

GroupTagGroupController::destroy()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace BristolSU\ControlDB\Http\Controllers\GroupTag;
4
5
use BristolSU\ControlDB\Http\Controllers\Controller;
6
use BristolSU\ControlDB\Contracts\Models\Tags\GroupTag;
7
use BristolSU\ControlDB\Contracts\Models\Group;
8
9
/**
10
 * Handle the link between a group tag and a group
11
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
12
class GroupTagGroupController extends Controller
13
{
14
    /**
15
     * Get all groups with the given tag
16
     * 
17
     * @param GroupTag $groupTag
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
18
     * @return \Illuminate\Pagination\LengthAwarePaginator
0 ignored issues
show
Coding Style introduced by
Tag @return cannot be grouped with parameter tags in a doc comment
Loading history...
19
     */
20 1
    public function index(GroupTag $groupTag)
21
    {
22 1
        return $this->paginate($groupTag->groups());
23
    }
24
25
    /**
26
     * Add the group to the tag
27
     * 
28
     * @param GroupTag $groupTag
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
29
     * @param Group $group
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected 4 spaces after parameter type; 1 found
Loading history...
30
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
31 1
    public function update(GroupTag $groupTag, Group $group)
32
    {
33 1
        $groupTag->addGroup($group);
34 1
    }
35
36
    /**
37
     * Remove the group from the tag
38
     * 
39
     * @param GroupTag $groupTag
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
40
     * @param Group $group
0 ignored issues
show
Coding Style introduced by
Missing parameter comment
Loading history...
Coding Style introduced by
Expected 4 spaces after parameter type; 1 found
Loading history...
41
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
42 1
    public function destroy(GroupTag $groupTag, Group $group)
43
    {
44 1
        $groupTag->removeGroup($group);
45 1
    }
46
47
}
48