Test Failed
Pull Request — master (#88)
by Artem
04:05
created
src/Auth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
      */
162 162
     public function sls(bool $retrieveParametersFromServer = false): array
163 163
     {
164
-        $this->base->processSLO(false, null, $retrieveParametersFromServer, function () {
164
+        $this->base->processSLO(false, null, $retrieveParametersFromServer, function() {
165 165
             event(new SignedOut());
166 166
         });
167 167
 
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 Route::group([
6 6
     'prefix' => config('saml2.routesPrefix'),
7 7
     'middleware' => array_merge(['saml2.resolveIdentityProvider'], config('saml2.routesMiddleware')),
8
-], function () {
8
+], function() {
9 9
     Route::get('/{uuid}/logout', array(
10 10
         'as' => 'saml.logout',
11 11
         'uses' => 'Slides\Saml2\Http\Controllers\Saml2Controller@logout',
Please login to merge, or discard this patch.
src/Resolvers/ConfigResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             case 'unspecified':
51 51
                 return 'urn:oasis:names:tc:SAML:1.1:nameid-format:' . $format;
52 52
             default:
53
-                return 'urn:oasis:names:tc:SAML:2.0:nameid-format:'. $format;
53
+                return 'urn:oasis:names:tc:SAML:2.0:nameid-format:' . $format;
54 54
         }
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
src/Helpers/ConsoleHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $values = [];
59 59
 
60 60
         foreach ($array as $key => $value) {
61
-            if(is_array($value)) {
61
+            if (is_array($value)) {
62 62
                 continue;
63 63
             }
64 64
 
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
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             OneLoginUtils::setProxyVars(true);
55 55
         }
56 56
 
57
-        $this->app->singleton(OneLoginAuth::class, function ($app) use ($idp) {
57
+        $this->app->singleton(OneLoginAuth::class, function($app) use ($idp) {
58 58
             $config = $app['config']['saml2'];
59 59
 
60 60
             $this->setConfigDefaultValues($idp->idpUuid(), $config);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             );
65 65
         });
66 66
 
67
-        $this->app->singleton(Auth::class, function ($app) use ($idp) {
67
+        $this->app->singleton(Auth::class, function($app) use ($idp) {
68 68
             return new \Slides\Saml2\Auth($app[OneLoginAuth::class], $idp);
69 69
         });
70 70
     }
Please login to merge, or discard this patch.
database/migrations/2023_07_21_205057_create_saml2_sessions_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_sessions', function (Blueprint $table) {
16
+        Schema::create('saml2_sessions', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->foreignId('idp_id')->constrained('saml2_identity_providers');
19 19
             $table->foreignId('user_id')->nullable();
Please login to merge, or discard this patch.
2023_07_21_203815_add_model_morph_columns_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
         Schema::rename('saml2_tenants', 'saml2_identity_providers');
17 17
 
18
-        Schema::table('saml2_identity_providers', function (Blueprint $table) {
18
+        Schema::table('saml2_identity_providers', function(Blueprint $table) {
19 19
             $table->nullableMorphs('tenant');
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_identity_providers', function (Blueprint $table) {
30
+        Schema::table('saml2_identity_providers', function(Blueprint $table) {
31 31
             $table->dropMorphs('tenant');
32 32
         });
33 33
 
Please login to merge, or discard this patch.
2023_11_26_121929_alter_nullable_idp_columns_in_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_identity_providers', function (Blueprint $table) {
16
+        Schema::table('saml2_identity_providers', function(Blueprint $table) {
17 17
             $table->string('idp_entity_id')->nullable()->change();
18 18
             $table->string('idp_login_url')->nullable()->change();
19 19
             $table->string('idp_logout_url')->nullable()->change();
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function down()
31 31
     {
32
-        Schema::table('saml2_identity_providers', function (Blueprint $table) {
32
+        Schema::table('saml2_identity_providers', function(Blueprint $table) {
33 33
             $table->string('idp_entity_id')->nullable(false)->change();
34 34
             $table->string('idp_login_url')->nullable(false)->change();
35 35
             $table->string('idp_logout_url')->nullable(false)->change();
Please login to merge, or discard this patch.