Passed
Push — v2 ( f0d2ea...bc11dc )
by Brice
02:44
created
src/Dailymotion/Dailymotion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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'];
Please login to merge, or discard this patch.
example/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
 
26 26
 // Create an Asset
27 27
 $asset = AssetFactory::build(
28
-    "$root/tests/video.mp4",        // path to file, or a Flysystem\File object
29
-    'My Video',                     // optional title
30
-    'This is an awesome video',     // optional description
28
+    "$root/tests/video.mp4", // path to file, or a Flysystem\File object
29
+    'My Video', // optional title
30
+    'This is an awesome video', // optional description
31 31
     ['test', 'asset-distributor']   // optional array of tags
32 32
 );
33
-$asset->setVisibility('private');   // Make video private (public by default)
33
+$asset->setVisibility('private'); // Make video private (public by default)
34 34
 
35 35
 // Create a collection of Adapters that will manage the Asset with Owner credentials
36 36
 $adapters = new AdapterCollection;
Please login to merge, or discard this patch.