1 | <?php |
||
13 | class HistoryController extends Controller |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Display a listing of the resource. |
||
18 | * |
||
19 | * @return Response |
||
20 | */ |
||
21 | public function index() |
||
38 | |||
39 | /** |
||
40 | * Show the form for creating a new resource. |
||
41 | * |
||
42 | * @return Response |
||
43 | */ |
||
44 | public function create() |
||
48 | |||
49 | /** |
||
50 | * Store a newly created resource in storage. |
||
51 | * |
||
52 | * @return Response |
||
53 | */ |
||
54 | public function store(Request $request) |
||
58 | |||
59 | /** |
||
60 | * Display the specified resource. |
||
61 | * |
||
62 | * @param int $id |
||
63 | * @return Response |
||
64 | */ |
||
65 | public function show($id) |
||
69 | |||
70 | /** |
||
71 | * Show the form for editing the specified resource. |
||
72 | * |
||
73 | * @param int $id |
||
74 | * @return Response |
||
75 | */ |
||
76 | public function edit($id) |
||
80 | |||
81 | /** |
||
82 | * Update the specified resource in storage. |
||
83 | * |
||
84 | * @param int $id |
||
85 | * @return Response |
||
86 | */ |
||
87 | public function update($id) |
||
91 | |||
92 | /** |
||
93 | * Remove the specified resource from storage. |
||
94 | * |
||
95 | * @param int $id |
||
96 | * @return Response |
||
97 | */ |
||
98 | public function destroy($id) |
||
102 | |||
103 | } |
||
104 | |||
106 |
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.