From ccc5d68217136ecd9fe63a972b31ba79988cfc83 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 6 Nov 2012 14:29:32 -0500 Subject: [PATCH] Style fixes. --- module/VuFind/src/VuFind/Hierarchy/TreeDataSource/Solr.php | 2 +- .../VuFind/src/VuFind/Hierarchy/TreeRenderer/AbstractBase.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Hierarchy/TreeDataSource/Solr.php b/module/VuFind/src/VuFind/Hierarchy/TreeDataSource/Solr.php index 3d6a01ca566..ce9bccc7bac 100644 --- a/module/VuFind/src/VuFind/Hierarchy/TreeDataSource/Solr.php +++ b/module/VuFind/src/VuFind/Hierarchy/TreeDataSource/Solr.php @@ -120,7 +120,7 @@ class Solr extends AbstractBase * * @param string $parentID The starting point for the current recursion * (equivlent to Solr field hierarchy_parent_id) - * @param string $count The total count of items in the tree + * @param string &$count The total count of items in the tree * before this recursion * * @return string diff --git a/module/VuFind/src/VuFind/Hierarchy/TreeRenderer/AbstractBase.php b/module/VuFind/src/VuFind/Hierarchy/TreeRenderer/AbstractBase.php index 0a6e5027168..4cc44dd4063 100644 --- a/module/VuFind/src/VuFind/Hierarchy/TreeRenderer/AbstractBase.php +++ b/module/VuFind/src/VuFind/Hierarchy/TreeRenderer/AbstractBase.php @@ -96,7 +96,9 @@ abstract class AbstractBase $hierarchyDriver = $this->getRecordDriver() ->tryMethod('getHierarchyDriver'); if (!is_object($hierarchyDriver)) { - throw new \Exception('Cannot load hierarchy driver from record driver.'); + throw new \Exception( + 'Cannot load hierarchy driver from record driver.' + ); } $this->dataSource = $hierarchyDriver->getTreeSource(); } -- GitLab