@@ -11,7 +11,7 @@ |
||
| 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 | |
@@ -32,10 +32,10 @@ |
||
| 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 | }); |
@@ -32,7 +32,7 @@ |
||
| 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 | ]); |