From dcfa49d28e17b2ab7cc061fc924765acd06ffc11 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 19 Oct 2017 14:43:41 -0400
Subject: [PATCH] Style fix: normalize case statements.

---
 module/VuFind/src/VuFind/ILS/Driver/Virtua.php       | 10 +++++-----
 module/VuFind/src/VuFind/View/Helper/Root/Record.php |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/module/VuFind/src/VuFind/ILS/Driver/Virtua.php b/module/VuFind/src/VuFind/ILS/Driver/Virtua.php
index 1603dd7bc0a..6c1da3c18d1 100644
--- a/module/VuFind/src/VuFind/ILS/Driver/Virtua.php
+++ b/module/VuFind/src/VuFind/ILS/Driver/Virtua.php
@@ -156,7 +156,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa
                     ];
 
                 switch ($result[0]['CALL_NUMBER']) {
-                case 'ELECTRONIC RESOURCE' :
+                case 'ELECTRONIC RESOURCE':
                     $new_holding['availability'] = true;
                     $new_holding['status']       = null;
                     $new_holding['location']     = "Online";
@@ -164,19 +164,19 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa
                     $holding[] = $new_holding;
                     return $holding;
                     break;
-                case 'ON ORDER' :
+                case 'ON ORDER':
                     $new_holding['status']       = "ON ORDER";
                     $new_holding['location']     = "Pending...";
                     $holding[] = $new_holding;
                     return $holding;
                     break;
-                case 'ORDER CANCELLED' :
+                case 'ORDER CANCELLED':
                     $new_holding['status']       = "ORDER CANCELLED";
                     $new_holding['location']     = "None";
                     $holding[] = $new_holding;
                     return $holding;
                     break;
-                case 'MISSING' :
+                case 'MISSING':
                     $new_holding['status']       = "MISSING";
                     $new_holding['location']     = "Unknown";
                     $holding[] = $new_holding;
@@ -719,7 +719,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa
                     $end_time = strtotime("01-" . $months[1] . "-" . $years[0]);
                     break;
                 // January 2000
-                case "11";
+                case "11":
                     $start_string = "F Y";
                     $end_time = null;
                     break;
diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Record.php b/module/VuFind/src/VuFind/View/Helper/Root/Record.php
index c9f06735f96..db7143eac4e 100644
--- a/module/VuFind/src/VuFind/View/Helper/Root/Record.php
+++ b/module/VuFind/src/VuFind/View/Helper/Root/Record.php
@@ -563,8 +563,8 @@ class Record extends AbstractHelper
         }
 
         switch ($context) {
-        case "core" :
-        case "results" :
+        case "core":
+        case "results":
             $key = 'showIn' . ucwords(strtolower($context));
             break;
         default:
-- 
GitLab