Passed
Push — master ( 2f48f9...07df1d )
by John
04:43
created

PastebinController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A view() 0 6 1
A create() 0 6 1
1
<?php
2
3
namespace App\Http\Controllers\Tool;
4
5
use App\Models\SubmissionModel;
6
use App\Http\Controllers\Controller;
7
use Auth;
8
9
class PastebinController extends Controller
10
{
11
    /**
12
     * Show the Pastebin Detail Page.
13
     *
14
     * @return Response
0 ignored issues
show
Bug introduced by
The type App\Http\Controllers\Tool\Response was not found. Did you mean Response? If so, make sure to prefix the type with \.
Loading history...
15
     */
16
    public function view()
17
    {
18
        return view('tool.pastebin.view', [
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('tool.pasteb...gation' => 'PasteBin')) returns the type Illuminate\View\View which is incompatible with the documented return type App\Http\Controllers\Tool\Response.
Loading history...
19
            'page_title' => "Detail",
20
            'site_title' => "PasteBin",
21
            'navigation' => "PasteBin"
22
        ]);
23
    }
24
25
    /**
26
     * Show the Pastebin Create Page.
27
     *
28
     * @return Response
29
     */
30
    public function create()
31
    {
32
        return view('tool.pastebin.create', [
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('tool.pasteb...gation' => 'PasteBin')) returns the type Illuminate\View\View which is incompatible with the documented return type App\Http\Controllers\Tool\Response.
Loading history...
33
            'page_title' => "Create",
34
            'site_title' => "PasteBin",
35
            'navigation' => "PasteBin"
36
        ]);
37
    }
38
}
39