@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create(config('laravel-sso.brokerUserTable', 'broker_user'), function (Blueprint $table) { |
|
| 16 | + Schema::create(config('laravel-sso.brokerUserTable', 'broker_user'), function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | |
| 19 | 19 | $table->integer('user_id')->foreign('user_id')->references('id')->on('users'); |
@@ -8,11 +8,11 @@ |
||
| 8 | 8 | class BrokerUser extends Model |
| 9 | 9 | { |
| 10 | 10 | use SoftDeletes; |
| 11 | - /** |
|
| 12 | - * Get the table associated with the model. |
|
| 13 | - * |
|
| 14 | - * @return string |
|
| 15 | - */ |
|
| 11 | + /** |
|
| 12 | + * Get the table associated with the model. |
|
| 13 | + * |
|
| 14 | + * @return string |
|
| 15 | + */ |
|
| 16 | 16 | public function getTable() |
| 17 | 17 | { |
| 18 | 18 | return config('laravel-sso.brokerUserTable', 'broker_user'); |
@@ -106,9 +106,9 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $userInfo = $this->userInfo(); |
| 108 | 108 | $broker = $this->getBrokerDetail(); |
| 109 | - if(!empty($userInfo->id) && !empty($broker)) { |
|
| 109 | + if (!empty($userInfo->id) && !empty($broker)) { |
|
| 110 | 110 | $brokerUser = config('laravel-sso.brokersUserModel')::where('user_id', $userInfo->id)->where('broker_id', $broker->id)->first(); |
| 111 | - if(empty($brokerUser)) { |
|
| 111 | + if (empty($brokerUser)) { |
|
| 112 | 112 | return false; |
| 113 | 113 | } |
| 114 | 114 | } |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | protected function getBrokerSessionId() |
| 154 | 154 | { |
| 155 | 155 | $authorization = request()->header('Authorization', null); |
| 156 | - if ($authorization && strpos($authorization, 'Bearer') === 0) { |
|
| 156 | + if ($authorization && strpos($authorization, 'Bearer') === 0) { |
|
| 157 | 157 | return substr($authorization, 7); |
| 158 | 158 | } |
| 159 | 159 | |