@@ -40,7 +40,7 @@ |
||
| 40 | 40 | /** |
| 41 | 41 | * Exception constructor. |
| 42 | 42 | * |
| 43 | - * @param null $message |
|
| 43 | + * @param string $message |
|
| 44 | 44 | * @param null $errors |
| 45 | 45 | * @param null $statusCode |
| 46 | 46 | * @param int $code |
@@ -37,6 +37,6 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function apply($model, PrettusRepositoryInterface $repository) |
| 39 | 39 | { |
| 40 | - return DB::table($model->getModel()->getTable())->select('*', DB::raw('count('.$this->field.') as total_count'))->groupBy($this->field); |
|
| 40 | + return DB::table($model->getModel()->getTable())->select('*', DB::raw('count(' . $this->field . ') as total_count'))->groupBy($this->field); |
|
| 41 | 41 | } |
| 42 | 42 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function up() |
| 20 | 20 | { |
| 21 | - Schema::create('paypal_accounts', function (Blueprint $table) { |
|
| 21 | + Schema::create('paypal_accounts', function(Blueprint $table) { |
|
| 22 | 22 | $table->increments('id'); |
| 23 | 23 | |
| 24 | 24 | $table->string('some_id'); |
@@ -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(); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up() |
| 13 | 13 | { |
| 14 | - Schema::create('settings', function (Blueprint $table) { |
|
| 14 | + Schema::create('settings', function(Blueprint $table) { |
|
| 15 | 15 | $table->increments('id'); |
| 16 | 16 | $table->string('key')->unique(); |
| 17 | 17 | $table->string('value'); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $user = $this->registerAndLoginTestingUser($userDetails); |
| 26 | 26 | |
| 27 | 27 | $data = [ |
| 28 | - // TODO: To Be Continue... |
|
| 28 | + // TODO: To Be Continue... |
|
| 29 | 29 | ]; |
| 30 | 30 | |
| 31 | 31 | // send the HTTP request |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * @param \App\Containers\Email\UI\API\Requests\SetEmailRequest $request |
|
| 20 | + * @param SetUserEmailRequest $request |
|
| 21 | 21 | * @param \App\Containers\Email\Actions\SetUserEmailWithConfirmationAction $action |
| 22 | 22 | * |
| 23 | 23 | * @return \Dingo\Api\Http\Response |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * |
| 32 | 32 | * @param \App\Containers\User\Tasks\FindUserByVisitorIdTask $findUserByVisitorIdTask |
| 33 | 33 | * @param \App\Containers\User\Tasks\FindUserByIdTask $findUserByIdTask |
| 34 | - * @param \App\Containers\User\Tasks\GetAuthenticatedUserTask $getAuthenticatedUserTask |
|
| 34 | + * @param GetAuthenticatedUserTask $getAuthenticatedUserTask |
|
| 35 | 35 | */ |
| 36 | 36 | public function __construct( |
| 37 | 37 | FindUserByVisitorIdTask $findUserByVisitorIdTask, |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | public function run($email, $userId = null) |
| 67 | 67 | { |
| 68 | - if(!$userId){ |
|
| 68 | + if (!$userId) { |
|
| 69 | 69 | $userId = $this->getAuthenticatedUserTask->run()->id; |
| 70 | 70 | } |
| 71 | 71 | |