From 92b97fe1c36e95fe1346d3f2c10e66d2e56a0350 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Mon, 6 Jan 2020 09:48:52 -0500 Subject: [PATCH] Simplify with null coalescing. --- .../src/VuFind/Search/Factory/EITBackendFactory.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/module/VuFind/src/VuFind/Search/Factory/EITBackendFactory.php b/module/VuFind/src/VuFind/Search/Factory/EITBackendFactory.php index 4762c48e537..3fe65d424df 100644 --- a/module/VuFind/src/VuFind/Search/Factory/EITBackendFactory.php +++ b/module/VuFind/src/VuFind/Search/Factory/EITBackendFactory.php @@ -117,13 +117,10 @@ class EITBackendFactory implements FactoryInterface */ protected function createConnector() { - $prof = isset($this->config->General->prof) - ? $this->config->General->prof : null; - $pwd = isset($this->config->General->pwd) - ? $this->config->General->pwd : null; + $prof = $this->config->General->prof ?? null; + $pwd = $this->config->General->pwd ?? null; $base = "http://eit.ebscohost.com/Services/SearchService.asmx/Search"; - $dbs = isset($this->config->General->dbs) - ? $this->config->General->dbs : null; + $dbs = $this->config->General->dbs ?? null; $client = $this->serviceLocator->get(\VuFindHttp\HttpService::class) ->createClient(); $connector = new Connector($base, $client, $prof, $pwd, $dbs); -- GitLab