Completed
Push — master ( 2f51b9...5a5df7 )
by Corentin
23:21
created
app/Http/Controllers/CategoryController.php 1 patch
Doc Comments   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 	/**
13 13
 	 * Display a listing of the resource.
14 14
 	 *
15
-	 * @return Response
15
+	 * @return \Illuminate\Http\JsonResponse
16 16
 	 */
17 17
 	public function index()
18 18
 	{
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	/**
25 25
 	 * Store a newly created resource in storage.
26 26
 	 *
27
-	 * @return Response
27
+	 * @return \Illuminate\Http\JsonResponse
28 28
 	 */
29 29
 	public function store()
30 30
 	{		
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	 * Display the specified resource.
57 57
 	 *
58 58
 	 * @param  int  $id
59
-	 * @return Response
59
+	 * @return \Illuminate\Http\JsonResponse
60 60
 	 */
61 61
 	public function show($id)
62 62
 	{
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 * Update the specified resource in storage.
77 77
 	 *
78 78
 	 * @param  int  $id
79
-	 * @return Response
79
+	 * @return \Illuminate\Http\JsonResponse
80 80
 	 */
81 81
 	public function update($id)
82 82
 	{
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	 * Remove the specified resource from storage.
114 114
 	 *
115 115
 	 * @param  int  $id
116
-	 * @return Response
116
+	 * @return \Illuminate\Http\JsonResponse
117 117
 	 */
118 118
 	public function destroy($id)
119 119
 	{
@@ -140,6 +140,9 @@  discard block
 block discarded – undo
140 140
     	return Response::json( [], 200);
141 141
 	}
142 142
 
143
+	/**
144
+	 * @param integer $id
145
+	 */
143 146
 	private function isID($id) {
144 147
 
145 148
 		return (bool) preg_match('/^[0-9]{1,10}$/', $id);
Please login to merge, or discard this patch.
app/Http/Controllers/InstallController.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,9 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use App\Http\Requests;
6 5
 use App\User;
7
-use Config;
8 6
 use DateTimeZone;
9 7
 use Exception;
10 8
 use Hash;
@@ -12,8 +10,6 @@  discard block
 block discarded – undo
12 10
 use Illuminate\Support\Facades\Artisan;
13 11
 use PDO;
14 12
 use PDOException;
15
-use Session;
16
-use URL;
17 13
 
18 14
 class InstallController extends Controller
19 15
 {
Please login to merge, or discard this patch.
app/Http/Controllers/SnapshotController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use App\Exceptions\RepositoryException;
4
-use App\Repositories\SnapshotDetailsRepository;
5 3
 use App\Repositories\SnapshotRepository;
6 4
 use Input;
7 5
 use Response;
Please login to merge, or discard this patch.
app/Repositories/UserRepository.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
         }
29 29
     }
30 30
 
31
+    /**
32
+     * @param boolean $isActive
33
+     */
31 34
     public function allByStatus($isActive)
32 35
     {
33 36
         if (!is_bool($isActive)) {
@@ -98,6 +101,9 @@  discard block
 block discarded – undo
98 101
         return $user;
99 102
     }
100 103
 
104
+    /**
105
+     * @return string|null
106
+     */
101 107
     public function changeRole($userId)
102 108
     {
103 109
         $user = $this->get($userId);
Please login to merge, or discard this patch.