@@ -1,40 +1,40 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return array( |
4 | - # Account credentials from developer portal |
|
5 | - 'Account' => array( |
|
6 | - 'ClientId' => env('PAYPAL_ID'), |
|
7 | - 'ClientSecret' => env('PAYPAL_SECRET'), |
|
8 | - ), |
|
4 | + # Account credentials from developer portal |
|
5 | + 'Account' => array( |
|
6 | + 'ClientId' => env('PAYPAL_ID'), |
|
7 | + 'ClientSecret' => env('PAYPAL_SECRET'), |
|
8 | + ), |
|
9 | 9 | |
10 | - # Connection Information |
|
11 | - 'Http' => array( |
|
10 | + # Connection Information |
|
11 | + 'Http' => array( |
|
12 | 12 | 'ConnectionTimeOut' => 30, |
13 | - 'Retry' => 1, |
|
14 | - //'Proxy' => 'http://[username:password]@hostname[:port][/path]', |
|
15 | - ), |
|
13 | + 'Retry' => 1, |
|
14 | + //'Proxy' => 'http://[username:password]@hostname[:port][/path]', |
|
15 | + ), |
|
16 | 16 | |
17 | - # Service Configuration |
|
18 | - 'Service' => array( |
|
19 | - # For integrating with the live endpoint, |
|
20 | - # change the URL to https://api.paypal.com! |
|
21 | - 'EndPoint' => 'https://api.sandbox.paypal.com', |
|
22 | - ), |
|
17 | + # Service Configuration |
|
18 | + 'Service' => array( |
|
19 | + # For integrating with the live endpoint, |
|
20 | + # change the URL to https://api.paypal.com! |
|
21 | + 'EndPoint' => 'https://api.sandbox.paypal.com', |
|
22 | + ), |
|
23 | 23 | |
24 | 24 | |
25 | - # Logging Information |
|
26 | - 'Log' => array( |
|
27 | - //'LogEnabled' => true, |
|
25 | + # Logging Information |
|
26 | + 'Log' => array( |
|
27 | + //'LogEnabled' => true, |
|
28 | 28 | |
29 | - # When using a relative path, the log file is created |
|
30 | - # relative to the .php file that is the entry point |
|
31 | - # for this request. You can also provide an absolute |
|
32 | - # path here |
|
33 | - //'FileName' => '../PayPal.log', |
|
29 | + # When using a relative path, the log file is created |
|
30 | + # relative to the .php file that is the entry point |
|
31 | + # for this request. You can also provide an absolute |
|
32 | + # path here |
|
33 | + //'FileName' => '../PayPal.log', |
|
34 | 34 | |
35 | - # Logging level can be one of FINE, INFO, WARN or ERROR |
|
36 | - # Logging is most verbose in the 'FINE' level and |
|
37 | - # decreases as you proceed towards ERROR |
|
38 | - //'LogLevel' => 'FINE', |
|
39 | - ), |
|
35 | + # Logging level can be one of FINE, INFO, WARN or ERROR |
|
36 | + # Logging is most verbose in the 'FINE' level and |
|
37 | + # decreases as you proceed towards ERROR |
|
38 | + //'LogLevel' => 'FINE', |
|
39 | + ), |
|
40 | 40 | ); |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use App\Containers\Authorization\Tasks\AttachRoleTask; |
8 | 8 | use App\Containers\User\Actions\CreateUserAction; |
9 | 9 | use Dingo\Api\Http\Response as DingoAPIResponse; |
10 | - |
|
11 | 10 | use Illuminate\Http\Response; |
12 | 11 | use Illuminate\Http\UploadedFile; |
13 | 12 | use Illuminate\Support\Arr as LaravelArr; |
@@ -355,7 +355,7 @@ |
||
355 | 355 | */ |
356 | 356 | public function injectEndpointId($endpoint, $id) |
357 | 357 | { |
358 | - if(Config::get('hello.hash-id')){ |
|
358 | + if (Config::get('hello.hash-id')) { |
|
359 | 359 | $id = Hashids::encode($id); |
360 | 360 | } |
361 | 361 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | public $loggedInTestingUser; |
36 | 36 | |
37 | 37 | /** |
38 | - * @param $endpoint |
|
38 | + * @param string $endpoint |
|
39 | 39 | * @param string $verb |
40 | 40 | * @param array $data |
41 | 41 | * @param bool $protected |
@@ -51,7 +51,7 @@ |
||
51 | 51 | $repoName = ucfirst(strtolower($repoName)); |
52 | 52 | |
53 | 53 | // TODO: find a way to validate the repo! |
54 | - $process = new Process("rm -rf " . $ContainersPath . '/' .$repoName); |
|
54 | + $process = new Process("rm -rf " . $ContainersPath . '/' . $repoName); |
|
55 | 55 | $process->run(); |
56 | 56 | |
57 | 57 | if (!$process->isSuccessful()) { |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * @param $name |
34 | 34 | * @param $userId |
35 | 35 | * |
36 | - * @return \App\Containers\Application\Models\Application|mixed |
|
36 | + * @return Application |
|
37 | 37 | */ |
38 | 38 | public function run($name, $userId) |
39 | 39 | { |
@@ -15,8 +15,8 @@ |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | /** |
18 | - * @param \App\Containers\Application\UI\API\Requests\GenerateApplicationTokenRequest $request |
|
19 | - * @param \App\Containers\Application\Actions\GenerateApplicationTokenAction $action |
|
18 | + * @param CreateApplicationRequest $request |
|
19 | + * @param CreateApplicationWithTokenAction $action |
|
20 | 20 | * |
21 | 21 | * @return \Dingo\Api\Http\Response |
22 | 22 | */ |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * LoginAction constructor. |
29 | 29 | * |
30 | 30 | * @param \App\Containers\Authentication\Tasks\WebLoginTask $webLoginTask |
31 | - * @param \App\Containers\Authentication\Tasks\IsUserAdminTask $isUserAdminTask |
|
31 | + * @param IsUserAdminTask $isUserAdminTask |
|
32 | 32 | */ |
33 | 33 | public function __construct(WebLoginTask $webLoginTask, IsUserAdminTask $isUserAdminTask) |
34 | 34 | { |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace App\Containers\Payment\Tests\Unit; |
4 | 4 | |
5 | 5 | use App\Containers\Payment\Factories\PaymentsFactory; |
6 | -use App\Containers\Paypal\Tasks\CreatePaypalAccountObjectTask; |
|
7 | -use App\Containers\Paypal\Tasks\ChargeWithPaypalTask; |
|
8 | 6 | use App\Containers\Stripe\Tasks\CreateStripeAccountObjectTask; |
9 | 7 | use App\Containers\Stripe\Tasks\ChargeWithStripeTask; |
10 | 8 | use App\Port\Tests\PHPUnit\Abstracts\TestCase; |
@@ -21,10 +21,10 @@ |
||
21 | 21 | * SocialLoginAction constructor. |
22 | 22 | * |
23 | 23 | * @param \App\Containers\SocialAuth\Tasks\GetUserSocialProfileTask $getUserSocialProfileTask |
24 | - * @param \App\Containers\User\Tasks\FindSocialUserTask $findSocialUserTask |
|
25 | - * @param \App\Containers\User\Tasks\CreateUserBySocialProfileTask $createUserBySocialProfileTask |
|
24 | + * @param FindSocialUserTask $findSocialUserTask |
|
25 | + * @param CreateUserBySocialProfileTask $createUserBySocialProfileTask |
|
26 | 26 | * @param \App\Containers\SocialAuth\Tasks\UpdateUserSocialProfileTask $updateUserSocialProfileTask |
27 | - * @param \App\Containers\SocialAuth\Actions\ApiLoginThisUserObjectTask $apiLoginThisUserObjectTask |
|
27 | + * @param ApiLoginThisUserObjectTask $apiLoginThisUserObjectTask |
|
28 | 28 | */ |
29 | 29 | public function __construct( |
30 | 30 | GetUserSocialProfileTask $getUserSocialProfileTask, |
@@ -78,10 +78,10 @@ |
||
78 | 78 | // find if that user exist in our database |
79 | 79 | $user = $this->findSocialUserTask->run($provider, $socialUserProfile->id); |
80 | 80 | |
81 | - $tokenSecret = isset($socialUserProfile->tokenSecret) ? : null; |
|
82 | - $expiresIn = isset($socialUserProfile->expiresIn) ? : null; |
|
83 | - $refreshToken = isset($socialUserProfile->refreshToken) ? : null; |
|
84 | - $avatar_original = isset($socialUserProfile->avatar_original) ? : null; |
|
81 | + $tokenSecret = isset($socialUserProfile->tokenSecret) ?: null; |
|
82 | + $expiresIn = isset($socialUserProfile->expiresIn) ?: null; |
|
83 | + $refreshToken = isset($socialUserProfile->refreshToken) ?: null; |
|
84 | + $avatar_original = isset($socialUserProfile->avatar_original) ?: null; |
|
85 | 85 | |
86 | 86 | // if user not found then create new one |
87 | 87 | if (!$user) { |
@@ -4,8 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use App\Containers\SocialAuth\Actions\SocialLoginAction; |
6 | 6 | use App\Containers\SocialAuth\UI\API\Requests\ApiAuthenticateRequest; |
7 | -use App\Containers\SocialAuth\UI\API\Requests\AuthenticateCallbackRequest; |
|
8 | -use App\Containers\SocialAuth\UI\API\Requests\AuthenticateOneRequest; |
|
9 | 7 | use App\Containers\User\UI\API\Transformers\UserTransformer; |
10 | 8 | use App\Port\Controller\Abstracts\PortApiController; |
11 | 9 |