From 8223d2775d1c0e7e0c2082ee0f9c76ef8fd41337 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 24 Oct 2017 15:08:24 -0400
Subject: [PATCH] Convert else if to elseif.

---
 themes/bootstrap3/templates/myresearch/checkedout.phtml     | 2 +-
 themes/bootstrap3/templates/myresearch/holds.phtml          | 2 +-
 themes/bootstrap3/templates/myresearch/illrequests.phtml    | 2 +-
 .../templates/myresearch/storageretrievalrequests.phtml     | 2 +-
 themes/root/templates/Email/record-sms.phtml                | 2 +-
 .../templates/RecordDriver/AbstractBase/export-bibtex.phtml | 6 +++---
 .../templates/RecordDriver/AbstractBase/export-ris.phtml    | 6 +++---
 7 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/themes/bootstrap3/templates/myresearch/checkedout.phtml b/themes/bootstrap3/templates/myresearch/checkedout.phtml
index 61f7dc094f2..41f3a8c847e 100644
--- a/themes/bootstrap3/templates/myresearch/checkedout.phtml
+++ b/themes/bootstrap3/templates/myresearch/checkedout.phtml
@@ -99,7 +99,7 @@
                 $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
                 echo '<a href="' . $this->recordLink()->getUrl($resource) .
                   '" class="title">' . $title . '</a>';
-              } else if (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
+              } elseif (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
                 // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
                 echo $this->escapeHtml($ilsDetails['title']);
               } else {
diff --git a/themes/bootstrap3/templates/myresearch/holds.phtml b/themes/bootstrap3/templates/myresearch/holds.phtml
index 4dee22f685f..0c2a2c044a4 100644
--- a/themes/bootstrap3/templates/myresearch/holds.phtml
+++ b/themes/bootstrap3/templates/myresearch/holds.phtml
@@ -76,7 +76,7 @@
                 $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
                 echo '<a href="' . $this->recordLink()->getUrl($resource)
                   . '" class="title">' . $title . '</a>';
-              } else if (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
+              } elseif (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
                 // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
                 echo '<span class="title">' . $this->escapeHtml($ilsDetails['title']) . '</span>';
               } else {
diff --git a/themes/bootstrap3/templates/myresearch/illrequests.phtml b/themes/bootstrap3/templates/myresearch/illrequests.phtml
index c8190718840..ae12a510a4c 100644
--- a/themes/bootstrap3/templates/myresearch/illrequests.phtml
+++ b/themes/bootstrap3/templates/myresearch/illrequests.phtml
@@ -76,7 +76,7 @@
                 $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
                 echo '<a href="' . $this->recordLink()->getUrl($resource)
                   . '" class="title">' . $title . '</a>';
-              } else if (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
+              } elseif (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
                 // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
                 echo $this->escapeHtml($ilsDetails['title']);
               } else {
diff --git a/themes/bootstrap3/templates/myresearch/storageretrievalrequests.phtml b/themes/bootstrap3/templates/myresearch/storageretrievalrequests.phtml
index e4bea0ca675..4944d0ac443 100644
--- a/themes/bootstrap3/templates/myresearch/storageretrievalrequests.phtml
+++ b/themes/bootstrap3/templates/myresearch/storageretrievalrequests.phtml
@@ -76,7 +76,7 @@
                 $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
                 echo '<a href="' . $this->recordLink()->getUrl($resource)
                   . '" class="title">' . $title . '</a>';
-              } else if (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
+              } elseif (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
                 // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
                 echo $this->escapeHtml($ilsDetails['title']);
               } else {
diff --git a/themes/root/templates/Email/record-sms.phtml b/themes/root/templates/Email/record-sms.phtml
index a456ea48123..9831eb81924 100644
--- a/themes/root/templates/Email/record-sms.phtml
+++ b/themes/root/templates/Email/record-sms.phtml
@@ -25,7 +25,7 @@
                         // Exit loop in this situation.
                         $useBackupLocation = false;
                         break 2;
-                    } else if (!$backupLocation) {
+                    } elseif (!$backupLocation) {
                         // Save first "available" location without call # as backup
                         // (better than an unavailable location if no call #'s found)
                         $backupLocation = $location;
diff --git a/themes/root/templates/RecordDriver/AbstractBase/export-bibtex.phtml b/themes/root/templates/RecordDriver/AbstractBase/export-bibtex.phtml
index 74627109957..68179304bec 100644
--- a/themes/root/templates/RecordDriver/AbstractBase/export-bibtex.phtml
+++ b/themes/root/templates/RecordDriver/AbstractBase/export-bibtex.phtml
@@ -11,11 +11,11 @@ $journalTitle = $this->driver->tryMethod('getContainerTitle');
 $formats = $this->driver->tryMethod('getFormats');
 if ($marcProceedingsField) {
     $format = 'proceedings';
-} else if ($marcPhdField) {
+} elseif ($marcPhdField) {
     $format = 'phdthesis';
-} else if (!empty($journalTitle) || (is_array($formats) && in_array('Article', $formats))) {
+} elseif (!empty($journalTitle) || (is_array($formats) && in_array('Article', $formats))) {
     $format = 'article';
-} else if (is_array($formats) && in_array('Journal', $formats)) {
+} elseif (is_array($formats) && in_array('Journal', $formats)) {
     $format = 'misc';
 } else {
     $format = 'book';
diff --git a/themes/root/templates/RecordDriver/AbstractBase/export-ris.phtml b/themes/root/templates/RecordDriver/AbstractBase/export-ris.phtml
index 0aaceb66d4a..f27f8fa3fec 100644
--- a/themes/root/templates/RecordDriver/AbstractBase/export-ris.phtml
+++ b/themes/root/templates/RecordDriver/AbstractBase/export-ris.phtml
@@ -11,11 +11,11 @@ $journalTitle = $this->driver->tryMethod('getContainerTitle');
 $formats = $this->driver->tryMethod('getFormats');
 if ($marcProceedingsField) {
     $format = 'CONF';
-} else if ($marcPhdField) {
+} elseif ($marcPhdField) {
     $format = 'THES';
-} else if (!empty($journalTitle) || (is_array($formats) && in_array('Article', $formats))) {
+} elseif (!empty($journalTitle) || (is_array($formats) && in_array('Article', $formats))) {
     $format = 'JOUR';
-} else if (is_array($formats) && in_array('Journal', $formats)) {
+} elseif (is_array($formats) && in_array('Journal', $formats)) {
     $format = 'JFULL';
 } else {
     $format = 'BOOK';
-- 
GitLab