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

Style fix: normalize case statements.

parent 774b3742
Branches issue/20714
No related merge requests found
...@@ -156,7 +156,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa ...@@ -156,7 +156,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa
]; ];
switch ($result[0]['CALL_NUMBER']) { switch ($result[0]['CALL_NUMBER']) {
case 'ELECTRONIC RESOURCE' : case 'ELECTRONIC RESOURCE':
$new_holding['availability'] = true; $new_holding['availability'] = true;
$new_holding['status'] = null; $new_holding['status'] = null;
$new_holding['location'] = "Online"; $new_holding['location'] = "Online";
...@@ -164,19 +164,19 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa ...@@ -164,19 +164,19 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa
$holding[] = $new_holding; $holding[] = $new_holding;
return $holding; return $holding;
break; break;
case 'ON ORDER' : case 'ON ORDER':
$new_holding['status'] = "ON ORDER"; $new_holding['status'] = "ON ORDER";
$new_holding['location'] = "Pending..."; $new_holding['location'] = "Pending...";
$holding[] = $new_holding; $holding[] = $new_holding;
return $holding; return $holding;
break; break;
case 'ORDER CANCELLED' : case 'ORDER CANCELLED':
$new_holding['status'] = "ORDER CANCELLED"; $new_holding['status'] = "ORDER CANCELLED";
$new_holding['location'] = "None"; $new_holding['location'] = "None";
$holding[] = $new_holding; $holding[] = $new_holding;
return $holding; return $holding;
break; break;
case 'MISSING' : case 'MISSING':
$new_holding['status'] = "MISSING"; $new_holding['status'] = "MISSING";
$new_holding['location'] = "Unknown"; $new_holding['location'] = "Unknown";
$holding[] = $new_holding; $holding[] = $new_holding;
...@@ -719,7 +719,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa ...@@ -719,7 +719,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa
$end_time = strtotime("01-" . $months[1] . "-" . $years[0]); $end_time = strtotime("01-" . $months[1] . "-" . $years[0]);
break; break;
// January 2000 // January 2000
case "11"; case "11":
$start_string = "F Y"; $start_string = "F Y";
$end_time = null; $end_time = null;
break; break;
......
...@@ -563,8 +563,8 @@ class Record extends AbstractHelper ...@@ -563,8 +563,8 @@ class Record extends AbstractHelper
} }
switch ($context) { switch ($context) {
case "core" : case "core":
case "results" : case "results":
$key = 'showIn' . ucwords(strtolower($context)); $key = 'showIn' . ucwords(strtolower($context));
break; break;
default: default:
......
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