Passed
Push — master ( 07ff08...756a96 )
by Arthur
05:20
created
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.
Modules/User/Database/Migrations/2018_10_04_134544_CreateUserMigration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('users', function (Blueprint $table) {
15
+        Schema::create('users', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('identity_id')->unique();
18 18
             $table->string('email');
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.
src/Foundation/Routes/channels.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Broadcast::channel('user.{id}', function ($user, $id) {
14
+Broadcast::channel('user.{id}', function($user, $id) {
15 15
     return $user->id === (int) $id;
16 16
 });
Please login to merge, or discard this patch.
src/Foundation/Traits/RefreshDatabase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $this->artisan('cache:model:clear');
23 23
         $this->artisan('migrate:refresh');
24 24
         $this->artisan('db:seed');
25
-        $this->beforeApplicationDestroyed(function () {
25
+        $this->beforeApplicationDestroyed(function() {
26 26
             RefreshDatabaseState::$migrated = false;
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
src/Foundation/Traits/MutatesRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 {
14 14
     public function injectUserId($request): array
15 15
     {
16
-        return array_merge($request->toArray(), ['user_id' => get_authenticated_user_id()]);
16
+        return array_merge($request->toArray(), [ 'user_id' => get_authenticated_user_id() ]);
17 17
     }
18 18
 }
Please login to merge, or discard this patch.