Completed
Pull Request — master (#17)
by
unknown
03:15
created
src/HttpPlayback/HttpPlayback.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 
21 21
     private $shutdownRegistered = false;
22 22
 
23
-    private static $instances = [ ];
23
+    private static $instances = [];
24 24
 
25 25
     /**
26 26
      * @var Client
27 27
      */
28 28
     private $client;
29 29
 
30
-    public static function getInstance($options = [ ])
30
+    public static function getInstance($options = [])
31 31
     {
32 32
         foreach (self::$instances as $instance) {
33 33
             if ($instance['options'] == $options) {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             $dirPos = strrpos($dir, "src/API");
120 120
             $dir = substr($dir, 0, $dirPos);
121 121
 
122
-            $this->recordLocation = $dir . 'Resources/recordings/';
122
+            $this->recordLocation = $dir.'Resources/recordings/';
123 123
         }
124 124
 
125 125
         return $this->recordLocation;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 
128 128
     public function getRecordFilePath()
129 129
     {
130
-        $path = $this->getRecordLocation() . $this->recordFileName;
130
+        $path = $this->getRecordLocation().$this->recordFileName;
131 131
         $path = str_replace("\\", "/", $path);
132 132
         return $path;
133 133
     }
Please login to merge, or discard this patch.
examples/basic/authenticatingWithOAuth.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
 //should have your own way to get it, but just for the sake of example I'm going to show you a way to do that
24 24
 
25 25
 if (!$_SESSION['token'] && !isset($_GET)) {
26
-    $redirect = $authorizationEndpoint .
27
-        '?response_type=code' .
28
-        '&client_id=' . urlencode($clientId) .
29
-        '&redirect_uri=' . urlencode($redirectUri) .
30
-        '&resource=' . urlencode($resource) .
31
-        '&scope=' . urlencode('full_access_as_user');
26
+    $redirect = $authorizationEndpoint.
27
+        '?response_type=code'.
28
+        '&client_id='.urlencode($clientId).
29
+        '&redirect_uri='.urlencode($redirectUri).
30
+        '&resource='.urlencode($resource).
31
+        '&scope='.urlencode('full_access_as_user');
32 32
     header("Location: {$redirect}");
33 33
     exit();
34 34
 }
Please login to merge, or discard this patch.