@@ -125,21 +125,21 @@ public function __construct(array $info, array $config)
125125 * @return array|NULL The user's attributes, or NULL if the user isn't
126126 * authenticated.
127127 */
128- private function getUser ($ drupaluid ): ?array
128+ private function getUser ($ drupalUid ): ?array
129129 {
130- if (!empty ($ drupaluid )) {
130+ if (!empty ($ drupalUid )) {
131131 $ drupalHelper = new DrupalHelper ();
132- $ drupalHelper ->bootDrupal ($ this ->config ->getDrupalroot ());
132+ $ drupalHelper ->bootDrupal ($ this ->config ->getDrupalRoot ());
133133
134134 // Load the user object from Drupal.
135- $ drupaluser = User::load ($ drupaluid );
136- if ($ drupaluser ->isBlocked ()) {
135+ $ drupalUser = User::load ($ drupalUid );
136+ if ($ drupalUser ->isBlocked ()) {
137137 throw new Error ('NOACCESS ' );
138138 }
139139
140- $ requested_attributes = $ this ->config ->getAttributes ();
140+ $ requestedAttributes = $ this ->config ->getAttributes ();
141141
142- return $ drupalHelper ->getAttributes ($ drupaluser , $ requested_attributes );
142+ return $ drupalHelper ->getAttributes ($ drupalUser , $ requestedAttributes );
143143 }
144144
145145 return null ;
@@ -207,16 +207,16 @@ public function authenticate(array &$state): void
207207 * is also part of this module, but in a real example, this would likely be
208208 * the absolute URL of the login page for the site.
209209 */
210- $ authPage = $ this ->config ->getDrupalLoginURL ();
210+ $ authPage = $ this ->config ->getDrupalLoginUrl ();
211211
212212 /*
213213 * The redirect to the authentication page.
214214 *
215215 * Note the 'ReturnTo' parameter. This must most likely be replaced with
216216 * the real name of the parameter for the login page.
217217 */
218- $ HTTP = new HTTP ();
219- $ HTTP ->redirectTrustedURL ($ authPage , [
218+ $ http = new HTTP ();
219+ $ http ->redirectTrustedURL ($ authPage , [
220220 'ReturnTo ' => $ returnTo ,
221221 ]);
222222
@@ -322,13 +322,13 @@ public function logout(array &$state): void
322322 session_start ();
323323 }
324324
325- $ logout_url = $ this ->config ->getDrupalLogoutURL ();
325+ $ logoutUrl = $ this ->config ->getDrupalLogoutUrl ();
326326 $ parameters = [];
327327 if (!empty ($ state ['ReturnTo ' ])) {
328328 $ parameters ['ReturnTo ' ] = $ state ['ReturnTo ' ];
329329 }
330330
331- $ HTTP = new HTTP ();
332- $ HTTP ->redirectTrustedURL ($ logout_url , $ parameters );
331+ $ http = new HTTP ();
332+ $ http ->redirectTrustedURL ($ logoutUrl , $ parameters );
333333 }
334334}
0 commit comments