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.
Test Failed
Push — master ( a6bbd2...6f4a54 )
by Caspar
05:53
created

CodeCount::getCodeCount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
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 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
use Illuminate\Support\Facades\DB;
7
8
class CodeCount extends Controller
9
{
10
	/**
11
	 * Anzahl codes in DB hinterlegen.
12
	 *
13
	 * @param $codeCount
14
	 *
15
	 * @return int
16
	 */
17
	public static function setCodeCount($codeCount)
18
	{
19
		DB::table('game_admin')->insert(['code_count' => $codeCount]);
20
21
		return intval($codeCount);
22
	}
23
24
	public static function getCodeCount(){
25
		$codeCount = DB::table('game_admin')->select('code_count')->first()->code_count;
26
27
		return $codeCount;
28
	}
29
}
30