Passed
Pull Request — master (#15)
by Paul
08:09 queued 03:21
created
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.
src/Http/Controllers/Api/V1/UrlController.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
         $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
 
Please login to merge, or discard this patch.
database/factories/ClickFactory.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 Faker\Generator as Faker;
4 4
 
5
-$factory->define(Devpri\Tinre\Models\Click::class, function (Faker $faker) {
5
+$factory->define(Devpri\Tinre\Models\Click::class, function(Faker $faker) {
6 6
     return [
7 7
         'country' => $faker->countryCode,
8 8
         'region' => $faker->state,
Please login to merge, or discard this patch.
src/Guards/TokenGuard.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,17 +19,17 @@
 block discarded – undo
19 19
         if ($token = $this->request->bearerToken()) {
20 20
             $accessToken = AccessToken::findToken($token);
21 21
 
22
-            if (! $accessToken) {
22
+            if (!$accessToken) {
23 23
                 return;
24 24
             }
25 25
 
26 26
             $user = $accessToken->user;
27 27
 
28
-            if (! $user->active) {
28
+            if (!$user->active) {
29 29
                 return;
30 30
             }
31 31
 
32
-            if (! $user->hasApiAccess()) {
32
+            if (!$user->hasApiAccess()) {
33 33
                 return;
34 34
             }
35 35
 
Please login to merge, or discard this patch.