Passed
Push — master ( 116fb7...64b293 )
by Paul
04:37
created
src/Http/Controllers/PreviewController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     {
12 12
         $url = URL::select(['long_url', 'path', 'created_at'])->where(['path' => $path, 'active' => 1])->first();
13 13
         
14
-        if (! $url) {
14
+        if (!$url) {
15 15
             return redirect('/');
16 16
         }
17 17
                 
Please login to merge, or discard this patch.
src/Services/UrlService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
         }
33 33
 
34 34
         if ($search) {
35
-            $query->where(function (Builder $query) use ($search) {
35
+            $query->where(function(Builder $query) use ($search) {
36 36
                 $query->where('path', 'LIKE', "%{$search}%")
37 37
                     ->orWhere('long_url', 'LIKE', "%{$search}%")
38
-                    ->orWhereHas('user', function ($query) use ($search) {
38
+                    ->orWhereHas('user', function($query) use ($search) {
39 39
                         $query->where('name', 'LIKE', "%{$search}%")
40 40
                             ->orWhere('email', 'LIKE', "%{$search}%");
41 41
                     });
Please login to merge, or discard this patch.
src/Services/StatsService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     public function getData(string $column, int $urlId, array $date): object
34 34
     {
35
-        if (! in_array($column, ['country', 'region', 'city', 'device_type', 'device_brand', 'device_model', 'os', 'browser', 'referer', 'referer_host'])) {
35
+        if (!in_array($column, ['country', 'region', 'city', 'device_type', 'device_brand', 'device_model', 'os', 'browser', 'referer', 'referer_host'])) {
36 36
             throw ValidationException::withMessages([
37 37
                 'column' => [__('Unsupported column.')],
38 38
             ]);
Please login to merge, or discard this patch.