Passed
Push — master ( 28a837...7fdfc7 )
by Paul
05:30
created
src/Http/Controllers/Api/V1/StatsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
routes/api/v1.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
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');
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, 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
             ]);
Please login to merge, or discard this patch.