diff --git a/src/BookSearch/BookSearch.php b/src/BookSearch/BookSearch.php index e09da91..da562a6 100644 --- a/src/BookSearch/BookSearch.php +++ b/src/BookSearch/BookSearch.php @@ -280,7 +280,7 @@ class BookSearch * @return array Books information * @throws WebException */ - public static function GetBooks(array $codes, $field = 'code') { + public static function getBooks(array $codes, $field = 'code') { // it is faster to do multiple small request to Solr rather than one big so separate // in chunks if we are above the limit. 15 was found by testing and seems to be a sweet spot $limit = 15; @@ -290,7 +290,7 @@ class BookSearch $books = array(); foreach($parts as $p) { // if we use array_merge here the numerical keys (book code) will be lost - $books += self::GetBooks($p, $field); + $books += self::getBooks($p, $field); } return $books; } @@ -302,7 +302,7 @@ class BookSearch return $results['books']; } - public static function GetTerms($field) { + public static function getTerms($field) { $s = new BookSearch(); $s->addFilterQuery(1, 'visible'); $s->addFacetField($field); @@ -313,7 +313,7 @@ class BookSearch } - public static function GetTermsRange($field) { + public static function getTermsRange($field) { $s = new BookSearch(); $s->addFilterQuery(1, 'visible'); $s->setFacetRangeField($field);