Test Failed
Push — vue-test ( 4704e8...225db2 )
by Tony
04:11
created
app/DataTables/Scopes/DeviceGroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function apply($query)
23 23
     {
24
-        return $query->whereHas('groups', function ($q) {
24
+        return $query->whereHas('groups', function($q) {
25 25
             $q->where('id', '=', $this->group_id);
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
app/QueryBuilderFilter.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@
 block discarded – undo
38 38
         return json_encode(self::generateMacroFilter('alert.macros.rule', self::generateTableFilter()));
39 39
     }
40 40
 
41
+    /**
42
+     * @param string $setting
43
+     */
41 44
     private static function generateMacroFilter($setting, $filter = [])
42 45
     {
43 46
         foreach (Settings::get($setting, []) as $key => $value) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         }
63 63
 
64 64
         // return the table filter merged with $filter, fetch from cache if available
65
-        return array_merge($filter, Cache::rememberForever('query_builder_table_filter', function () {
65
+        return array_merge($filter, Cache::rememberForever('query_builder_table_filter', function() {
66 66
             $tableFilter = [];
67 67
             $schema = DB::getDoctrineSchemaManager();
68 68
 
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         Route::group([
55 55
             'middleware' => 'web',
56 56
             'namespace' => $this->namespace,
57
-        ], function ($router) {
57
+        ], function($router) {
58 58
             require base_path('routes/web.php');
59 59
         });
60 60
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             'middleware' => ['api', 'jwt-auth'],
73 73
             'namespace' => $this->namespace,
74 74
             'prefix' => 'api',
75
-        ], function ($router) {
75
+        ], function($router) {
76 76
             require base_path('routes/api.php');
77 77
         });
78 78
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Widgets/WidgetDataController.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,6 @@
 block discarded – undo
60 60
     /**
61 61
      * Display the alerts widget.
62 62
      *
63
-     * @param AlertsDataTable $dataTable
64 63
      * @param null $action
65 64
      * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View
66 65
      */
Please login to merge, or discard this patch.
app/Data/RRD.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
     public static function escape($string, $length = null)
192 192
     {
193 193
         $result = shorten_interface_type($string);
194
-        $result = str_replace("'", '', $result);            # remove quotes
195
-        $result = str_replace('%', '%%', $result);          # double percent signs
194
+        $result = str_replace("'", '', $result); # remove quotes
195
+        $result = str_replace('%', '%%', $result); # double percent signs
196 196
         if (is_numeric($length) && strlen($string) > $length) {
197 197
             $extra = substr_count($string, ':', 0, $length);
198 198
             $result = substr(str_pad($result, $length), 0, ($length + $extra));
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
             }
202 202
         }
203 203
 
204
-        $result = str_replace(':', '\:', $result);          # escape colons
204
+        $result = str_replace(':', '\:', $result); # escape colons
205 205
         return $result.' ';
206 206
     }
207 207
 }
Please login to merge, or discard this patch.
app/Graphs/Device/Storage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         if ($this->hasIDs()) {
35 35
             return [
36
-                'storage' => function (Builder $query) {
36
+                'storage' => function(Builder $query) {
37 37
                     $query->whereIn('storage_id', $this->getIDs());
38 38
                 },
39 39
             ];
Please login to merge, or discard this patch.
app/Graphs/Device/Processor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         if ($this->hasIDs()) {
35 35
             return [
36
-                'processors' => function (Builder $query) {
36
+                'processors' => function(Builder $query) {
37 37
                     $query->whereIn('processor_id', $this->getIDs());
38 38
                 },
39 39
             ];
Please login to merge, or discard this patch.
app/Graphs/Device/Bits.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         if ($this->hasIDs()) {
35 35
             return [
36
-                'ports' => function (Builder $query) {
36
+                'ports' => function(Builder $query) {
37 37
                     $query->whereIn('port_id', $this->getIDs());
38 38
                 },
39 39
             ];
Please login to merge, or discard this patch.
app/Settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     public function get($key, $default = null, $is_array = false)
103 103
     {
104 104
         // return value from cache or fetch it and return it
105
-        return Cache::tags(self::$cache_tag)->remember($key, $this->cache_time, function () use ($key, $default, $is_array) {
105
+        return Cache::tags(self::$cache_tag)->remember($key, $this->cache_time, function() use ($key, $default, $is_array) {
106 106
             // fetch the values from storage
107 107
             if (Config::has('config.'.$key)) {
108 108
                 $config_data = Config::get('config.'.$key, $default);
Please login to merge, or discard this patch.