@@ -13,7 +13,7 @@ discard block |
||
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 |
||
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 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | OneLoginUtils::setProxyVars(true); |
66 | 66 | } |
67 | 67 | |
68 | - $this->app->singleton('OneLogin_Saml2_Auth', function ($app) { |
|
68 | + $this->app->singleton('OneLogin_Saml2_Auth', function($app) { |
|
69 | 69 | $config = $app['config']['saml2']; |
70 | 70 | |
71 | 71 | $this->setConfigDefaultValues($config); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | return new OneLoginAuth($oneLoginConfig); |
82 | 82 | }); |
83 | 83 | |
84 | - $this->app->singleton('Slides\Saml2\Auth', function ($app) { |
|
84 | + $this->app->singleton('Slides\Saml2\Auth', function($app) { |
|
85 | 85 | return new \Slides\Saml2\Auth($app['OneLogin_Saml2_Auth'], $this->tenant); |
86 | 86 | }); |
87 | 87 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | protected function setConfigDefaultValues(array &$config) |
97 | 97 | { |
98 | 98 | foreach ($this->configDefaultValues() as $key => $default) { |
99 | - if(!Arr::get($config, $key)) { |
|
99 | + if (!Arr::get($config, $key)) { |
|
100 | 100 | Arr::set($config, $key, $default); |
101 | 101 | } |
102 | 102 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | case 'unspecified': |
134 | 134 | return 'urn:oasis:names:tc:SAML:1.1:nameid-format:' . $format; |
135 | 135 | default: |
136 | - return 'urn:oasis:names:tc:SAML:2.0:nameid-format:'. $format; |
|
136 | + return 'urn:oasis:names:tc:SAML:2.0:nameid-format:' . $format; |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 | } |
140 | 140 | \ No newline at end of file |