| @@ -159,8 +159,8 @@ discard block | ||
| 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 | ||
| 171 | 171 | | | 
| 172 | 172 | */ | 
| 173 | 173 | |
| 174 | -        'entityId' => env('SAML2_SP_ENTITYID',''), | |
| 174 | +        'entityId' => env('SAML2_SP_ENTITYID', ''), | |
| 175 | 175 | |
| 176 | 176 | /* | 
| 177 | 177 | |-------------------------------------------------------------------------- | 
| @@ -108,11 +108,11 @@ discard block | ||
| 108 | 108 | */ | 
| 109 | 109 | public function parseUserAttribute($samlAttribute = null, $propertyName = null) | 
| 110 | 110 |      { | 
| 111 | -        if(empty($samlAttribute)) { | |
| 111 | +        if (empty($samlAttribute)) { | |
| 112 | 112 | return null; | 
| 113 | 113 | } | 
| 114 | 114 | |
| 115 | -        if(empty($propertyName)) { | |
| 115 | +        if (empty($propertyName)) { | |
| 116 | 116 | return $this->getAttribute($samlAttribute); | 
| 117 | 117 | } | 
| 118 | 118 | |
| @@ -128,7 +128,7 @@ discard block | ||
| 128 | 128 | */ | 
| 129 | 129 | public function parseAttributes($attributes = []) | 
| 130 | 130 |      { | 
| 131 | -        foreach($attributes as $propertyName => $samlAttribute) { | |
| 131 | +        foreach ($attributes as $propertyName => $samlAttribute) { | |
| 132 | 132 | $this->parseUserAttribute($samlAttribute, $propertyName); | 
| 133 | 133 | } | 
| 134 | 134 | } | 
| @@ -156,7 +156,7 @@ | ||
| 156 | 156 | */ | 
| 157 | 157 | public function sls($retrieveParametersFromServer = false) | 
| 158 | 158 |      { | 
| 159 | -        $this->base->processSLO(false, null, $retrieveParametersFromServer, function () { | |
| 159 | +        $this->base->processSLO(false, null, $retrieveParametersFromServer, function() { | |
| 160 | 160 | event(new SignedOut()); | 
| 161 | 161 | }); | 
| 162 | 162 | |
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | Route::group([ | 
| 4 | 4 |      'prefix' => config('saml2.routesPrefix'), | 
| 5 | 5 |      'middleware' => config('saml2.routesMiddleware'), | 
| 6 | -], function () { | |
| 6 | +], function() { | |
| 7 | 7 |      Route::get('/logout', array( | 
| 8 | 8 | 'as' => 'saml.logout', | 
| 9 | 9 | 'uses' => 'Slides\Saml2\Http\Controllers\Saml2Controller@logout', | 
| @@ -43,16 +43,16 @@ | ||
| 43 | 43 | public function resolve() | 
| 44 | 44 |      { | 
| 45 | 45 |          foreach ($this->idpConfig as $key => $config) { | 
| 46 | -            if($key === 'default') { | |
| 46 | +            if ($key === 'default') { | |
| 47 | 47 | continue; | 
| 48 | 48 | } | 
| 49 | 49 | |
| 50 | -            if(strpos($config['url'], $this->referrer) !== false) { | |
| 50 | +            if (strpos($config['url'], $this->referrer) !== false) { | |
| 51 | 51 | return $config; | 
| 52 | 52 | } | 
| 53 | 53 | } | 
| 54 | 54 | |
| 55 | -        if(!$default = $this->retrieveDefaultIdP()) { | |
| 55 | +        if (!$default = $this->retrieveDefaultIdP()) { | |
| 56 | 56 |              throw new \InvalidArgumentException('Default IdP is not defined'); | 
| 57 | 57 | } | 
| 58 | 58 | |
| @@ -42,7 +42,7 @@ discard block | ||
| 42 | 42 | */ | 
| 43 | 43 | protected function bootRoutes() | 
| 44 | 44 |      { | 
| 45 | -        if($this->app['config']['saml2.useRoutes'] == true) { | |
| 45 | +        if ($this->app['config']['saml2.useRoutes'] == true) { | |
| 46 | 46 | include __DIR__ . '/Http/routes.php'; | 
| 47 | 47 | } | 
| 48 | 48 | } | 
| @@ -68,7 +68,7 @@ discard block | ||
| 68 | 68 |      { | 
| 69 | 69 | $this->registerAuthenticationHandler(); | 
| 70 | 70 | |
| 71 | -        $this->app->singleton('Slides\Saml2\Auth', function ($app) { | |
| 71 | +        $this->app->singleton('Slides\Saml2\Auth', function($app) { | |
| 72 | 72 | return new \Slides\Saml2\Auth($app['OneLogin_Saml2_Auth']); | 
| 73 | 73 | }); | 
| 74 | 74 | } | 
| @@ -80,7 +80,7 @@ discard block | ||
| 80 | 80 | */ | 
| 81 | 81 | protected function registerAuthenticationHandler() | 
| 82 | 82 |      { | 
| 83 | -        $this->app->singleton('OneLogin_Saml2_Auth', function ($app) { | |
| 83 | +        $this->app->singleton('OneLogin_Saml2_Auth', function($app) { | |
| 84 | 84 | $config = $app['config']['saml2']; | 
| 85 | 85 | |
| 86 | 86 | $this->setConfigDefaultValues($config); | 
| @@ -142,7 +142,7 @@ discard block | ||
| 142 | 142 | protected function setConfigDefaultValues(array &$config) | 
| 143 | 143 |      { | 
| 144 | 144 |          foreach ($this->configDefaultValues() as $key => $default) { | 
| 145 | -            if(!array_get($config, $key)) { | |
| 145 | +            if (!array_get($config, $key)) { | |
| 146 | 146 | array_set($config, $key, $default); | 
| 147 | 147 | } | 
| 148 | 148 | } |