Completed
Push — device-groups ( 198a39...479001 )
by Tony
07:57 queued 04:52
created
app/Api/Controllers/DashboardWidgetController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      */
74 74
     public function show(Request $request, $id)
75 75
     {
76
-        $widget  = Widgets::find($id);
76
+        $widget = Widgets::find($id);
77 77
         return array('widget' => $widget);
78 78
     }
79 79
 
Please login to merge, or discard this patch.
app/Http/Controllers/DeviceController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
18 18
      *
19 19
      * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View
20 20
      */
21
-    public function index(DeviceDataTable $dataTable, $group_id=-1)
21
+    public function index(DeviceDataTable $dataTable, $group_id = -1)
22 22
     {
23 23
         $group_name = "";
24
-        if($group_id >= 0) {
24
+        if ($group_id >= 0) {
25 25
             $dataTable->addScope(new \App\DataTables\Scopes\DeviceGroup($group_id));
26 26
             $group_name = DeviceGroup::find($group_id)->name;
27 27
         }
Please login to merge, or discard this patch.
app/Models/DeviceGroup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $related = $this->getRelation('deviceCountRelation')->first();
93 93
 
94 94
         // then return the count directly
95
-        return ($related) ? (int)$related->count : 0;
95
+        return ($related) ? (int) $related->count : 0;
96 96
     }
97 97
 
98 98
     /**
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         if (starts_with($pattern, '%')) {
192 192
             $pattern = $this->convertV1Pattern($pattern);
193 193
 
194
-            $this->pattern = $pattern;  //TODO: does not save, only updates this instance
194
+            $this->pattern = $pattern; //TODO: does not save, only updates this instance
195 195
         }
196 196
 
197 197
         return $pattern;
Please login to merge, or discard this patch.