Completed
Push — device-groups ( a9d029...f5ffa0 )
by Tony
03:39
created
app/DataTables/Scopes/DeviceGroup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     /**
37 37
      * DeviceGroup constructor.
38 38
      *
39
-     * @param $group_id
39
+     * @param integer $group_id
40 40
      */
41 41
     function __construct($group_id)
42 42
     {
Please login to merge, or discard this patch.
app/Http/Controllers/DeviceGroupController.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * Store a newly created resource in storage.
58 58
      *
59 59
      * @param  \Illuminate\Http\Request  $request
60
-     * @return \Illuminate\Http\Response
60
+     * @return \Illuminate\Http\JsonResponse
61 61
      */
62 62
     public function store(Request $request)
63 63
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * Display the specified resource.
71 71
      *
72 72
      * @param  int  $id
73
-     * @return \Illuminate\Http\Response
73
+     * @return \Illuminate\Http\RedirectResponse
74 74
      */
75 75
     public function show($id)
76 76
     {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      *
95 95
      * @param  \Illuminate\Http\Request  $request
96 96
      * @param  int  $id
97
-     * @return \Illuminate\Http\Response
97
+     * @return \Illuminate\Http\JsonResponse
98 98
      */
99 99
     public function update(Request $request, $id)
100 100
     {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * Remove the specified resource from storage.
109 109
      *
110 110
      * @param  int  $id
111
-     * @return \Illuminate\Http\Response
111
+     * @return \Illuminate\Http\JsonResponse
112 112
      */
113 113
     public function destroy($id)
114 114
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 
26 26
 namespace App\Http\Controllers;
27 27
 
28
-use App\Http\Requests;
29 28
 use App\Http\Requests\AdminOnlyRequest;
30 29
 use App\Models\Port;
31 30
 use App\Models\User;
Please login to merge, or discard this patch.
app/Models/DeviceGroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         $related = $this->getRelation('deviceCountRelation')->first();
87 87
 
88 88
         // then return the count directly
89
-        return ($related) ? (int)$related->count : 0;
89
+        return ($related) ? (int) $related->count : 0;
90 90
     }
91 91
 
92 92
 
Please login to merge, or discard this patch.