From d5ea7b4f80fea974b312f3842231e40d3eb43e02 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 11 Feb 2020 12:09:15 -0500 Subject: [PATCH] More whitespace cleanup. --- module/VuFind/src/VuFind/ILS/Driver/Folio.php | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Folio.php b/module/VuFind/src/VuFind/ILS/Driver/Folio.php index 5dae53d85ea..76d73a30c86 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Folio.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Folio.php @@ -467,33 +467,33 @@ class Folio extends AbstractAPI implements } $profile = $json->users[0]; $credentials = [ - 'userId' => $profile->id, - 'username' => $username, - 'password' => $password, - ]; + 'userId' => $profile->id, + 'username' => $username, + 'password' => $password, + ]; // Get token try { $response = $this->makeRequest( - 'POST', - '/authn/login', - json_encode($credentials) - ); + 'POST', + '/authn/login', + json_encode($credentials) + ); // Replace admin with user as tenant $this->token = $response->getHeaders()->get('X-Okapi-Token') - ->getFieldValue(); + ->getFieldValue(); $this->debug( - 'User logged in. User: ' . $username . '.' . + 'User logged in. User: ' . $username . '.' . ' Token: ' . substr($this->token, 0, 30) . '...' - ); + ); return [ - 'id' => $profile->id, - 'username' => $username, - 'cat_username' => $username, - 'cat_password' => $password, - 'firstname' => $profile->personal->firstName ?? null, - 'lastname' => $profile->personal->lastName ?? null, - 'email' => $profile->personal->email ?? null, - ]; + 'id' => $profile->id, + 'username' => $username, + 'cat_username' => $username, + 'cat_password' => $password, + 'firstname' => $profile->personal->firstName ?? null, + 'lastname' => $profile->personal->lastName ?? null, + 'email' => $profile->personal->email ?? null, + ]; } catch (Exception $e) { return null; } -- GitLab