Test Setup Failed
Pull Request — master (#107)
by Glenn
05:48
created

SettingsController::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
use App\Http\Requests;
8
use App\Http\Controllers\Controller;
9
10
class SettingsController extends Controller
11
{
12
    /**
13
     * Display a listing of the resource.
14
     *
15
     * @return \Illuminate\Http\Response
16
     */
17
    public function basic_view()
18
    {
19
20
    $date_formats = array(
21
    'Y-m-d' => '2010-12-23',
22
    'm-d-Y' => '12-23-2010',
23
    'd-m-Y' => '23-12-2010',
24
    'Y/m/d' => '2010/12/23',
25
    'm/d/Y' => '12/23/2010',
26
    'd/m/Y' => '23/12/2010',
27
    'Y.m.d' => '2010.12.23',
28
    'd.m.Y' => '23.12.2010',
29
    'm.d.Y' => '12.23.2010',
30
  );
31
32
    $time_formats = array (
33
    'H:i' => '23:00',
34
    'h:ia' => '11:00pm',
35
    'h:iA' => '11:00PM',
36
    'h:i a' => '11:00 pm',
37
    'h:i A' => '11:00 PM',
38
  );
39
40
     return view('settings/basic', ['date_formats' => $date_formats, 'time_formats' => $time_formats]);
41
    }
42
43
    /**
44
     * Update the basic settings.
45
     *
46
     * @return \Illuminate\Http\Response
47
     */
48
    public function general_update()
49
    {
50
        //
51
    }    
52
53
    /**
54
     * Show the form for creating a new resource.
55
     *
56
     * @return \Illuminate\Http\Response
57
     */
58
    public function create()
59
    {
60
        //
61
    }
62
63
    /**
64
     * Store a newly created resource in storage.
65
     *
66
     * @param  \Illuminate\Http\Request  $request
67
     * @return \Illuminate\Http\Response
68
     */
69
    public function store(Request $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

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

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

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

Loading history...
81
    {
82
        //
83
    }
84
85
    /**
86
     * Show the form for editing the specified resource.
87
     *
88
     * @param  int  $id
89
     * @return \Illuminate\Http\Response
90
     */
91
    public function edit($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

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

Loading history...
92
    {
93
        //
94
    }
95
96
    /**
97
     * Update the specified resource in storage.
98
     *
99
     * @param  \Illuminate\Http\Request  $request
100
     * @param  int  $id
101
     * @return \Illuminate\Http\Response
102
     */
103
    public function update(Request $request, $id)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

This check looks from 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.

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

Loading history...
104
    {
105
        //
106
    }
107
108
    /**
109
     * Remove the specified resource from storage.
110
     *
111
     * @param  int  $id
112
     * @return \Illuminate\Http\Response
113
     */
114
    public function destroy($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id is not used and could be removed.

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

Loading history...
115
    {
116
        //
117
    }
118
}
119