Passed
Pull Request — master (#2)
by Tim
02:20
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   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $configObject = Configuration::loadFromArray(
61 61
             $config,
62
-            'authsources[' . var_export($this->authId, true) . ']'
62
+            'authsources['.var_export($this->authId, true).']'
63 63
         );
64 64
 
65 65
         $this->key = $configObject->getString('key');
@@ -137,9 +137,9 @@  discard block
 block discarded – undo
137 137
         $state['token_credentials'] = serialize($tokenCredentials);
138 138
         $userdata = $server->getUserDetails($tokenCredentials);
139 139
 
140
-        $attributes['twitter_at_screen_name'] = ['@' . $userdata>uid];
141
-        $attributes['twitter_screen_n_realm'] = [$userdata->uid . '@twitter.com'];
142
-        $attributes['twitter_targetedID'] = ['http://twitter.com!' . $userdata->uid];
140
+        $attributes['twitter_at_screen_name'] = ['@'.$userdata > uid];
141
+        $attributes['twitter_screen_n_realm'] = [$userdata->uid.'@twitter.com'];
142
+        $attributes['twitter_targetedID'] = ['http://twitter.com!'.$userdata->uid];
143 143
 
144 144
         $state['Attributes'] = $attributes;
145 145
     }
Please login to merge, or discard this patch.