Passed
Push — master ( 40ce26...965fb6 )
by Arthur
22:04
created
src/Modules/Account/Events/AccountUpdatedEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 class AccountUpdatedEvent extends Event implements ShouldBroadcast
18 18
 {
19
-    public $listeners = [];
19
+    public $listeners = [ ];
20 20
 
21 21
     /**
22 22
      * @var account
Please login to merge, or discard this patch.
src/Modules/Account/Entities/Account.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /**
34 34
      * @var array
35 35
      */
36
-    protected $guarded = [];
36
+    protected $guarded = [ ];
37 37
 
38 38
     protected $casts = [
39 39
         'online' => 'boolean',
Please login to merge, or discard this patch.
src/Modules/Account/Services/AccountService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     public function assignToMachine($id, ?Machine $machine)
65 65
     {
66
-        return $this->update($id, ['machine_id' => $machine->id ?? null]);
66
+        return $this->update($id, [ 'machine_id' => $machine->id ?? null ]);
67 67
     }
68 68
 
69 69
     public function unlinkFromMachine($id)
Please login to merge, or discard this patch.
src/Modules/Account/Database/factories/AccountFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 use Faker\Generator as Faker;
4 4
 use Modules\Account\Entities\Account;
5 5
 
6
-$factory->define(Account::class, function (Faker $faker) {
6
+$factory->define(Account::class, function(Faker $faker) {
7 7
     return [
8 8
          'user_id'           => 1,
9 9
          'username'          => $faker->unique()->safeEmail,
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      ];
22 22
 });
23 23
 
24
- $factory->state(Account::class, 'OSRS', function (Faker $faker) {
24
+ $factory->state(Account::class, 'OSRS', function(Faker $faker) {
25 25
      return [
26 26
          'game'                  => 'OSRS',
27 27
          'bank_pin'              => $faker->randomNumber(4, true),
@@ -72,19 +72,19 @@  discard block
 block discarded – undo
72 72
                      'amount'  => 1,
73 73
                  ],
74 74
              ],
75
-             'equipment'      => [],
75
+             'equipment'      => [ ],
76 76
              'grand_exchange' => [
77 77
                  [
78 78
                      'item_id' => 5,
79 79
                      'amount'  => 2,
80 80
                  ],
81 81
              ],
82
-             'inventory' => [],
82
+             'inventory' => [ ],
83 83
          ],
84 84
      ];
85 85
  });
86 86
 
87
- $factory->state(Account::class, 'RS3', function (Faker $faker) {
87
+ $factory->state(Account::class, 'RS3', function(Faker $faker) {
88 88
      return [
89 89
          'game'                  => 'RS3',
90 90
          'bank_pin'              => $faker->randomNumber(4, true),
Please login to merge, or discard this patch.
src/Foundation/Tests/TransformerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function __construct($user)
64 64
     {
65 65
         $this->user = $user;
66
-        parent::__construct([]);
66
+        parent::__construct([ ]);
67 67
     }
68 68
 }
69 69
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 {
76 76
     public function toArray($request)
77 77
     {
78
-        return [];
78
+        return [ ];
79 79
     }
80 80
 
81 81
     public function transformUser(MachineTestModel $machine)
@@ -86,13 +86,13 @@  discard block
 block discarded – undo
86 86
 
87 87
 class UserIncludedMachineTestTransformer extends MachineTestTransformer
88 88
 {
89
-    public $include = ['user'];
89
+    public $include = [ 'user' ];
90 90
 }
91 91
 
92 92
 class UserTestTransformer extends Transformer
93 93
 {
94 94
     public function toArray($request)
95 95
     {
96
-        return [];
96
+        return [ ];
97 97
     }
98 98
 }
Please login to merge, or discard this patch.
src/Modules/Horizon/Config/horizon.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         'production' => [
75 75
             'supervisor-1' => [
76 76
                 'connection' => 'redis',
77
-                'queue' => ['default'],
77
+                'queue' => [ 'default' ],
78 78
                 'balance' => 'simple',
79 79
                 'processes' => 10,
80 80
                 'tries' => 3,
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         'local' => [
85 85
             'supervisor-1' => [
86 86
                 'connection' => 'redis',
87
-                'queue' => ['default'],
87
+                'queue' => [ 'default' ],
88 88
                 'balance' => 'simple',
89 89
                 'processes' => 3,
90 90
                 'tries' => 3,
Please login to merge, or discard this patch.
src/Modules/Auth0/Http/Middleware/Auth0AuthenticationMiddleware.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,15 +37,15 @@
 block discarded – undo
37 37
             $tokenInfo = $auth0->decodeJWT($accessToken);
38 38
             $user = $this->auth0Service->getUserByDecodedJWT($tokenInfo);
39 39
 
40
-            if (! $user) {
41
-                return response()->json(['error' => 'Unauthorized user.'], 401);
40
+            if (!$user) {
41
+                return response()->json([ 'error' => 'Unauthorized user.' ], 401);
42 42
             }
43 43
 
44 44
             \Auth::login($user);
45 45
         } catch (InvalidTokenException $e) {
46
-            return response()->json(['error' => 'Invalid or no token set.'], 401);
46
+            return response()->json([ 'error' => 'Invalid or no token set.' ], 401);
47 47
         } catch (CoreException $e) {
48
-            return response()->json(['error' => $e->getMessage()], 401);
48
+            return response()->json([ 'error' => $e->getMessage() ], 401);
49 49
         }
50 50
 
51 51
         return $next($request);
Please login to merge, or discard this patch.
src/Modules/Auth0/Drivers/Auth0UserProfileStorageDriver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $this->loadServices();
78 78
 
79
-        if (! $this->validator->validate($this->profile)) {
79
+        if (!$this->validator->validate($this->profile)) {
80 80
             throw new UnauthorizedException('Invalid profile data found in the access token');
81 81
         }
82 82
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $profile = $this->transformer->transformProfile($this->profile);
112 112
 
113 113
         if ($this->profileHasChanged()) {
114
-            $profile['provider'] = $this->identityProvider;
114
+            $profile[ 'provider' ] = $this->identityProvider;
115 115
             $this->user->fill($profile);
116 116
             $this->user->save();
117 117
         }
@@ -124,6 +124,6 @@  discard block
 block discarded – undo
124 124
         $user = $this->user->toArray();
125 125
         $profile = (array) $this->profile;
126 126
 
127
-        return ! array_is_subset_of($profile, $user);
127
+        return !array_is_subset_of($profile, $user);
128 128
     }
129 129
 }
Please login to merge, or discard this patch.
src/Modules/Mongo/Abstracts/MongoCollectionMigration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function __construct()
29 29
     {
30
-        if (! isset($this->collection) || $this->collection === '') {
30
+        if (!isset($this->collection) || $this->collection === '') {
31 31
             throw new InternalErrorException('Collection name must be specified on migration: '.get_called_class());
32 32
         }
33 33
     }
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
      */
40 40
     final public function up()
41 41
     {
42
-        if (! Schema::connection($this->connection)->hasTable($this->collection)) {
43
-            Schema::connection($this->connection)->create($this->collection, function (Blueprint $collection) {
42
+        if (!Schema::connection($this->connection)->hasTable($this->collection)) {
43
+            Schema::connection($this->connection)->create($this->collection, function(Blueprint $collection) {
44 44
                 if (method_exists($this, 'migrate')) {
45 45
                     $this->migrate($collection);
46 46
                 }
Please login to merge, or discard this patch.