Passed
Pull Request — master (#2)
by Tim
02:37
created
lib/Controller/Twitter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Auth/Source/Twitter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
@@ -147,9 +147,9 @@  discard block
 block discarded – undo
147 147
         $userdata = $server->getUserDetails($tokenCredentials);
148 148
 
149 149
         $attributes = [];
150
-        $attributes['twitter_at_screen_name'] = ['@' . $userdata->nickname];
151
-        $attributes['twitter_screen_n_realm'] = [$userdata->nicmname . '@twitter.com'];
152
-        $attributes['twitter_targetedID'] = ['http://twitter.com!' . $userdata->uid];
150
+        $attributes['twitter_at_screen_name'] = ['@'.$userdata->nickname];
151
+        $attributes['twitter_screen_n_realm'] = [$userdata->nicmname.'@twitter.com'];
152
+        $attributes['twitter_targetedID'] = ['http://twitter.com!'.$userdata->uid];
153 153
 
154 154
         $state['Attributes'] = $attributes;
155 155
     }
Please login to merge, or discard this patch.