Completed
Branch develop (c24f26)
by
unknown
26:13
created
htdocs/includes/OAuth/OAuth2/Service/Yahoo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             throw new TokenResponseException('Unable to parse response.');
46 46
         } elseif (isset($data['error']))
47 47
         {
48
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
48
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
49 49
         }
50 50
 
51 51
         $token = new StdOAuth2Token();
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
     */
72 72
     protected function getExtraOAuthHeaders()
73 73
     {
74
-        $encodedCredentials = base64_encode($this->credentials->getConsumerId() . ':' . $this->credentials->getConsumerSecret());
75
-        return array('Authorization' => 'Basic ' . $encodedCredentials);
74
+        $encodedCredentials = base64_encode($this->credentials->getConsumerId().':'.$this->credentials->getConsumerSecret());
75
+        return array('Authorization' => 'Basic '.$encodedCredentials);
76 76
     }
77 77
 
78 78
 }
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth2/Service/Mailchimp.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         if (null === $data || !is_array($data)) {
63 63
             throw new TokenResponseException('Unable to parse response.');
64 64
         } elseif (isset($data['error'])) {
65
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
65
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
66 66
         }
67 67
 
68 68
         // Create token object.
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     protected function setBaseApiUri(StdOAuth2Token $token)
98 98
     {
99 99
         // Make request uri.
100
-        $endpoint = 'https://login.mailchimp.com/oauth2/metadata?oauth_token='. $token->getAccessToken();
100
+        $endpoint = 'https://login.mailchimp.com/oauth2/metadata?oauth_token='.$token->getAccessToken();
101 101
 
102 102
         // Grab meta data about the token.
103 103
         $response = $this->httpClient->retrieveResponse(new Uri($endpoint), array(), array(), 'GET');
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $meta = json_decode($response, true);
107 107
 
108 108
         // Set base api uri.
109
-        $this->baseApiUri = new Uri('https://'. $meta['dc'] .'.api.mailchimp.com/2.0/');
109
+        $this->baseApiUri = new Uri('https://'.$meta['dc'].'.api.mailchimp.com/2.0/');
110 110
 
111 111
         // Allow chaining.
112 112
         return $this;
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth2/Service/Amazon.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,9 +73,9 @@
 block discarded – undo
73 73
         if (null === $data || !is_array($data)) {
74 74
             throw new TokenResponseException('Unable to parse response.');
75 75
         } elseif (isset($data['error_description'])) {
76
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error_description'] . '"');
76
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error_description'].'"');
77 77
         } elseif (isset($data['error'])) {
78
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
78
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
79 79
         }
80 80
 
81 81
         $token = new StdOAuth2Token();
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth2/Service/Spotify.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         if (null === $data || !is_array($data)) {
75 75
             throw new TokenResponseException('Unable to parse response.');
76 76
         } elseif (isset($data['error'])) {
77
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
77
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
78 78
         }
79 79
 
80 80
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     protected function getExtraOAuthHeaders()
105 105
     {
106
-        return array('Authorization' => 'Basic ' .
107
-            base64_encode($this->credentials->getConsumerId() . ':' . $this->credentials->getConsumerSecret()));
106
+        return array('Authorization' => 'Basic '.
107
+            base64_encode($this->credentials->getConsumerId().':'.$this->credentials->getConsumerSecret()));
108 108
     }
109 109
 }
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth2/Service/WordPress.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,9 +86,9 @@
 block discarded – undo
86 86
 		$data = json_decode($responseBody, true);
87 87
 
88 88
 		if (null === $data || !is_array($data)) {
89
-			throw new TokenResponseException('Unable to parse response: "'.(isset($responseBody)?$responseBody:'NULL').'"');
89
+			throw new TokenResponseException('Unable to parse response: "'.(isset($responseBody) ? $responseBody : 'NULL').'"');
90 90
 		} elseif (isset($data['error'])) {
91
-			throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '" : "'.$data['error_description'].'"');
91
+			throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'" : "'.$data['error_description'].'"');
92 92
 		}
93 93
 
94 94
 		$token = new StdOAuth2Token();
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth2/Service/EveOnline.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function getAuthorizationEndpoint()
43 43
     {
44
-        return new Uri($this->baseApiUri . '/oauth/authorize');
44
+        return new Uri($this->baseApiUri.'/oauth/authorize');
45 45
     }
46 46
 
47 47
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function getAccessTokenEndpoint()
52 52
     {
53
-        return new Uri($this->baseApiUri . '/oauth/token');
53
+        return new Uri($this->baseApiUri.'/oauth/token');
54 54
     }
55 55
 
56 56
     /**
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
         if (null === $data || !is_array($data)) {
69 69
             throw new TokenResponseException('Unable to parse response.');
70 70
         } elseif (isset($data['error_description'])) {
71
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error_description'] . '"');
71
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error_description'].'"');
72 72
         } elseif (isset($data['error'])) {
73
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
73
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
74 74
         }
75 75
 
76 76
         $token = new StdOAuth2Token();
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth2/Service/Buffer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
         if ($data === null || !is_array($data)) {
137 137
             throw new TokenResponseException('Unable to parse response.');
138 138
         } elseif (isset($data['error'])) {
139
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
139
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
140 140
         }
141 141
 
142 142
         $token = new StdOAuth2Token();
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth2/Service/Reddit.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         if (null === $data || !is_array($data)) {
83 83
             throw new TokenResponseException('Unable to parse response.');
84 84
         } elseif (isset($data['error'])) {
85
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
85
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
86 86
         }
87 87
 
88 88
         $token = new StdOAuth2Token();
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     protected function getExtraOAuthHeaders()
109 109
     {
110 110
         // Reddit uses a Basic OAuth header
111
-        return array('Authorization' => 'Basic ' .
112
-            base64_encode($this->credentials->getConsumerId() . ':' . $this->credentials->getConsumerSecret()));
111
+        return array('Authorization' => 'Basic '.
112
+            base64_encode($this->credentials->getConsumerId().':'.$this->credentials->getConsumerSecret()));
113 113
     }
114 114
 }
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth2/Service/Strava.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function getAuthorizationEndpoint()
73 73
     {
74
-        return new Uri('https://www.strava.com/oauth/authorize?approval_prompt=' . $this->approvalPrompt);
74
+        return new Uri('https://www.strava.com/oauth/authorize?approval_prompt='.$this->approvalPrompt);
75 75
     }
76 76
 
77 77
     /**
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
             throw new TokenResponseException('Unable to parse response.');
102 102
         } elseif (isset($data['error_description'])) {
103 103
             throw new TokenResponseException(
104
-                'Error in retrieving token: "' . $data['error_description'] . '"'
104
+                'Error in retrieving token: "'.$data['error_description'].'"'
105 105
             );
106 106
         } elseif (isset($data['error'])) {
107 107
             throw new TokenResponseException(
108
-                'Error in retrieving token: "' . $data['error'] . '"'
108
+                'Error in retrieving token: "'.$data['error'].'"'
109 109
             );
110 110
         }
111 111
 
Please login to merge, or discard this patch.