@@ -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 | 'scope' => $this->scope, |
| 98 | 98 | ] |
| 99 | 99 | ); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | foreach ($userdata->getIterator() as $key => $value) { |
| 154 | 154 | if (is_string($value)) { |
| 155 | - $attributes['twitter.' . $key] = [$value]; |
|
| 155 | + $attributes['twitter.'.$key] = [$value]; |
|
| 156 | 156 | } else { |
| 157 | 157 | // Either the urls or the extra array |
| 158 | 158 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | |
| 161 | 161 | foreach ($userdata->urls as $key => $value) { |
| 162 | 162 | if (is_string($value)) { |
| 163 | - $attributes['twitter.' . $key] = [$value]; |
|
| 163 | + $attributes['twitter.'.$key] = [$value]; |
|
| 164 | 164 | } else { |
| 165 | 165 | // Something funky.. Maybe the API has changed? |
| 166 | 166 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | |
| 169 | 169 | foreach ($userdata->extra as $key => $value) { |
| 170 | 170 | if (is_string($value) || is_int($value)) { |
| 171 | - $attributes['twitter.' . $key] = [strval($value)]; |
|
| 171 | + $attributes['twitter.'.$key] = [strval($value)]; |
|
| 172 | 172 | } else { |
| 173 | 173 | // Something funky.. Maybe the API has changed? |
| 174 | 174 | } |