Skip to content
Snippets Groups Projects
Commit 2f3a33b1 authored by Demian Katz's avatar Demian Katz
Browse files

Cleaned up unused/mistyped variables.

parent 837ced68
No related merge requests found
...@@ -271,7 +271,7 @@ class SideFacets extends AbstractFacets ...@@ -271,7 +271,7 @@ class SideFacets extends AbstractFacets
$final = array(); $final = array();
foreach ($filterList as $field => $filters) { foreach ($filterList as $field => $filters) {
$current = array(); $current = array();
foreach ($filters as $i => $filter) { foreach ($filters as $filter) {
if (!isset($filter['suppressDisplay']) if (!isset($filter['suppressDisplay'])
|| !$filter['suppressDisplay'] || !$filter['suppressDisplay']
) { ) {
......
...@@ -104,8 +104,6 @@ class Recaptcha extends AbstractHelper ...@@ -104,8 +104,6 @@ class Recaptcha extends AbstractHelper
$errorPart = '&error=' . urlencode($params['error']); $errorPart = '&error=' . urlencode($params['error']);
} }
$reCaptchaOptions = '';
$options = $this->recaptcha->getOptions(); $options = $this->recaptcha->getOptions();
if (!empty($options)) { if (!empty($options)) {
$encoded = \Zend\Json\Json::encode($options); $encoded = \Zend\Json\Json::encode($options);
......
...@@ -149,8 +149,6 @@ class Connector ...@@ -149,8 +149,6 @@ class Connector
$params->set('pwd', $this->pwd); $params->set('pwd', $this->pwd);
$response = $this->call('GET', $params->getArrayCopy(), false); $response = $this->call('GET', $params->getArrayCopy(), false);
$xml = simplexml_load_string($response); $xml = simplexml_load_string($response);
$docs = isset($xml->SearchResults->records)
? $xml->SearchResults->record : array();
$finalDocs = array(); $finalDocs = array();
foreach ($xml->SearchResults->records->rec as $doc) { foreach ($xml->SearchResults->records->rec as $doc) {
$finalDocs[] = simplexml_load_string($doc->asXML()); $finalDocs[] = simplexml_load_string($doc->asXML());
...@@ -173,7 +171,7 @@ class Connector ...@@ -173,7 +171,7 @@ class Connector
public function checkForHttpError($result) public function checkForHttpError($result)
{ {
if (!$result->isSuccess()) { if (!$result->isSuccess()) {
throw HttpErrorException::createFromResponse($response); throw HttpErrorException::createFromResponse($result);
} }
} }
...@@ -242,8 +240,6 @@ class Connector ...@@ -242,8 +240,6 @@ class Connector
$this->client->resetParameters(); $this->client->resetParameters();
$response = $this->call('GET', $params->getArrayCopy(), false); $response = $this->call('GET', $params->getArrayCopy(), false);
$xml = simplexml_load_string($response); $xml = simplexml_load_string($response);
$docs = isset($xml->SearchResults->records)
? $xml->SearchResults->record : array();
$finalDocs = array(); $finalDocs = array();
foreach ($xml->SearchResults->records->rec as $doc) { foreach ($xml->SearchResults->records->rec as $doc) {
$finalDocs[] = simplexml_load_string($doc->asXML()); $finalDocs[] = simplexml_load_string($doc->asXML());
......
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