Completed
Pull Request — develop (#100)
by Neil
18:15
created
app/DataTables/Alerting/LogsDataTable.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
      */
90 90
     public function query()
91 91
     {
92
-        $logs = Log::query()->with('device','user','rule')->select('alert_log.*');
92
+        $logs = Log::query()->with('device', 'user', 'rule')->select('alert_log.*');
93 93
         return $this->applyScopes($logs);
94 94
     }
95 95
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,8 @@
 block discarded – undo
102 102
             } catch(\Exception $e) {
103 103
                 if(starts_with($e->getMessage(), 'unserialize():')) {
104 104
                     return $value;
105
-                } else {
105
+                }
106
+                else {
106 107
                     throw $e;
107 108
                 }
108 109
             }
Please login to merge, or discard this patch.