From 928d7bce97ec3e7ccddbae568f7903fc6aaec29a Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Thu, 19 Oct 2017 13:43:50 -0400 Subject: [PATCH] Style: use standard case for native functions. --- module/VuFind/src/VuFind/Controller/BrowseController.php | 4 ++-- module/VuFind/src/VuFind/View/Helper/Root/Browse.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/VuFind/src/VuFind/Controller/BrowseController.php b/module/VuFind/src/VuFind/Controller/BrowseController.php index 2f7b96f9ac8..18a62b4c70a 100644 --- a/module/VuFind/src/VuFind/Controller/BrowseController.php +++ b/module/VuFind/src/VuFind/Controller/BrowseController.php @@ -171,7 +171,7 @@ class BrowseController extends AbstractBase 'Author', 'Topic', 'Genre', 'Region', 'Era' ]; foreach ($remainingOptions as $current) { - $option = strToLower($current); + $option = strtolower($current); if (!isset($this->config->Browse->$option) || $this->config->Browse->$option == true ) { @@ -660,7 +660,7 @@ class BrowseController extends AbstractBase if ($action == null) { $action = $this->getCurrentAction(); } - switch (strToLower($action)) { + switch (strtolower($action)) { case 'alphabetical': return $this->getCategory(); case 'dewey': diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Browse.php b/module/VuFind/src/VuFind/View/Helper/Root/Browse.php index 207c2a70080..29efa116caa 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/Browse.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/Browse.php @@ -50,8 +50,8 @@ class Browse extends AbstractHelper */ public function getSolrField($action, $backup = null) { - $action = strToLower($action); - $backup = strToLower($backup); + $action = strtolower($action); + $backup = strtolower($backup); switch ($action) { case 'dewey': return 'dewey-hundreds'; -- GitLab