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.

PrequelController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
eloc 12
c 3
b 0
f 0
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 15 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Protoqol\Prequel\Http\Controllers;
6
7
use Illuminate\Routing\Controller;
8
use Protoqol\Prequel\Classes\Database\DatabaseTraverser;
9
10
/**
11
 * Class PrequelController
12
 *
13
 * @package Protoqol\Prequel\Http\Controllers
14
 */
15
class PrequelController extends Controller
16
{
17
18
    /**
19
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
20
     */
21
    public function index()
22
    {
23
        $databaseData = (object) app(DatabaseTraverser::class)->getAll();
24
25
        return view('Prequel::main', [
26
            'env'  => [
27
                'connection' => config('database.default'),
28
                'database'   => config('database.connections.mysql.database'),
29
                'host'       => config('database.connections.mysql.host'),
30
                'port'       => config('database.connections.mysql.port'),
31
                'user'       => config('database.connections.mysql.username'),
32
            ],
33
            'data' => [
34
                'collection'          => $databaseData->collection,
35
                'flatTableCollection' => $databaseData->flatTableCollection,
36
            ],
37
        ]);
38
    }
39
}
40