Passed
Pull Request — master (#18)
by Arthur
24:46
created
src/Foundation/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     public function boot()
16 16
     {
17 17
         Broadcast::routes([
18
-            'middleware' => ['api'],
18
+            'middleware' => [ 'api' ],
19 19
             'domain'     => env('API_URL'),
20 20
         ]);
21 21
 
Please login to merge, or discard this patch.
src/Modules/Auth0/Drivers/Auth0UserProfileStorageDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 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
         }
Please login to merge, or discard this patch.
src/Modules/Machine/Database/factories/MachineFactory.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(Modules\Machine\Entities\Machine::class, function (Faker $faker) {
5
+$factory->define(Modules\Machine\Entities\Machine::class, function(Faker $faker) {
6 6
     $os = [
7 7
         'MAC',
8 8
         'WINDOWS',
Please login to merge, or discard this patch.
src/Modules/User/Database/factories/UserFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,14 +2,14 @@
 block discarded – undo
2 2
 
3 3
 use Modules\User\Entities\User;
4 4
 
5
-$factory->define(User::class, function (Faker\Generator $faker) {
5
+$factory->define(User::class, function(Faker\Generator $faker) {
6 6
     return [
7 7
         'identity_id'    => (new \MongoDB\BSON\ObjectId())->__toString(),
8 8
         'name'           => $faker->name,
9 9
         'username'       => $faker->userName,
10 10
         'email'          => $faker->unique()->safeEmail,
11 11
         'email_verified' => $faker->boolean,
12
-        'gender'         => get_random_array_element(['male', 'female', 'unknown']),
12
+        'gender'         => get_random_array_element([ 'male', 'female', 'unknown' ]),
13 13
         'avatar'         => 'https://i1.wp.com/cdn.auth0.com/avatars/ad.png',
14 14
         'provider'       => 'database',
15 15
     ];
Please login to merge, or discard this patch.
src/Foundation/Tests/HelpersTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,6 +179,6 @@
 block discarded – undo
179 179
     public function testGetClassConstants()
180 180
     {
181 181
         $this->assertArrayHasKey('TEST_CONSTANT', get_class_constants(static::class));
182
-        $this->assertEquals(self::TEST_CONSTANT, get_class_constants(static::class)['TEST_CONSTANT']);
182
+        $this->assertEquals(self::TEST_CONSTANT, get_class_constants(static::class)[ 'TEST_CONSTANT' ]);
183 183
     }
184 184
 }
Please login to merge, or discard this patch.
src/Modules/Notification/Providers/NotificationServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function register()
27 27
     {
28
-        $this->app->bind(NotificationServiceContract::class, function () {
28
+        $this->app->bind(NotificationServiceContract::class, function() {
29 29
             return new NotificationService(new UserService());
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
Database/Migrations/2018_10_27_122953_create_notifications_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('notifications', function (Blueprint $table) {
16
+        Schema::create('notifications', function(Blueprint $table) {
17 17
             $table->uuid('id')->primary();
18 18
             $table->string('type');
19 19
             $table->morphs('notifiable');
Please login to merge, or discard this patch.
src/Modules/Auth0/Services/Auth0Service.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function getUserByUserInfo($userInfo)
51 51
     {
52
-        return $this->upsertUser($userInfo['profile']);
52
+        return $this->upsertUser($userInfo[ 'profile' ]);
53 53
     }
54 54
 
55 55
     protected function upsertUser($profile)
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
             throw new BadRequestHttpException('Missing token information: Auth0 user id is not set');
59 59
         }
60 60
         $identifier = explode('|', $profile->user_id);
61
-        $identityProvider = $identifier[0];
62
-        $id = $identifier[1];
61
+        $identityProvider = $identifier[ 0 ];
62
+        $id = $identifier[ 1 ];
63 63
 
64 64
         $user = $this->service->findByIdentityId($id);
65 65
         if ($user === null) {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
     public function getTestUserToken()
97 97
     {
98
-        return Cache::remember('testing:http_access_token', 60, function () {
98
+        return Cache::remember('testing:http_access_token', 60, function() {
99 99
             try {
100 100
                 $httpClient = new Client();
101 101
                 $response = $httpClient->post(env('AUTH0_DOMAIN').'oauth/token', [
Please login to merge, or discard this patch.
src/Modules/Demo/Jobs/SeedDemoDataJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
     public function handle()
20 20
     {
21
-        Model::unguarded(function () {
21
+        Model::unguarded(function() {
22 22
             $seeder = app()->make(DemoSeeder::class);
23 23
             $seeder->__invoke();
24 24
         });
Please login to merge, or discard this patch.