Test Failed
Pull Request — master (#48)
by
unknown
05:05
created
src/Commands/RestoreTenant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,14 +51,14 @@
 block discarded – undo
51 51
      */
52 52
     public function handle()
53 53
     {
54
-        if(!$tenant = $this->tenants->findById($this->argument('id'))) {
54
+        if (!$tenant = $this->tenants->findById($this->argument('id'))) {
55 55
             $this->error('Cannot find a tenant #' . $this->argument('id'));
56 56
             return;
57 57
         }
58 58
 
59 59
         $this->renderTenants($tenant, 'Found a deleted tenant');
60 60
 
61
-        if(!$this->confirm('Would you like to restore it?')) {
61
+        if (!$this->confirm('Would you like to restore it?')) {
62 62
             return;
63 63
         }
64 64
 
Please login to merge, or discard this patch.
src/Commands/DeleteTenant.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $tenants = $this->tenants->findByAnyIdentifier($this->argument('tenant'), false);
56 56
 
57
-        if($tenants->isEmpty()) {
57
+        if ($tenants->isEmpty()) {
58 58
             $this->error('Cannot find a matching tenant by "' . $this->argument('tenant') . '" identifier');
59 59
             return;
60 60
         }
61 61
 
62 62
         $this->renderTenants($tenants, 'Found tenant(s)');
63 63
 
64
-        if($tenants->count() > 1) {
64
+        if ($tenants->count() > 1) {
65 65
             $deletingId = $this->ask('We have found several tenants, which one would you like to delete? (enter its ID)');
66 66
         }
67 67
         else {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         $tenant = $tenants->firstWhere('id', $deletingId);
72 72
 
73
-        if($this->option('safe')) {
73
+        if ($this->option('safe')) {
74 74
             $tenant->delete();
75 75
 
76 76
             $this->info('The tenant #' . $deletingId . ' safely deleted. To restore it, run:');
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             return;
80 80
         }
81 81
 
82
-        if(!$this->confirm('Would you like to forcely delete the tenant #' . $deletingId . '? It cannot be reverted.')) {
82
+        if (!$this->confirm('Would you like to forcely delete the tenant #' . $deletingId . '? It cannot be reverted.')) {
83 83
             return;
84 84
         }
85 85
 
Please login to merge, or discard this patch.
database/migrations/2019_06_24_140207_create_saml2_tenants_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('saml2_tenants', function (Blueprint $table) {
16
+        Schema::create('saml2_tenants', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->uuid('uuid');
19 19
             $table->string('key')->nullable();
Please login to merge, or discard this patch.
2020_10_22_140856_add_relay_state_url_column_to_saml2_tenants_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::table('saml2_tenants', function (Blueprint $table) {
16
+        Schema::table('saml2_tenants', function(Blueprint $table) {
17 17
             $table->string('relay_state_url')->nullable();
18 18
         });
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::table('saml2_tenants', function (Blueprint $table) {
28
+        Schema::table('saml2_tenants', function(Blueprint $table) {
29 29
             $table->dropColumn('relay_state_url');
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
2020_10_23_072902_add_name_id_format_column_to_saml2_tenants_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::table('saml2_tenants', function (Blueprint $table) {
16
+        Schema::table('saml2_tenants', function(Blueprint $table) {
17 17
             $table->string('name_id_format')->default('persistent');
18 18
         });
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::table('saml2_tenants', function (Blueprint $table) {
28
+        Schema::table('saml2_tenants', function(Blueprint $table) {
29 29
             $table->dropColumn('name_id_format');
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
...02_100000_rename_sp_entity_id_override_column_to_id_app_url_override.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function up()
17 17
     {
18
-        Schema::table('saml2_tenants', function (Blueprint $table) {
18
+        Schema::table('saml2_tenants', function(Blueprint $table) {
19 19
             $table->renameColumn('sp_entity_id_override', 'id_app_url_override');
20 20
         });
21 21
     }
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function down()
29 29
     {
30
-        Schema::table('saml2_tenants', function (Blueprint $table) {
30
+        Schema::table('saml2_tenants', function(Blueprint $table) {
31 31
             $table->renameColumn('id_app_url_override', 'sp_entity_id_override');
32 32
         });
33 33
     }
Please login to merge, or discard this patch.
...09_21_101100_add_sp_entity_id_override_column_to_saml2_tenants_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      */
16 16
     public function up()
17 17
     {
18
-        Schema::table('saml2_tenants', function (Blueprint $table) {
18
+        Schema::table('saml2_tenants', function(Blueprint $table) {
19 19
             $table->string('sp_entity_id_override')->nullable();
20 20
         });
21 21
     }
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function down()
29 29
     {
30
-        Schema::table('saml2_tenants', function (Blueprint $table) {
30
+        Schema::table('saml2_tenants', function(Blueprint $table) {
31 31
             $table->dropColumn('sp_entity_id_override');
32 32
         });
33 33
     }
Please login to merge, or discard this patch.
src/Helpers/TenantWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      */
96 96
     private function getUrlWithDomainOverrideIfConfigured(string $routeName): string
97 97
     {
98
-        $routeParams = [ 'uuid' => $this->tenant->uuid ];
98
+        $routeParams = ['uuid' => $this->tenant->uuid];
99 99
         
100 100
         if ($this->tenant->id_app_url_override) {
101 101
             // Override the APP_URL with "manual" host:
Please login to merge, or discard this patch.
src/OneLoginBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             OneLoginUtils::setProxyVars(true);
67 67
         }
68 68
 
69
-        $this->app->singleton('OneLogin_Saml2_Auth', function ($app) {
69
+        $this->app->singleton('OneLogin_Saml2_Auth', function($app) {
70 70
             $config = $app['config']['saml2'];
71 71
 
72 72
             $this->setConfigDefaultValues($config);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             return new OneLoginAuth($oneLoginConfig);
89 89
         });
90 90
 
91
-        $this->app->singleton('Slides\Saml2\Auth', function ($app) {
91
+        $this->app->singleton('Slides\Saml2\Auth', function($app) {
92 92
             return new \Slides\Saml2\Auth($app['OneLogin_Saml2_Auth'], $this->tenant);
93 93
         });
94 94
     }
Please login to merge, or discard this patch.