@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | // Find authentication source |
66 | 66 | if (is_null($state) || !array_key_exists(TwitterSource::AUTHID, $state)) { |
67 | - throw new Error\BadRequest('No data in state for ' . TwitterSource::AUTHID); |
|
67 | + throw new Error\BadRequest('No data in state for '.TwitterSource::AUTHID); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | $sourceId = $state[TwitterSource::AUTHID]; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | if ($source === null) { |
76 | 76 | throw new Error\BadRequest( |
77 | - 'Could not find authentication source with id ' . var_export($sourceId, true) |
|
77 | + 'Could not find authentication source with id '.var_export($sourceId, true) |
|
78 | 78 | ); |
79 | 79 | } |
80 | 80 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $configObject = Configuration::loadFromArray( |
57 | 57 | $config, |
58 | - 'authsources[' . var_export($this->authId, true) . ']' |
|
58 | + 'authsources['.var_export($this->authId, true).']' |
|
59 | 59 | ); |
60 | 60 | |
61 | 61 | $this->key = $configObject->getString('key'); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | 'identifier' => $this->key, |
94 | 94 | 'secret' => $this->secret, |
95 | 95 | 'callback_uri' => Module::getModuleURL('authtwitter/linkback.php') |
96 | - . '?AuthState=' . $stateId . '&force_login=' . strval($this->force_login), |
|
96 | + . '?AuthState='.$stateId.'&force_login='.strval($this->force_login), |
|
97 | 97 | ] |
98 | 98 | ); |
99 | 99 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | |
152 | 152 | foreach ($userdata->getIterator() as $key => $value) { |
153 | 153 | if (is_string($value)) { |
154 | - $attributes['twitter.' . $key] = [$value]; |
|
154 | + $attributes['twitter.'.$key] = [$value]; |
|
155 | 155 | } else { |
156 | 156 | // Either the urls or the extra array |
157 | 157 | } |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | foreach ($userdata->urls as $key => $value) { |
161 | 161 | if (is_string($value)) { |
162 | - $attributes['twitter.' . $key] = [$value]; |
|
162 | + $attributes['twitter.'.$key] = [$value]; |
|
163 | 163 | } else { |
164 | 164 | // Something funky.. Maybe the API has changed? |
165 | 165 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | |
168 | 168 | foreach ($userdata->extra as $key => $value) { |
169 | 169 | if (is_string($value) || is_int($value)) { |
170 | - $attributes['twitter.' . $key] = [strval($value)]; |
|
170 | + $attributes['twitter.'.$key] = [strval($value)]; |
|
171 | 171 | } else { |
172 | 172 | // Something funky.. Maybe the API has changed? |
173 | 173 | } |