Passed
Push — dev6 ( ea44ed...11afa8 )
by Ron
16:02
created

BackupController::edit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Http\Controllers\Admin;
4
5
use App\Http\Controllers\Controller;
6
use App\Jobs\ApplicationBackupJob;
7
use Illuminate\Http\Request;
8
use Inertia\Inertia;
9
10
class BackupController extends Controller
11
{
12
    /**
13
     * Application Backup Landing Page
14
     */
15
    public function index()
16
    {
17
        return Inertia::render('Admin/Backups');
18
    }
19
20
    /**
21
     * Show the form for creating a new resource.
22
     *
23
     * @return \Illuminate\Http\Response
24
     */
25
    public function create()
26
    {
27
        //
28
    }
29
30
    /**
31
     * Store a newly created resource in storage.
32
     *
33
     * @param  \Illuminate\Http\Request  $request
34
     * @return \Illuminate\Http\Response
35
     */
36
    public function store(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

36
    public function store(/** @scrutinizer ignore-unused */ Request $request)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
37
    {
38
        //
39
    }
40
41
    /**
42
     * Display the specified resource
43
     */
44
    public function show($id)
45
    {
46
        if($id === 'run')
47
        {
48
            ApplicationBackupJob::dispatch();
49
        }
50
    }
51
52
    /**
53
     * Show the form for editing the specified resource.
54
     *
55
     * @param  int  $id
56
     * @return \Illuminate\Http\Response
57
     */
58
    public function edit($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

58
    public function edit(/** @scrutinizer ignore-unused */ $id)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
59
    {
60
        //
61
    }
62
63
    /**
64
     * Update the specified resource in storage.
65
     *
66
     * @param  \Illuminate\Http\Request  $request
67
     * @param  int  $id
68
     * @return \Illuminate\Http\Response
69
     */
70
    public function update(Request $request, $id)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

70
    public function update(/** @scrutinizer ignore-unused */ Request $request, $id)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $id is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

70
    public function update(Request $request, /** @scrutinizer ignore-unused */ $id)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
71
    {
72
        //
73
    }
74
75
    /**
76
     * Remove the specified resource from storage.
77
     *
78
     * @param  int  $id
79
     * @return \Illuminate\Http\Response
80
     */
81
    public function destroy($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

81
    public function destroy(/** @scrutinizer ignore-unused */ $id)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
82
    {
83
        //
84
    }
85
}
86