@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | abort(401); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - if (! $user->hasPermissionTo('stats:view')) { |
|
| 33 | + if (!$user->hasPermissionTo('stats:view')) { |
|
| 34 | 34 | abort(401); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | abort(401); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - if (! $user->hasPermissionTo('stats:view')) { |
|
| 56 | + if (!$user->hasPermissionTo('stats:view')) { |
|
| 57 | 57 | abort(401); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Illuminate\Support\Facades\Route; |
| 4 | 4 | |
| 5 | -Route::middleware(['auth:api'])->group(function () { |
|
| 5 | +Route::middleware(['auth:api'])->group(function() { |
|
| 6 | 6 | Route::get('urls', 'UrlController@index'); |
| 7 | 7 | Route::post('urls', 'UrlController@create'); |
| 8 | 8 | Route::get('urls/{path}', 'UrlController@show'); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | public function getData(string $column, int $urlId, string $startDate, string $endDate): 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 | ]); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | $user = $request->user(); |
| 33 | 33 | |
| 34 | - if (! $user->hasAnyPermission(['url:view', 'url:view:any'])) { |
|
| 34 | + if (!$user->hasAnyPermission(['url:view', 'url:view:any'])) { |
|
| 35 | 35 | abort(401); |
| 36 | 36 | } |
| 37 | 37 | |