@@ -18,9 +18,9 @@ |
||
18 | 18 | |
19 | 19 | // Create an Asset |
20 | 20 | $asset = AssetFactory::build( |
21 | - "$root/tests/video.mp4", // path to file of a Flysystem\File object |
|
22 | - 'My Video', // optional title |
|
23 | - 'This is an awesome video', // optional description |
|
21 | + "$root/tests/video.mp4", // path to file of a Flysystem\File object |
|
22 | + 'My Video', // optional title |
|
23 | + 'This is an awesome video', // optional description |
|
24 | 24 | ['test', 'asset-distributor'] // optional array of tags |
25 | 25 | ); |
26 | 26 | $asset->setVisibility('private'); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | // Check if session is present and if it was created for the same grant type |
22 | 22 | // i.e: if the grant type to create the session was `AUTHORIZATION` and the current grant type is |
23 | 23 | // `CLIENT_CREDENTIALS`, we don't want to call the API on behalf of another user. |
24 | - if (!empty($session) && isset($session['grant_type']) && ((int)$session['grant_type'] === $this->grantType)) { |
|
24 | + if (!empty($session) && isset($session['grant_type']) && ((int) $session['grant_type'] === $this->grantType)) { |
|
25 | 25 | if (!$forceRefresh && isset($session['access_token'])) { |
26 | 26 | if (!isset($session['expires']) || (time() < $session['expires'])) { |
27 | 27 | return $session['access_token']; |