Skip to content
Snippets Groups Projects
Commit 92b97fe1 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Simplify with null coalescing.

parent db37cb82
No related merge requests found
...@@ -117,13 +117,10 @@ class EITBackendFactory implements FactoryInterface ...@@ -117,13 +117,10 @@ class EITBackendFactory implements FactoryInterface
*/ */
protected function createConnector() protected function createConnector()
{ {
$prof = isset($this->config->General->prof) $prof = $this->config->General->prof ?? null;
? $this->config->General->prof : null; $pwd = $this->config->General->pwd ?? null;
$pwd = isset($this->config->General->pwd)
? $this->config->General->pwd : null;
$base = "http://eit.ebscohost.com/Services/SearchService.asmx/Search"; $base = "http://eit.ebscohost.com/Services/SearchService.asmx/Search";
$dbs = isset($this->config->General->dbs) $dbs = $this->config->General->dbs ?? null;
? $this->config->General->dbs : null;
$client = $this->serviceLocator->get(\VuFindHttp\HttpService::class) $client = $this->serviceLocator->get(\VuFindHttp\HttpService::class)
->createClient(); ->createClient();
$connector = new Connector($base, $client, $prof, $pwd, $dbs); $connector = new Connector($base, $client, $prof, $pwd, $dbs);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment