@@ -8,9 +8,9 @@ |
||
8 | 8 | { |
9 | 9 | protected function accessTokenMiddleware() |
10 | 10 | { |
11 | - $this->client->middleware->add('access_token', (new MergeQuery(function () { |
|
11 | + $this->client->middleware->add('access_token', (new MergeQuery(function() { |
|
12 | 12 | return ['access_token' => $this->app->access_token->get()['access_token']]; |
13 | - }))->ignoreWhen(function ($request) { |
|
13 | + }))->ignoreWhen(function($request) { |
|
14 | 14 | return $request->getUri()->getPath() === '/gettoken'; |
15 | 15 | })); |
16 | 16 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $this->accessTokenMiddleware(); |
31 | 31 | |
32 | - $this->education = function () { |
|
32 | + $this->education = function() { |
|
33 | 33 | return new Education\Application($this->config->all()); |
34 | 34 | }; |
35 | 35 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function get() |
13 | 13 | { |
14 | - return $this->cache->remember(md5(json_encode($this->credentials())), 7000, function () { |
|
14 | + return $this->cache->remember(md5(json_encode($this->credentials())), 7000, function() { |
|
15 | 15 | return $this->refresh(); |
16 | 16 | }); |
17 | 17 | } |