1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Gitamin\Http\Controllers\Projects; |
4
|
|
|
|
5
|
|
|
use Illuminate\Http\Request; |
6
|
|
|
use Illuminate\Foundation\Bus\DispatchesJobs; |
7
|
|
|
use Illuminate\Support\Facades\Redirect; |
8
|
|
|
use Illuminate\Support\Facades\Auth; |
9
|
|
|
use Illuminate\Support\Facades\View; |
10
|
|
|
use Gitamin\Http\Controllers\Controller; |
11
|
|
|
|
12
|
|
|
class IssuesController extends Controller |
13
|
|
|
{ |
14
|
|
|
|
15
|
|
|
protected $active_item = 'issues'; |
16
|
|
|
/** |
17
|
|
|
* Display a listing of the resource. |
18
|
|
|
* |
19
|
|
|
* @return \Illuminate\Http\Response |
20
|
|
|
*/ |
21
|
|
|
|
22
|
|
|
public function index($namespace, $project_path) |
23
|
|
|
{ |
24
|
|
|
$project = $this->getProject($namespace, $project_path); |
25
|
|
|
return View::make('projects.issues.index') |
26
|
|
|
->withProject($project) |
27
|
|
|
->withActiveItem($this->active_item) |
28
|
|
|
->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name)); |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
public function new($namespace, $project_path) |
32
|
|
|
{ |
33
|
|
|
$project = $this->getProject($namespace, $project_path); |
34
|
|
|
|
35
|
|
|
return View::make('projects.issues.new') |
36
|
|
|
->withProject($project) |
37
|
|
|
->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name)) |
38
|
|
|
->withActiveItem($this->active_item); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* Show the form for creating a new resource. |
43
|
|
|
* |
44
|
|
|
* @return \Illuminate\Http\Response |
45
|
|
|
*/ |
46
|
|
|
public function create() |
47
|
|
|
{ |
48
|
|
|
// |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* Store a newly created resource in storage. |
53
|
|
|
* |
54
|
|
|
* @param \Illuminate\Http\Request $request |
55
|
|
|
* @return \Illuminate\Http\Response |
56
|
|
|
*/ |
57
|
|
|
public function store(Request $request) |
|
|
|
|
58
|
|
|
{ |
59
|
|
|
// |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* Display the specified resource. |
64
|
|
|
* |
65
|
|
|
* @param int $id |
66
|
|
|
* @return \Illuminate\Http\Response |
67
|
|
|
*/ |
68
|
|
|
public function show($id) |
|
|
|
|
69
|
|
|
{ |
70
|
|
|
// |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* Show the form for editing the specified resource. |
75
|
|
|
* |
76
|
|
|
* @param int $id |
77
|
|
|
* @return \Illuminate\Http\Response |
78
|
|
|
*/ |
79
|
|
|
public function edit($id) |
|
|
|
|
80
|
|
|
{ |
81
|
|
|
// |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* Update the specified resource in storage. |
86
|
|
|
* |
87
|
|
|
* @param \Illuminate\Http\Request $request |
88
|
|
|
* @param int $id |
89
|
|
|
* @return \Illuminate\Http\Response |
90
|
|
|
*/ |
91
|
|
|
public function update(Request $request, $id) |
|
|
|
|
92
|
|
|
{ |
93
|
|
|
// |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* Remove the specified resource from storage. |
98
|
|
|
* |
99
|
|
|
* @param int $id |
100
|
|
|
* @return \Illuminate\Http\Response |
101
|
|
|
*/ |
102
|
|
|
public function destroy($id) |
|
|
|
|
103
|
|
|
{ |
104
|
|
|
// |
105
|
|
|
} |
106
|
|
|
} |
107
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.