Completed
Push — master ( 272da4...d030e2 )
by Paras
15s queued 10s
created
src/Models/EntryModel.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function scopeNotMonitored($query)
72 72
     {
73
-        return $query->whereDoesntHave('tags', function ($query) {
74
-            $query->whereIn('tag', function ($query) {
73
+        return $query->whereDoesntHave('tags', function($query) {
74
+            $query->whereIn('tag', function($query) {
75 75
                 $query->select('tag')->from('telescope_monitoring');
76 76
             });
77 77
         });
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function scopeMonitored($query)
88 88
     {
89
-        return $query->whereHas('tags', function ($query) {
90
-            $query->whereIn('tag', function ($query) {
89
+        return $query->whereHas('tags', function($query) {
90
+            $query->whereIn('tag', function($query) {
91 91
                 $query->select('tag')->from('telescope_monitoring');
92 92
             });
93 93
         });
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function scopeExcludeSpecificWhitelisted($query)
104 104
     {
105
-        return $query->whereDoesntHave('tags', function ($query) {
105
+        return $query->whereDoesntHave('tags', function($query) {
106 106
             $query->whereIn('tag', config('telescope-pruning.specific_tags', []));
107 107
         });
108 108
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function scopeIncludeSpecificWhitelisted($query)
118 118
     {
119
-        return $query->whereHas('tags', function ($query) {
119
+        return $query->whereHas('tags', function($query) {
120 120
             $query->whereIn('tag', config('telescope-pruning.specific_tags', []));
121 121
         });
122 122
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     {
133 133
         return $query->when(
134 134
             config('telescope-pruning.skip_monitored_tags', true),
135
-            function ($query) {
135
+            function($query) {
136 136
                 $query->notMonitored();
137 137
             }
138 138
         )->excludeSpecificWhitelisted();
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public function scopeWhitelisted($query)
149 149
     {
150
-        return $query->where(function ($query) {
151
-            $query->when(!empty(config('telescope-pruning.specific_tags')), function ($query) {
150
+        return $query->where(function($query) {
151
+            $query->when(!empty(config('telescope-pruning.specific_tags')), function($query) {
152 152
                 $query->includeSpecificWhitelisted();
153
-            })->orWhere(function ($query) {
153
+            })->orWhere(function($query) {
154 154
                 $query->monitored();
155 155
             });
156 156
         });
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         return static::whereIn(
228 228
             'batch_id',
229
-            function ($query) use ($numPrunes) {
229
+            function($query) use ($numPrunes) {
230 230
                 $query->select('batch_id')->fromSub(
231 231
                     static::prunableNonWhitelisted()
232 232
                         ->select('batch_id')->selectRaw('max(sequence) as seq')
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 
267 267
         return static::whereIn(
268 268
             'batch_id',
269
-            function ($query) use ($numPrunes) {
269
+            function($query) use ($numPrunes) {
270 270
                 $query->select('batch_id')->fromSub(
271 271
                     static::prunableWhitelisted()
272 272
                         ->select('batch_id')->selectRaw('max(sequence) as seq')
Please login to merge, or discard this patch.
src/Commands/TrimCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function handle(Application $app)
33 33
     {
34
-        Telescope::withoutRecording(function () use($app) {
34
+        Telescope::withoutRecording(function() use($app) {
35 35
             $numTrimmed = (new PruneEntries($app))->prune();
36 36
 
37 37
             $this->info($numTrimmed . ' entries trimmed.');
Please login to merge, or discard this patch.
src/TelescopePruningServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
             return;
20 20
         }
21 21
         
22
-        if($this->app->config->get('telescope-pruning.every_request_pruning', true)) {
23
-            $this->app->terminating(function () {
22
+        if ($this->app->config->get('telescope-pruning.every_request_pruning', true)) {
23
+            $this->app->terminating(function() {
24 24
                 Telescope::withoutRecording(function() {
25 25
                     (new PruneEntries($this->app))->prune();
26 26
                 });
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function register()
35 35
     {
36 36
         $this->mergeConfigFrom(
37
-            __DIR__.'/../config/telescope-pruning.php',
37
+            __DIR__ . '/../config/telescope-pruning.php',
38 38
             'telescope-pruning'
39 39
         );
40 40
     
Please login to merge, or discard this patch.