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.
Passed
Push — master ( 182d7a...1a8261 )
by Piyapan
02:10
created

PostController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 13
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 4 1
1
<?php
2
3
namespace Raystech\StarterKit\Http\Controllers;
4
5
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
6
use Illuminate\Foundation\Bus\DispatchesJobs;
7
use Illuminate\Foundation\Validation\ValidatesRequests;
8
use Illuminate\Routing\Controller as BaseController;
9
10
use Raystech\StarterKit\Traits\Crudable;
11
use Raystech\StarterKit\Models\Post;
12
13
class PostController extends BaseController
14
{
15
  use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
16
17
  use Crudable;
18
  const ADD_MESSAGE = 'Added Successfully!';
19
  const DELETE_MESSAGE = 'Deleted Successfully!';
20
  const UPDATE_MESSAGE = 'Updated Successfully!';
21
22
  public function index() {
23
    // return self::ADD_MESSAGE;
24
    $posts = Post::orderBy('created_at')->get();
25
    return view('rt-starter-kit::posts.index', compact('posts'));
26
  }
27
}
28