@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function send($data = []) |
63 | 63 | { |
64 | - if(!$this->fromEmail || !$this->toEmail){ |
|
64 | + if (!$this->fromEmail || !$this->toEmail) { |
|
65 | 65 | throw new EmailIsMissedException(); |
66 | 66 | } |
67 | 67 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | // check if sending emails is enabled and if this is not running a testing environment |
71 | 71 | if (Config::get('mail.enabled')) { |
72 | 72 | |
73 | - Mail::queue('EmailTemplates.' . $this->template, $data, function ($m) { |
|
73 | + Mail::queue('EmailTemplates.' . $this->template, $data, function($m) { |
|
74 | 74 | $m->from($this->fromEmail, $this->fromName); |
75 | 75 | $m->to($this->toEmail, $this->toName) |
76 | 76 | ->subject($this->subject); |
@@ -79,7 +79,7 @@ |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * @param $subject |
|
82 | + * @param string $subject |
|
83 | 83 | */ |
84 | 84 | public function setSubject($subject) |
85 | 85 | { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $locale = $request->header('Content-Language'); |
39 | 39 | |
40 | 40 | // if the header is missed |
41 | - if(!$locale){ |
|
41 | + if (!$locale) { |
|
42 | 42 | // take the default local language |
43 | 43 | $locale = $this->app->config->get('app.locale'); |
44 | 44 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | throw (new MissingVisitorIdException()); |
42 | 42 | } |
43 | 43 | |
44 | - if($skipCriterias){ |
|
44 | + if ($skipCriterias) { |
|
45 | 45 | $this->userRepository = $this->userRepository->skipCriteria(); |
46 | 46 | } |
47 | 47 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function register() |
20 | 20 | { |
21 | - $this->app->bind('PortButler', function () { |
|
21 | + $this->app->bind('PortButler', function() { |
|
22 | 22 | return $this->app->make(PortButler::class); |
23 | 23 | }); |
24 | 24 | } |
@@ -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 | ); |
@@ -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 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * DefaultUsersSeeder constructor. |
20 | 20 | * |
21 | - * @param \App\Containers\Authorization\Data\Seeders\GetRoleTask $getRoleTask |
|
21 | + * @param GetRoleTask $getRoleTask |
|
22 | 22 | */ |
23 | 23 | public function __construct(GetRoleTask $getRoleTask) |
24 | 24 | { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | | |
65 | 65 | */ |
66 | 66 | |
67 | - 'user' => env('USER_NAMESPACE').'User', |
|
67 | + 'user' => env('USER_NAMESPACE') . 'User', |
|
68 | 68 | |
69 | 69 | /* |
70 | 70 | |-------------------------------------------------------------------------- |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -$router->group(['domain' => 'admin.'. env('APP_URL')], function ($router) { |
|
2 | +$router->group(['domain' => 'admin.' . env('APP_URL')], function($router) { |
|
3 | 3 | |
4 | 4 | $router->get('/', [ |
5 | 5 | 'uses' => 'Controller@showLoginPage', |