Completed
Pull Request — develop (#108)
by Neil
03:12
created
app/Api/Controllers/WidgetController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * Display a listing of all widgets
17 17
      *
18
-     * @return \Illuminate\Http\Response
18
+     * @return \Illuminate\Database\Eloquent\Collection
19 19
      */
20 20
     public function index(Request $request)
21 21
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Api\Controllers;
4 4
 
5
-use App\Models\User;
6 5
 use App\Models\Widgets;
7 6
 use Illuminate\Http\Request;
8 7
 
Please login to merge, or discard this patch.
app/Api/Controllers/DashboardController.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Api\Controllers;
4 4
 
5
-use Validator;
6
-use App\Models\User;
7 5
 use App\Models\Dashboard;
8 6
 use App\Models\UsersWidgets;
9 7
 use Dingo\Api\Routing\Helpers;
10 8
 use Illuminate\Http\Request;
9
+use Validator;
11 10
 
12 11
 class DashboardController extends Controller
13 12
 {
Please login to merge, or discard this patch.
app/Api/Controllers/DashboardWidgetController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Api\Controllers;
4 4
 
5
-use App\Models\Widgets;
6 5
 use App\Models\Dashboard;
7 6
 use App\Models\UsersWidgets;
7
+use App\Models\Widgets;
8 8
 use Dingo\Api\Http;
9 9
 use Dingo\Api\Routing\Helpers;
10 10
 use Illuminate\Http\Request;
Please login to merge, or discard this patch.
app/Api/Controllers/UsersWidgetController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Api\Controllers;
4 4
 
5
-use App\Models\User;
6 5
 use App\Models\Widgets;
7 6
 use Illuminate\Http\Request;
8 7
 
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
+use App\Models\Dashboard;
5 6
 use Dingo\Api\Http;
6 7
 use Dingo\Api\Routing\Helpers;
7 8
 use Illuminate\Http\Request;
8
-use App\Models\Dashboard;
9 9
 use JWTAuth;
10
-use Tymon\JWTAuth\Exceptions\JWTException;
11 10
 
12 11
 class HomeController extends Controller
13 12
 {
Please login to merge, or discard this patch.
app/Models/UsersWidgets.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     // ---- Define Relationships ----
65 65
 
66 66
     /**
67
-     * @return \Illuminate\Database\Eloquent\Relations\HasOne
67
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
68 68
      */
69 69
     public function user()
70 70
     {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @return \Illuminate\Database\Eloquent\Relations\HasOne
83
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
84 84
      */
85 85
     public function dashboard()
86 86
     {
Please login to merge, or discard this patch.
app/Http/Controllers/DeviceController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use Settings;
6 5
 use Dingo\Api\Http;
7 6
 use Dingo\Api\Routing\Helpers;
8 7
 use Illuminate\Http\Request;
Please login to merge, or discard this patch.
app/Settings.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
      * Or when the user is not a global admin.
186 186
      *
187 187
      * @param string $key The path to check
188
-     * @return bool|string false or the source: config | auth
188
+     * @return string|false false or the source: config | auth
189 189
      */
190 190
     public function isReadOnly($key)
191 191
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Alerting/AlertsController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
 
26 26
 namespace App\Http\Controllers\Alerting;
27 27
 
28
-use Illuminate\Http\Request;
29 28
 use App\DataTables\AlertsDataTable;
30 29
 use App\Http\Controllers\Controller;
30
+use Illuminate\Http\Request;
31 31
 
32 32
 class AlertsController extends Controller
33 33
 {
Please login to merge, or discard this patch.