@@ -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(); |
@@ -3,6 +3,6 @@ |
||
| 3 | 3 | // Default root route |
| 4 | 4 | use Illuminate\Support\Facades\Config; |
| 5 | 5 | |
| 6 | -$router->any('/say-welcome', function () { |
|
| 6 | +$router->any('/say-welcome', function() { |
|
| 7 | 7 | return response()->json(['Welcome to ' . Config::get('api.name') . '.']); |
| 8 | 8 | }); |
@@ -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 | |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * VisitorsAuthentication constructor. |
| 32 | 32 | * |
| 33 | - * @param \Illuminate\Foundation\Application $app |
|
| 34 | 33 | * @param \Jenssegers\Agent\Agent $agent |
| 35 | 34 | * @param \App\Containers\User\Actions\RegisterVisitorUserAction $registerVisitorUserAction |
| 36 | 35 | */ |