@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up() |
| 13 | 13 | { |
| 14 | - Schema::create('users', function (Blueprint $table) { |
|
| 14 | + Schema::create('users', function(Blueprint $table) { |
|
| 15 | 15 | $table->increments('id'); |
| 16 | 16 | $table->string('name'); |
| 17 | 17 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up() |
| 13 | 13 | { |
| 14 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 14 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 15 | 15 | $table->string('email')->index(); |
| 16 | 16 | $table->string('token')->index(); |
| 17 | 17 | $table->timestamp('created_at'); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function up() |
| 20 | 20 | { |
| 21 | - Schema::create('stripe_accounts', function (Blueprint $table) { |
|
| 21 | + Schema::create('stripe_accounts', function(Blueprint $table) { |
|
| 22 | 22 | $table->increments('id'); |
| 23 | 23 | $table->string('customer_id'); |
| 24 | 24 | $table->string('card_id')->nullable(); |
@@ -38,9 +38,8 @@ |
||
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * @param $agentId |
| 41 | - * @param null $platform |
|
| 42 | - * @param null $device |
|
| 43 | - * @param bool|false $login |
|
| 41 | + * @param string $platform |
|
| 42 | + * @param string $device |
|
| 44 | 43 | * |
| 45 | 44 | * @return mixed |
| 46 | 45 | */ |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | { |
| 49 | 49 | $user = $this->findUserService->byAgentId($agentId); |
| 50 | 50 | |
| 51 | - if(!$user){ |
|
| 51 | + if (!$user) { |
|
| 52 | 52 | $user = $this->createUserService->byAgent($agentId, $device, $platform); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -32,7 +32,6 @@ |
||
| 32 | 32 | * @param $agentId |
| 33 | 33 | * @param null $platform |
| 34 | 34 | * @param null $device |
| 35 | - * @param bool|false $login |
|
| 36 | 35 | * |
| 37 | 36 | * @return mixed |
| 38 | 37 | */ |