@@ -27,7 +27,7 @@ |
||
27 | 27 | * @param $email |
28 | 28 | * @param $password |
29 | 29 | * |
30 | - * @return mixed |
|
30 | + * @return string |
|
31 | 31 | */ |
32 | 32 | public function run(User $user) |
33 | 33 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @param \App\Containers\User\Models\User $user |
19 | - * @param $confirmationUrl |
|
19 | + * @param string $confirmationUrl |
|
20 | 20 | */ |
21 | 21 | public function run(User $user, $confirmationUrl) |
22 | 22 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param \App\Containers\User\Models\User $user |
26 | - * @param $amount |
|
26 | + * @param integer $amount |
|
27 | 27 | * @param string $currency |
28 | 28 | * |
29 | 29 | * @return mixed |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use App\Containers\Payments\Contracts\Chargeable; |
9 | 9 | use App\Containers\Payments\Exceptions\ObjectNonChargeableException; |
10 | 10 | use App\Containers\Payments\Exceptions\PaymentMethodNotFoundException; |
11 | -use App\Containers\Payments\Exceptions\UserNotSetInThePaymentServiceException; |
|
12 | 11 | use Illuminate\Support\Facades\App; |
13 | 12 | |
14 | 13 | /** |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use App\Containers\Stripe\Repositories\Eloquent\StripeAccountRepository; |
7 | 7 | use App\Containers\User\Models\User; |
8 | 8 | use App\Port\Action\Abstracts\Action; |
9 | -use Auth; |
|
10 | 9 | |
11 | 10 | /** |
12 | 11 | * Class CreateStripeAccountAction. |
@@ -24,7 +24,6 @@ discard block |
||
24 | 24 | * CreateUserAction constructor. |
25 | 25 | * |
26 | 26 | * @param \App\Containers\User\Contracts\UserRepositoryInterface $userRepository |
27 | - * @param \App\Containers\ApiAuthentication\Services\ApiAuthenticationService $authenticationService |
|
28 | 27 | */ |
29 | 28 | public function __construct( |
30 | 29 | UserRepositoryInterface $userRepository |
@@ -39,7 +38,6 @@ discard block |
||
39 | 38 | * @param $email |
40 | 39 | * @param $password |
41 | 40 | * @param $name |
42 | - * @param bool $login determine weather to login or not after creating |
|
43 | 41 | * |
44 | 42 | * @return mixed |
45 | 43 | */ |
@@ -37,7 +37,6 @@ |
||
37 | 37 | /** |
38 | 38 | * MailsAbstract constructor. |
39 | 39 | * |
40 | - * @param \Illuminate\Mail\Mailer $mail |
|
41 | 40 | */ |
42 | 41 | public function __construct() |
43 | 42 | { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | // check if sending emails is enabled and if this is not running a testing environment |
59 | 59 | if (Config::get('mail.enabled')) { |
60 | - Mail::queue('EmailTemplates.' . $this->template, $data, function ($m) { |
|
60 | + Mail::queue('EmailTemplates.' . $this->template, $data, function($m) { |
|
61 | 61 | $m->from($this->fromEmail, $this->fromName); |
62 | 62 | $m->to($this->toEmail, $this->toName) |
63 | 63 | ->subject($this->subject); |
@@ -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 |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace App\Port\Provider\Traits; |
4 | 4 | |
5 | 5 | use App; |
6 | -use DB; |
|
7 | -use Log; |
|
8 | 6 | |
9 | 7 | /** |
10 | 8 | * Class AutoRegisterServiceProvidersTrait. |
@@ -47,6 +47,7 @@ |
||
47 | 47 | * By default Laravel takes (server/database/factories) as the |
48 | 48 | * path to the factories, this function changes the path to load |
49 | 49 | * the factories from the infrastructure directory. |
50 | + * @param string $customPath |
|
50 | 51 | */ |
51 | 52 | public function changeTheDefaultDatabaseModelsFactoriesPath($customPath) |
52 | 53 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | if (Config::get('database.query_debugging')) { |
29 | 29 | // TODO: might not work in laravel 5.2 - check the events section of the upgrading giud and test it |
30 | - DB::listen(function ($query, $bindings, $time, $connection) use ($terminal, $log) { |
|
30 | + DB::listen(function($query, $bindings, $time, $connection) use ($terminal, $log) { |
|
31 | 31 | $fullQuery = vsprintf(str_replace(['%', '?'], ['%%', '%s'], $query), $bindings); |
32 | 32 | |
33 | 33 | $text = $connection . ' (' . $time . '): ' . $fullQuery; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function changeTheDefaultDatabaseModelsFactoriesPath($customPath) |
52 | 52 | { |
53 | - $this->app->singleton(\Illuminate\Database\Eloquent\Factory::class, function ($app) use ($customPath) { |
|
53 | + $this->app->singleton(\Illuminate\Database\Eloquent\Factory::class, function($app) use ($customPath) { |
|
54 | 54 | $faker = $app->make(\Faker\Generator::class); |
55 | 55 | |
56 | 56 | return \Illuminate\Database\Eloquent\Factory::construct($faker, base_path() . $customPath); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $allServiceProviders[] = PortButler::buildMainServiceProvider($containersNamespace, $containerName); |
82 | 82 | } |
83 | 83 | |
84 | - return array_unique($allServiceProviders) ? : []; |
|
84 | + return array_unique($allServiceProviders) ?: []; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | // if DataArray `\League\Fractal\Serializer\DataArraySerializer` do noting since it's set by default by the Dingo API |
103 | 103 | if ($serializerName !== 'DataArray') { |
104 | - app('Dingo\Api\Transformer\Factory')->setAdapter(function () use ($serializerName) { |
|
104 | + app('Dingo\Api\Transformer\Factory')->setAdapter(function() use ($serializerName) { |
|
105 | 105 | switch ($serializerName) { |
106 | 106 | case 'JsonApi': |
107 | 107 | $serializer = new \League\Fractal\Serializer\JsonApiSerializer(Config::get('api.domain')); |