Passed
Pull Request — master (#2)
by Tim
02:03
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
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         $configObject = Configuration::loadFromArray(
60 60
             $config,
61
-            'authsources[' . var_export($this->authId, true) . ']'
61
+            'authsources['.var_export($this->authId, true).']'
62 62
         );
63 63
 
64 64
         $this->key = $configObject->getString('key');
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             [
97 97
                 'identifier' => $this->key,
98 98
                 'secret' => $this->secret,
99
-                'callback_uri' => Module::getModuleURL('authtwitter/linkback.php') . '?AuthState=' . $stateId,
99
+                'callback_uri' => Module::getModuleURL('authtwitter/linkback.php').'?AuthState='.$stateId,
100 100
             ]
101 101
         );
102 102
 
@@ -151,9 +151,9 @@  discard block
 block discarded – undo
151 151
 var_dump($userdata);
152 152
 exit;
153 153
         $attributes = [];
154
-        $attributes['twitter_at_screen_name'] = ['@' . $userdata->uid];
155
-        $attributes['twitter_screen_n_realm'] = [$userdata->uid . '@twitter.com'];
156
-        $attributes['twitter_targetedID'] = ['http://twitter.com!' . $userdata->uid];
154
+        $attributes['twitter_at_screen_name'] = ['@'.$userdata->uid];
155
+        $attributes['twitter_screen_n_realm'] = [$userdata->uid.'@twitter.com'];
156
+        $attributes['twitter_targetedID'] = ['http://twitter.com!'.$userdata->uid];
157 157
 
158 158
         $state['Attributes'] = $attributes;
159 159
     }
Please login to merge, or discard this patch.