Test Failed
Pull Request — master (#88)
by Artem
04:05
created
config/saml2.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
         |
160 160
         */
161 161
 
162
-        'x509cert' => env('SAML2_SP_CERT_X509',''),
163
-        'privateKey' => env('SAML2_SP_CERT_PRIVATEKEY',''),
162
+        'x509cert' => env('SAML2_SP_CERT_X509', ''),
163
+        'privateKey' => env('SAML2_SP_CERT_PRIVATEKEY', ''),
164 164
 
165 165
         /*
166 166
         |--------------------------------------------------------------------------
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         |
172 172
         */
173 173
 
174
-        'entityId' => env('SAML2_SP_ENTITYID',''),
174
+        'entityId' => env('SAML2_SP_ENTITYID', ''),
175 175
 
176 176
         /*
177 177
         |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
src/Commands/Update.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -94,31 +94,31 @@
 block discarded – undo
94 94
      */
95 95
     protected function interact(InputInterface $input, OutputInterface $output)
96 96
     {
97
-        if (! $input->getOption('entityId')) {
97
+        if (!$input->getOption('entityId')) {
98 98
             $input->setOption('entityId', $this->ask('Entity ID (fx. https://sts.windows.net/65b9e948-757b-4431-b140-62a2f8a3fdeb/) (optional)'));
99 99
         }
100 100
 
101
-        if (! $input->getOption('loginUrl')) {
101
+        if (!$input->getOption('loginUrl')) {
102 102
             $input->setOption('loginUrl', $this->ask('Login URL (fx. https://login.microsoftonline.com/65b9e948-757b-4431-b140-62a2f8a3fdeb/saml2)'));
103 103
         }
104 104
 
105
-        if (! $input->getOption('logoutUrl')) {
105
+        if (!$input->getOption('logoutUrl')) {
106 106
             $input->setOption('logoutUrl', $this->ask('Logout URL'));
107 107
         }
108 108
 
109
-        if (! $input->getOption('nameIdFormat')) {
109
+        if (!$input->getOption('nameIdFormat')) {
110 110
             $input->setOption('nameIdFormat', $this->choice('Name ID Format', $this->nameIdFormatValues(), 'persistent'));
111 111
         }
112 112
 
113
-        if (! $input->getOption('relayStateUrl')) {
113
+        if (!$input->getOption('relayStateUrl')) {
114 114
             $input->setOption('relayStateUrl', $this->ask('Post-login redirect URL (optional)'));
115 115
         }
116 116
 
117
-        if (! $input->getOption('key')) {
117
+        if (!$input->getOption('key')) {
118 118
             $input->setOption('key', $this->ask('Key/name of the identity provider (optional)'));
119 119
         }
120 120
 
121
-        if (! $input->getOption('metadata')) {
121
+        if (!$input->getOption('metadata')) {
122 122
             $input->setOption('metadata', $this->ask('Custom metadata (in format "field:value,anotherfield:value") (optional)'));
123 123
         }
124 124
     }
Please login to merge, or discard this patch.
src/Commands/Create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             'metadata' => $metadata,
76 76
         ]);
77 77
 
78
-        if(!$tenant->save()) {
78
+        if (!$tenant->save()) {
79 79
             $this->error('IdentityProvidable cannot be saved.');
80 80
             return;
81 81
         }
Please login to merge, or discard this patch.
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.