ProjectController::store()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
eloc 0
nc 1
nop 1
1
<?php
2
3
/** @deprecated */
4
5
namespace App\Http\Controllers\Frontend\Project;
6
7
use App\Http\Controllers\Controller;
8
use App\Http\Controllers\Frontend\Elementset\ElementsetCrudController;
9
use App\Models\Project;
10
use Illuminate\Http\Request;
11
12
class ProjectController extends Controller
13
{
14
    public function __construct()
15
    {
16
        //show has to be handled with a query scope in order to exclude private projects
17
        $this->authorizeResource(Project::class,
18
            'project',
19
            ['except' => ['view', 'index', 'show']]);
20
    }
21
22
    /**
23
     * Display a listing of the resource.
24
     *
25
     * @return \Illuminate\Http\Response
26
     */
27
    public function index()
28
    {
29
    }
30
31
    /**
32
     * Show the form for creating a new resource.
33
     *
34
     * @return \Illuminate\Http\Response
35
     */
36
    public function import(Project $project)
37
    {
38
        return view('frontend.project.import', \compact('project'));
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('frontend.pr...t', compact('project')) returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
39
    }
40
41
    /**
42
     * Store a newly created resource in storage.
43
     *
44
     * @param  \Illuminate\Http\Request  $request
45
     * @return \Illuminate\Http\Response
46
     */
47
    public function store(Request $request)
48
    {
49
        //
50
    }
51
52
    /**
53
     * Display the specified resource.
54
     *
55
     * @param  \App\Models\Project  $project
56
     * @return \Illuminate\Http\Response
57
     */
58
    public function show(Project $project)
59
    {
60
        $elementset = new ElementsetCrudController();
61
        $elementset->setup();
62
63
        return view('frontend.project.dashboard', \compact('project', 'elementset'));
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('frontend.pr...roject', 'elementset')) returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
64
    }
65
66
    /**
67
     * Show the form for editing the specified resource.
68
     *
69
     * @param  \App\Models\Project  $project
70
     * @return \Illuminate\Http\Response
71
     */
72
    public function edit(Project $project)
73
    {
74
        //
75
    }
76
77
    /**
78
     * Update the specified resource in storage.
79
     *
80
     * @param  \Illuminate\Http\Request  $request
81
     * @param  \App\Models\Project  $project
82
     * @return \Illuminate\Http\Response
83
     */
84
    public function update(Request $request, Project $project)
85
    {
86
        //
87
    }
88
89
    /**
90
     * Remove the specified resource from storage.
91
     *
92
     * @param  \App\Models\Project  $project
93
     * @return \Illuminate\Http\Response
94
     */
95
    public function destroy(Project $project)
96
    {
97
        //
98
    }
99
}
100