@@ -73,7 +73,7 @@ |
||
| 73 | 73 | public function test_token_is_valid() |
| 74 | 74 | { |
| 75 | 75 | $succToken = $this->getGenerateToken(); |
| 76 | - $failToken = '123456'; |
|
| 76 | + $failToken = '123456'; |
|
| 77 | 77 | |
| 78 | 78 | echo $succToken; |
| 79 | 79 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function boot(Router $router) |
| 19 | 19 | { |
| 20 | - if( function_exists('config_path') ) { |
|
| 20 | + if (function_exists('config_path')) { |
|
| 21 | 21 | $this->publishes([ |
| 22 | 22 | __DIR__ . '/../config/apikey.php' => config_path('apikey.php'), |
| 23 | 23 | ], 'config'); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $name = $appClient->name; |
| 58 | 58 | |
| 59 | 59 | $options = $this->options(); |
| 60 | - $options = Arr::where($options, function ($option) { |
|
| 60 | + $options = Arr::where($options, function($option) { |
|
| 61 | 61 | if ($option) { |
| 62 | 62 | return $option; |
| 63 | 63 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | $headers = ['AppName', 'AppId', 'Secret', 'Status', 'CreateAt']; |
| 51 | 51 | |
| 52 | - $rows = $lists->map(function ($list) { |
|
| 52 | + $rows = $lists->map(function($list) { |
|
| 53 | 53 | $status = $list->active ? 'active' : 'deactivated'; |
| 54 | 54 | $status = $list->trashed() ? 'deleted' : $status; |
| 55 | 55 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('api_auth_access_events', function (Blueprint $table) { |
|
| 16 | + Schema::create('api_auth_access_events', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('appid')->comment('Appid'); |
| 19 | 19 | $table->ipAddress('ip_address')->comment('IP'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('api_auth_oprate_events', function (Blueprint $table) { |
|
| 16 | + Schema::create('api_auth_oprate_events', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->unsignedInteger('app_client_id'); |
| 19 | 19 | $table->ipAddress('ip_address'); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function up() |
| 16 | 16 | { |
| 17 | - Schema::create('app_clients', function (Blueprint $table) { |
|
| 17 | + Schema::create('app_clients', function(Blueprint $table) { |
|
| 18 | 18 | $table->increments('id'); |
| 19 | 19 | $table->string('name')->comment('AppName'); |
| 20 | 20 | $table->string('appid')->comment('Appid'); |