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 ( e0afd3...2df211 )
by Caspar
04:42
created

CodeCount::getCodeCount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 1
b 0
f 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Support\Facades\DB;
6
7
class CodeCount extends Controller
8
{
9
    /**
10
     * Anzahl codes in DB hinterlegen.
11
     *
12
     * @param $codeCount
13
     *
14
     * @return int
15
     */
16
    public static function setCodeCount($codeCount)
17
    {
18
        DB::table('game_admin')->insert(['code_count' => $codeCount, 'total_points' => $codeCount]);
19
20
        return intval($codeCount);
21
    }
22
23
	/**
24
	 * Anzahl codes aus DB holen und ausgeben
25
	 *
26
	 * @return mixed
27
	 */
28
	public static function getCodeCount()
29
    {
30
        $codeCount = DB::table('game_admin')->select('code_count')->first()->code_count;
31
32
        return $codeCount;
33
    }
34
35
	/**
36
	 * Anzahl codes aus DB holen und ausgeben
37
	 *
38
	 * @return mixed
39
	 */
40
	public static function getTotalPoints()
41
	{
42
		$totalPoints = DB::table('game_admin')->select('total_points')->first()->total_points;
43
44
		return $totalPoints;
45
	}
46
}
47