@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function register() |
37 | 37 | { |
38 | - $this->mergeConfigFrom(__DIR__ . '/../../config/clickup.php', 'clickup'); |
|
38 | + $this->mergeConfigFrom(__DIR__.'/../../config/clickup.php', 'clickup'); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -57,18 +57,18 @@ discard block |
||
57 | 57 | protected function registerPublishes() |
58 | 58 | { |
59 | 59 | if ($this->app->runningInConsole()) { |
60 | - $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations'); |
|
60 | + $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); |
|
61 | 61 | |
62 | 62 | $this->publishes( |
63 | 63 | [ |
64 | - __DIR__ . '/../../config/clickup.php' => config_path('clickup.php'), |
|
64 | + __DIR__.'/../../config/clickup.php' => config_path('clickup.php'), |
|
65 | 65 | ], |
66 | 66 | 'clickup-config' |
67 | 67 | ); |
68 | 68 | |
69 | 69 | $this->publishes( |
70 | 70 | [ |
71 | - __DIR__ . '/../../database/migrations' => database_path('migrations'), |
|
71 | + __DIR__.'/../../database/migrations' => database_path('migrations'), |
|
72 | 72 | ], |
73 | 73 | 'clickup-migrations' |
74 | 74 | ); |
@@ -86,8 +86,8 @@ discard block |
||
86 | 86 | 'namespace' => 'Spinen\ClickUp\Http\Controllers', |
87 | 87 | 'middleware' => Config::get('clickup.route.middleware', ['web']), |
88 | 88 | ], |
89 | - function () { |
|
90 | - $this->loadRoutesFrom(realpath(__DIR__ . '/../../routes/web.php')); |
|
89 | + function() { |
|
90 | + $this->loadRoutesFrom(realpath(__DIR__.'/../../routes/web.php')); |
|
91 | 91 | } |
92 | 92 | ); |
93 | 93 | } |
@@ -105,8 +105,8 @@ discard block |
||
105 | 105 | ], |
106 | 106 | ] |
107 | 107 | ) |
108 | - ->getBody() |
|
109 | - ->getContents(), |
|
108 | + ->getBody() |
|
109 | + ->getContents(), |
|
110 | 110 | true |
111 | 111 | )['access_token']; |
112 | 112 | } catch (GuzzleException $e) { |
@@ -197,8 +197,8 @@ discard block |
||
197 | 197 | 'body' => json_encode($data), |
198 | 198 | ] |
199 | 199 | ) |
200 | - ->getBody() |
|
201 | - ->getContents(), |
|
200 | + ->getBody() |
|
201 | + ->getContents(), |
|
202 | 202 | true |
203 | 203 | ); |
204 | 204 | } catch (GuzzleException $e) { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function oauthRequestTokenUsingCode($code): string |
88 | 88 | { |
89 | - $path = 'oauth/token?' . http_build_query( |
|
89 | + $path = 'oauth/token?'.http_build_query( |
|
90 | 90 | [ |
91 | 91 | 'client_id' => $this->configs['oauth']['id'], |
92 | 92 | 'client_secret' => $this->configs['oauth']['secret'], |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | public function oauthUri($url): string |
128 | 128 | { |
129 | 129 | return $this->uri( |
130 | - '?' . http_build_query( |
|
130 | + '?'.http_build_query( |
|
131 | 131 | [ |
132 | 132 | 'client_id' => $this->configs['oauth']['id'], |
133 | 133 | 'redirect_uri' => $url, |
@@ -250,6 +250,6 @@ discard block |
||
250 | 250 | */ |
251 | 251 | public function uri($path = null, $url = null): string |
252 | 252 | { |
253 | - return rtrim(($url ?: $this->configs['url']), '/') . ($path [0] === '?' ? null : '/') . ltrim($path, '/'); |
|
253 | + return rtrim(($url ?: $this->configs['url']), '/').($path [0] === '?' ? null : '/').ltrim($path, '/'); |
|
254 | 254 | } |
255 | 255 | } |
@@ -4,4 +4,4 @@ |
||
4 | 4 | use Illuminate\Support\Facades\Route; |
5 | 5 | |
6 | 6 | Route::get(rtrim(Config::get('clickup.route.sso', '/clickup/sso'), '/') . '/{user}', 'ClickUpController@processCode') |
7 | - ->name('clickup.sso.redirect_url'); |
|
7 | + ->name('clickup.sso.redirect_url'); |
@@ -3,5 +3,5 @@ |
||
3 | 3 | use Illuminate\Support\Facades\Config; |
4 | 4 | use Illuminate\Support\Facades\Route; |
5 | 5 | |
6 | -Route::get(rtrim(Config::get('clickup.route.sso', '/clickup/sso'), '/') . '/{user}', 'ClickUpController@processCode') |
|
6 | +Route::get(rtrim(Config::get('clickup.route.sso', '/clickup/sso'), '/').'/{user}', 'ClickUpController@processCode') |
|
7 | 7 | ->name('clickup.sso.redirect_url'); |