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 ( f3afd8...f29bd1 )
by Nikhil
13:23
created

GuitarController::all()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Controllers\API;
4
5
use App\Guitar;
6
use App\Transformers\GuitarTransformer;
7
use Illuminate\Http\Request;
8
9
use App\Http\Requests;
10
use App\Http\Controllers\Controller;
11
12
class GuitarController extends Controller
13
{
14
    /**
15
     * GuitarController constructor.
16
     */
17
    public function __construct()
18
    {
19
        $this->middleware('auth');
20
    }
21
22
    /**
23
     * Get all the guitars.
24
     * @return array
25
     */
26
    public function all()
27
    {
28
        $guitars = Guitar::orderBy('id', 'desc')->get();
29
30
        return fractal()->collection($guitars, new GuitarTransformer)
31
                        ->toArray();
32
    }
33
}
34