Skip to content
Snippets Groups Projects
Commit f1736e79 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

PHP checkstyles.

parent 863a4186
No related merge requests found
...@@ -203,7 +203,8 @@ class Bootstrapper ...@@ -203,7 +203,8 @@ class Bootstrapper
// the config file if this doesn't work -- different systems may vary in // the config file if this doesn't work -- different systems may vary in
// their behavior here. // their behavior here.
setlocale( setlocale(
LC_ALL, [ LC_ALL,
[
"{$this->config->Site->locale}.UTF8", "{$this->config->Site->locale}.UTF8",
"{$this->config->Site->locale}.UTF-8", "{$this->config->Site->locale}.UTF-8",
$this->config->Site->locale $this->config->Site->locale
......
...@@ -538,40 +538,40 @@ class BrowseController extends AbstractBase ...@@ -538,40 +538,40 @@ class BrowseController extends AbstractBase
return ['', $this->getAlphabetList()]; return ['', $this->getAlphabetList()];
case 'dewey': case 'dewey':
return [ return [
'dewey-tens', $this->quoteValues( 'dewey-tens', $this->quoteValues(
$this->getFacetList('dewey-hundreds', $category, 'index') $this->getFacetList('dewey-hundreds', $category, 'index')
) )
]; ];
case 'lcc': case 'lcc':
return [ return [
'callnumber-first', $this->quoteValues( 'callnumber-first', $this->quoteValues(
$this->getFacetList('callnumber-first', $category, 'index') $this->getFacetList('callnumber-first', $category, 'index')
) )
]; ];
case 'topic': case 'topic':
return [ return [
'topic_facet', $this->quoteValues( 'topic_facet', $this->quoteValues(
$this->getFacetList('topic_facet', $category) $this->getFacetList('topic_facet', $category)
) )
]; ];
case 'genre': case 'genre':
return [ return [
'genre_facet', $this->quoteValues( 'genre_facet', $this->quoteValues(
$this->getFacetList('genre_facet', $category) $this->getFacetList('genre_facet', $category)
) )
]; ];
case 'region': case 'region':
return [ return [
'geographic_facet', $this->quoteValues( 'geographic_facet', $this->quoteValues(
$this->getFacetList('geographic_facet', $category) $this->getFacetList('geographic_facet', $category)
) )
]; ];
case 'era': case 'era':
return [ return [
'era_facet', $this->quoteValues( 'era_facet', $this->quoteValues(
$this->getFacetList('era_facet', $category) $this->getFacetList('era_facet', $category)
) )
]; ];
} }
} }
......
...@@ -88,7 +88,8 @@ class SearchController extends AbstractSearch ...@@ -88,7 +88,8 @@ class SearchController extends AbstractSearch
$view->useRecaptcha = $this->recaptcha()->active('email'); $view->useRecaptcha = $this->recaptcha()->active('email');
$view->url = $this->params()->fromPost( $view->url = $this->params()->fromPost(
'url', $this->params()->fromQuery( 'url', $this->params()->fromQuery(
'url', $this->getRequest()->getServer()->get('HTTP_REFERER') 'url',
$this->getRequest()->getServer()->get('HTTP_REFERER')
) )
); );
......
...@@ -443,7 +443,8 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface, ...@@ -443,7 +443,8 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface,
$url = $this->appendQueryString($url, $params); $url = $this->appendQueryString($url, $params);
if ($auth) { if ($auth) {
$url = $this->appendQueryString( $url = $this->appendQueryString(
$url, [ $url,
[
'user_name' => $this->wwwuser, 'user_name' => $this->wwwuser,
'user_password' => $this->wwwpasswd 'user_password' => $this->wwwpasswd
] ]
......
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