diff --git a/module/VuFind/src/VuFind/Auth/AbstractBase.php b/module/VuFind/src/VuFind/Auth/AbstractBase.php index f69bc00e914fad32a7b434c76c2c0f16f95597d7..81f0a6ceb441c0648aa8ea7c47a473c91f8c1eea 100644 --- a/module/VuFind/src/VuFind/Auth/AbstractBase.php +++ b/module/VuFind/src/VuFind/Auth/AbstractBase.php @@ -155,6 +155,7 @@ abstract class AbstractBase implements \VuFind\Db\Table\DbTableAwareInterface, * * @throws AuthException * @return User New user row. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function create($request) @@ -172,6 +173,7 @@ abstract class AbstractBase implements \VuFind\Db\Table\DbTableAwareInterface, * * @throws AuthException * @return User New user row. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function updatePassword($request) @@ -189,6 +191,7 @@ abstract class AbstractBase implements \VuFind\Db\Table\DbTableAwareInterface, * send user after login (some drivers may override this). * * @return bool|string + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getSessionInitiator($target) diff --git a/module/VuFind/src/VuFind/Cache/Storage/Adapter/NoCacheAdapter.php b/module/VuFind/src/VuFind/Cache/Storage/Adapter/NoCacheAdapter.php index 2b7ce70467c6f693f1e2206d75b848cb744b038c..c0d3b4e63295da19f520ddcc5e446a61a2a93c95 100644 --- a/module/VuFind/src/VuFind/Cache/Storage/Adapter/NoCacheAdapter.php +++ b/module/VuFind/src/VuFind/Cache/Storage/Adapter/NoCacheAdapter.php @@ -38,6 +38,7 @@ use Zend\Cache\Storage\Adapter\AbstractAdapter; * @author David Maus <maus@hab.de> * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://www.vufind.org Main Page + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ class NoCacheAdapter extends AbstractAdapter @@ -45,9 +46,9 @@ class NoCacheAdapter extends AbstractAdapter /** * Internal method to get an item. * - * @param string &$normalizedKey Normalized key - * @param bool &$success Success indicator - * @param mixed &$casToken CAS token + * @param string $normalizedKey Normalized key + * @param bool $success Success indicator + * @param mixed $casToken CAS token * * @return mixed Data on success, null on failure */ @@ -60,8 +61,8 @@ class NoCacheAdapter extends AbstractAdapter /** * Internal method to store an item. * - * @param string &$normalizedKey Normalized key - * @param mixed &$value Cache item + * @param string $normalizedKey Normalized key + * @param mixed $value Cache item * * @return bool */ @@ -73,7 +74,7 @@ class NoCacheAdapter extends AbstractAdapter /** * Internal method to remove an item. * - * @param string &$normalizedKey Normalized key + * @param string $normalizedKey Normalized key * * @return bool */ diff --git a/module/VuFind/src/VuFind/Config/PluginFactory.php b/module/VuFind/src/VuFind/Config/PluginFactory.php index 26ed7bd2f5fb2a0b82d3b39d3ecf1c7a76957a3b..193c8d6e2c8247b40bb4ea103e2df350729d1a61 100644 --- a/module/VuFind/src/VuFind/Config/PluginFactory.php +++ b/module/VuFind/src/VuFind/Config/PluginFactory.php @@ -137,6 +137,7 @@ class PluginFactory implements AbstractFactoryInterface * @param string $requestedName Unfiltered name of service * * @return bool + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, @@ -154,6 +155,7 @@ class PluginFactory implements AbstractFactoryInterface * @param string $requestedName Unfiltered name of service * * @return object + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function createServiceWithName(ServiceLocatorInterface $serviceLocator, diff --git a/module/VuFind/src/VuFind/Config/PluginManager.php b/module/VuFind/src/VuFind/Config/PluginManager.php index 76eaa1c7c222d9723ca497422b908f847c0462c5..4269831bc7d749f925840b21c3d59a7979a05971 100644 --- a/module/VuFind/src/VuFind/Config/PluginManager.php +++ b/module/VuFind/src/VuFind/Config/PluginManager.php @@ -49,6 +49,7 @@ class PluginManager extends Base * * @throws ServiceManagerRuntimeException if invalid * @return void + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function validatePlugin($plugin) diff --git a/module/VuFind/src/VuFind/Content/Covers/Booksite.php b/module/VuFind/src/VuFind/Content/Covers/Booksite.php index b176b41d8a762dba2318167f45da93aae316e6be..7de2c1e4ceef27ed107d8b3fb6763e220666a7ec 100644 --- a/module/VuFind/src/VuFind/Content/Covers/Booksite.php +++ b/module/VuFind/src/VuFind/Content/Covers/Booksite.php @@ -74,6 +74,7 @@ class Booksite extends \VuFind\Content\AbstractCover * pointing to an ISBN object and 'issn' pointing to a string) * * @return string|bool + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getUrl($key, $size, $ids) diff --git a/module/VuFind/src/VuFind/Content/Covers/Google.php b/module/VuFind/src/VuFind/Content/Covers/Google.php index 47c77110eb8ac5a8a32acefcb4323b8c2063fdbd..bafc794198a670702a24aaeb3ec85c2d300d6e4c 100644 --- a/module/VuFind/src/VuFind/Content/Covers/Google.php +++ b/module/VuFind/src/VuFind/Content/Covers/Google.php @@ -73,6 +73,7 @@ class Google extends \VuFind\Content\AbstractCover * pointing to an ISBN object and 'issn' pointing to a string) * * @return string|bool + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getUrl($key, $size, $ids) diff --git a/module/VuFind/src/VuFind/Content/Covers/OpenLibrary.php b/module/VuFind/src/VuFind/Content/Covers/OpenLibrary.php index 6c6484476832bd394fc4ca69e7ffa3bc19df2d70..a3bfee0f615562e31252f2b85e8119876782107f 100644 --- a/module/VuFind/src/VuFind/Content/Covers/OpenLibrary.php +++ b/module/VuFind/src/VuFind/Content/Covers/OpenLibrary.php @@ -55,6 +55,7 @@ class OpenLibrary extends \VuFind\Content\AbstractCover * pointing to an ISBN object and 'issn' pointing to a string) * * @return string|bool + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getUrl($key, $size, $ids) diff --git a/module/VuFind/src/VuFind/Content/Reviews/Booksite.php b/module/VuFind/src/VuFind/Content/Reviews/Booksite.php index 49f009b8cc881cebc41d88ed1cf9b8bc077f9fb0..ce4baa8eb7e388bdd17dffcccb938f5f24d3bc70 100644 --- a/module/VuFind/src/VuFind/Content/Reviews/Booksite.php +++ b/module/VuFind/src/VuFind/Content/Reviews/Booksite.php @@ -75,6 +75,7 @@ class BookSite extends \VuFind\Content\AbstractBase * @throws \Exception * @return array Returns array with review data. * @author Joe Atzberger + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function loadByIsbn($key, \VuFindCode\ISBN $isbnObj) diff --git a/module/VuFind/src/VuFind/Content/Reviews/Guardian.php b/module/VuFind/src/VuFind/Content/Reviews/Guardian.php index 39d918f4f66113c34da1436936bcda4d1ee234d7..3bc112b78613ec75dfd8aa46be3465f87fee75b7 100644 --- a/module/VuFind/src/VuFind/Content/Reviews/Guardian.php +++ b/module/VuFind/src/VuFind/Content/Reviews/Guardian.php @@ -50,6 +50,7 @@ class Guardian extends \VuFind\Content\AbstractBase * @throws \Exception * @return array Returns array with review data. * @author Eoghan Ó Carragáin <eoghan.ocarragain@gmail.com> + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function loadByIsbn($key, \VuFindCode\ISBN $isbnObj) diff --git a/module/VuFind/src/VuFind/Controller/AbstractBase.php b/module/VuFind/src/VuFind/Controller/AbstractBase.php index f58b77e71fed8420f061a961c58c9ba74d4feb9e..e10df80e08a030d5764e5926f40e2dfa6d7bc88f 100644 --- a/module/VuFind/src/VuFind/Controller/AbstractBase.php +++ b/module/VuFind/src/VuFind/Controller/AbstractBase.php @@ -44,6 +44,7 @@ use VuFind\Exception\Forbidden as ForbiddenException, * @author Chris Hallberg <challber@villanova.edu> * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://vufind.org/wiki/vufind2:building_a_controller Wiki + * * @SuppressWarnings(PHPMD.NumberOfChildren) */ class AbstractBase extends AbstractActionController diff --git a/module/VuFind/src/VuFind/Cover/Generator.php b/module/VuFind/src/VuFind/Cover/Generator.php index 8b326c04cbf8caee827fd5f85440fc37826092bc..d03b02755e57d3f7a8ff141fb9ed08f827454adf 100644 --- a/module/VuFind/src/VuFind/Cover/Generator.php +++ b/module/VuFind/src/VuFind/Cover/Generator.php @@ -111,6 +111,7 @@ class Generator * @param string $callnumber Callnumber of the book * * @return string contents of image file + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function generateSolid($title, $author, $callnumber) diff --git a/module/VuFind/src/VuFind/I18n/Translator/Loader/ExtendedIni.php b/module/VuFind/src/VuFind/I18n/Translator/Loader/ExtendedIni.php index 78ea2fbcdf48f1bb97f3e9bd3ac70c10dfc958aa..a6639dc8bfd502c1dee24a90dc06e43124f26ea6 100644 --- a/module/VuFind/src/VuFind/I18n/Translator/Loader/ExtendedIni.php +++ b/module/VuFind/src/VuFind/I18n/Translator/Loader/ExtendedIni.php @@ -99,6 +99,7 @@ class ExtendedIni implements FileLoaderInterface * * @return TextDomain * @throws InvalidArgumentException + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function load($locale, $filename) diff --git a/module/VuFind/src/VuFind/ILS/Connection.php b/module/VuFind/src/VuFind/ILS/Connection.php index 1fbdbd2476d418b6f05436388114b176cc7b4d37..88a294a607da5e617892852bd20525a0bb6b9f5d 100644 --- a/module/VuFind/src/VuFind/ILS/Connection.php +++ b/module/VuFind/src/VuFind/ILS/Connection.php @@ -292,6 +292,7 @@ class Connection implements TranslatorAwareInterface * @return mixed On success, an associative array with specific function keys * and values either for cancelling holds via a form or a URL; * on failure, false. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function checkMethodcancelHolds($functionConfig, $params) @@ -326,6 +327,7 @@ class Connection implements TranslatorAwareInterface * * @return mixed On success, an associative array with specific function keys * and values either for renewing items via a form or a URL; on failure, false. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function checkMethodRenewals($functionConfig, $params) @@ -400,6 +402,7 @@ class Connection implements TranslatorAwareInterface * @return mixed On success, an associative array with specific function keys * and values either for cancelling requests via a form or a URL; * on failure, false. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function checkMethodcancelStorageRetrievalRequests($functionConfig, @@ -482,6 +485,7 @@ class Connection implements TranslatorAwareInterface * @return mixed On success, an associative array with specific function keys * and values either for cancelling requests via a form or a URL; * on failure, false. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function checkMethodcancelILLRequests($functionConfig, $params) @@ -527,6 +531,7 @@ class Connection implements TranslatorAwareInterface * @return mixed On success, an associative array with specific function keys * and values either for cancelling requests via a form or a URL; * on failure, false. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function checkMethodchangePassword($functionConfig, $params) diff --git a/module/VuFind/src/VuFind/ILS/Driver/AbstractBase.php b/module/VuFind/src/VuFind/ILS/Driver/AbstractBase.php index 3417c0959a19c346f7e050b413bbe45c10a249c5..4d9c6ed7017c138c76977cd89d7822fde32e5a7e 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/AbstractBase.php +++ b/module/VuFind/src/VuFind/ILS/Driver/AbstractBase.php @@ -35,6 +35,7 @@ namespace VuFind\ILS\Driver; * @author Andrew S. Nagy <vufind-tech@lists.sourceforge.net> * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://vufind.org/wiki/vufind2:building_an_ils_driver Wiki + * * @SuppressWarnings(PHPMD.NumberOfChildren) */ abstract class AbstractBase implements DriverInterface diff --git a/module/VuFind/src/VuFind/ILS/Driver/Aleph.php b/module/VuFind/src/VuFind/ILS/Driver/Aleph.php index 26f48d6ed4f37d545f0e46a73f869c748ca88706..cd758064b5652f34fb4e9cd228f3dc32c182c2ee 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Aleph.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Aleph.php @@ -1589,6 +1589,7 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface, * @param array $params Optional feature-specific parameters (array) * * @return array An array with key-value pairs. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConfig($func, $params = null) @@ -1693,6 +1694,7 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface, * * @throws ILSException * @return array An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) @@ -1718,6 +1720,7 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface, * * @throws ILSException * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) @@ -1780,6 +1783,7 @@ class Aleph extends AbstractBase implements \Zend\Log\LoggerAwareInterface, * * @throws ILSException * @return array An array of associative arrays representing reserve items. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function findReserves($course, $inst, $dept) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Amicus.php b/module/VuFind/src/VuFind/ILS/Driver/Amicus.php index bf88b22e41956d4dd639924e0e9abf417bb72699..0dce9f0b6fca53b5a515663b11a63da9a2bf95e3 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Amicus.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Amicus.php @@ -757,6 +757,7 @@ class Amicus extends AbstractBase implements TranslatorAwareInterface * @param array $details Item details from getHoldings return array * * @return string URL to ILS's OPAC's place hold screen. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getHoldLink($recordId, $details) @@ -781,6 +782,7 @@ class Amicus extends AbstractBase implements TranslatorAwareInterface * * @throws ILSException * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) @@ -874,6 +876,7 @@ class Amicus extends AbstractBase implements TranslatorAwareInterface * * @throws ILSException * @return array An array of associative arrays representing reserve items. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function findReserves($course, $inst, $dept) diff --git a/module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php b/module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php index a51cdccbd86f5c92c3ad8226dec415f8d2251707..9caed0de16829f0c089052f6ada5721a6ab4c61e 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php +++ b/module/VuFind/src/VuFind/ILS/Driver/ClaviusSQL.php @@ -390,6 +390,7 @@ class ClaviusSQL extends AbstractBase * @param array $details Item details from getHoldings return array * * @return string URL to ILS's OPAC's place hold screen. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getHoldLink($id, $details) @@ -467,6 +468,7 @@ class ClaviusSQL extends AbstractBase * * @return array An array of associative arrays with locationID and * locationDisplay keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPickUpLocations($patron = false, $holdDetails = null) @@ -512,6 +514,7 @@ class ClaviusSQL extends AbstractBase * <li>title - The title of the item (optional - only used if the record * cannot be found in VuFind's index).</li> * </ul> + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getMyHolds($patron) @@ -574,6 +577,7 @@ class ClaviusSQL extends AbstractBase * * @throws ILSException * @return array An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) @@ -808,6 +812,7 @@ class ClaviusSQL extends AbstractBase * <li>item_id - this is used to match up renew responses and must match * the item_id in the renew response</li> * </ul> + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getMyTransactions($user, $history = false) diff --git a/module/VuFind/src/VuFind/ILS/Driver/DAIA.php b/module/VuFind/src/VuFind/ILS/Driver/DAIA.php index 30542d607b927d7fde99adbbea28022c9a34f708..55005c81a075a8e0d503fe35d9b22cc922a900cd 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/DAIA.php +++ b/module/VuFind/src/VuFind/ILS/Driver/DAIA.php @@ -81,6 +81,7 @@ class DAIA extends AbstractBase implements \Zend\Log\LoggerAwareInterface * @param array $details Item details from getHoldings return array * * @return string URL to ILS's OPAC's place hold screen. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getHoldLink($id, $details) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Demo.php b/module/VuFind/src/VuFind/ILS/Driver/Demo.php index 03789f7e895c7bec5c78dbd4ff72d19577e21785..56331a390fe96d6b637037efbac2a7b76335061c 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Demo.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Demo.php @@ -620,6 +620,7 @@ class Demo extends AbstractBase * @param array $patron The patron array from patronLogin * * @return mixed Array of the patron's fines on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getMyFines($patron) @@ -671,6 +672,7 @@ class Demo extends AbstractBase * @param array $patron The patron array from patronLogin * * @return mixed Array of the patron's holds on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getMyHolds($patron) @@ -689,6 +691,7 @@ class Demo extends AbstractBase * @param array $patron The patron array from patronLogin * * @return mixed Array of the patron's holds + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getMyStorageRetrievalRequests($patron) @@ -708,6 +711,7 @@ class Demo extends AbstractBase * @param array $patron The patron array from patronLogin * * @return mixed Array of the patron's ILL requests + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getMyILLRequests($patron) @@ -728,6 +732,7 @@ class Demo extends AbstractBase * @param array $patron The patron array from patronLogin * * @return mixed Array of the patron's transactions on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getMyTransactions($patron) @@ -827,6 +832,7 @@ class Demo extends AbstractBase * * @return array An array of associative arrays with locationID and * locationDisplay keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPickUpLocations($patron = false, $holdDetails = null) @@ -855,6 +861,7 @@ class Demo extends AbstractBase * placeHold, minus the patron data. * * @return int + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getHoldDefaultRequiredDate($patron, $holdInfo) @@ -877,6 +884,7 @@ class Demo extends AbstractBase * or may be ignored. * * @return string A location ID + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getDefaultPickUpLocation($patron = false, $holdDetails = null) @@ -898,6 +906,7 @@ class Demo extends AbstractBase * options or may be ignored. * * @return false|string The default request group for the patron. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getDefaultRequestGroup($patron = false, $holdDetails = null) @@ -918,6 +927,7 @@ class Demo extends AbstractBase * * @return array False if request groups not in use or an array of * associative arrays with id and name keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getRequestGroups($bibId = null, $patron = null) @@ -998,6 +1008,7 @@ class Demo extends AbstractBase * whatever that may mean. * * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) @@ -1031,6 +1042,7 @@ class Demo extends AbstractBase * @param string $dept ID from getDepartments (empty string to match all) * * @return mixed An array of associative arrays representing reserve items. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function findReserves($course, $inst, $dept) @@ -1271,6 +1283,7 @@ class Demo extends AbstractBase * @param patron $patron An array of patron data * * @return bool True if request is valid, false if not + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function checkRequestIsValid($id, $data, $patron) @@ -1371,6 +1384,7 @@ class Demo extends AbstractBase * @param patron $patron An array of patron data * * @return bool True if request is valid, false if not + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function checkStorageRetrievalRequestIsValid($id, $data, $patron) @@ -1469,6 +1483,7 @@ class Demo extends AbstractBase * @param patron $patron An array of patron data * * @return bool True if request is valid, false if not + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function checkILLRequestIsValid($id, $data, $patron) @@ -1587,6 +1602,7 @@ class Demo extends AbstractBase * * @return bool|array False if request not allowed, or an array of associative * arrays with libraries. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getILLPickupLibraries($id, $patron) @@ -1622,6 +1638,7 @@ class Demo extends AbstractBase * @param array $patron Patron * * @return bool|array False if request not allowed, or an array of locations. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getILLPickupLocations($id, $pickupLib, $patron) @@ -1728,6 +1745,7 @@ class Demo extends AbstractBase * * @return array An array of data on the request including * whether or not it was successful and a system message (if available) + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function changePassword($details) @@ -1750,6 +1768,7 @@ class Demo extends AbstractBase * @param array $params Optional feature-specific parameters (array) * * @return array An array with key-value pairs. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConfig($function, $params = null) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Evergreen.php b/module/VuFind/src/VuFind/ILS/Driver/Evergreen.php index ca4e185fe1c502ec92c73e2b19d8f4b351a75494..c672f4f7fc4c1885c4d75f3b6abd82a1b070caba 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Evergreen.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Evergreen.php @@ -278,6 +278,7 @@ HERE; * * @throws ILSException * @return array An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) @@ -633,6 +634,7 @@ HERE; * * @throws ILSException * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) @@ -795,6 +797,7 @@ HERE; * * @throws ILSException * @return array An array of associative arrays representing reserve items. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function findReserves($course, $inst, $dept) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Horizon.php b/module/VuFind/src/VuFind/ILS/Driver/Horizon.php index d78d63ede4707ca87b1efb90b97d30435e04ed67..bd11517119ad4c4db06947479b5e9dfdc7b9aed7 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Horizon.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Horizon.php @@ -270,6 +270,7 @@ class Horizon extends AbstractBase * @param array $patron Patron Array * * @return array Keyed data + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function processHoldingRow($id, $row, $patron) @@ -991,6 +992,7 @@ class Horizon extends AbstractBase * does not use acquisitions. * * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) diff --git a/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php b/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php index 04f55a62f676ab937b233d6119f7bae86c18d463..19c40b630f7776a972535d88a2d400865b98899d 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php +++ b/module/VuFind/src/VuFind/ILS/Driver/HorizonXMLAPI.php @@ -80,6 +80,7 @@ class HorizonXMLAPI extends Horizon implements \VuFindHttp\HttpServiceAwareInter * @param array $params Optional feature-specific parameters (array) * * @return array An array with key-value pairs. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConfig($function, $params = null) @@ -175,6 +176,7 @@ class HorizonXMLAPI extends Horizon implements \VuFindHttp\HttpServiceAwareInter * @throws ILSException * @return array An array of associative arrays with locationID and * locationDisplay keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPickUpLocations($patron, $holdDetails = null) @@ -253,6 +255,7 @@ class HorizonXMLAPI extends Horizon implements \VuFindHttp\HttpServiceAwareInter * or may be ignored. * * @return string The default pickup location for the patron. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getDefaultPickUpLocation($patron = false, $holdDetails = null) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Innovative.php b/module/VuFind/src/VuFind/ILS/Driver/Innovative.php index 601128c11adda401c394a3245309936d13047652..a08fa53403c2397d3f19974194402d00e4f4309d 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Innovative.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Innovative.php @@ -290,6 +290,7 @@ class Innovative extends AbstractBase implements * * @throws ILSException * @return array An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) @@ -309,6 +310,7 @@ class Innovative extends AbstractBase implements * @param array $details Item details from getHoldings return array * * @return string URL to ILS's OPAC's place hold screen. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getHoldLink($id, $details) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Koha.php b/module/VuFind/src/VuFind/ILS/Driver/Koha.php index 2ee6d6a924099adecbd899746318368d091598c4..6f2d36aa60268a52fe796fb75fcfa896eedb8b88 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Koha.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Koha.php @@ -216,6 +216,7 @@ class Koha extends AbstractBase * @param array $details Item details from getHoldings return array * * @return string URL to ILS's OPAC's place hold screen. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getHoldLink($id, $details) @@ -404,6 +405,7 @@ class Koha extends AbstractBase * * @throws ILSException * @return array An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) diff --git a/module/VuFind/src/VuFind/ILS/Driver/LBS4.php b/module/VuFind/src/VuFind/ILS/Driver/LBS4.php index 74d482517f56b3c61017fafdb60657879afb574f..b5fbbc271343a9d251292a4947b88d7e94beaf28 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/LBS4.php +++ b/module/VuFind/src/VuFind/ILS/Driver/LBS4.php @@ -111,6 +111,7 @@ class LBS4 extends AbstractBase implements TranslatorAwareInterface * @param array $params Optional feature-specific parameters (array) * * @return array An array with key-value pairs. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConfig($function, $params = null) @@ -218,6 +219,7 @@ class LBS4 extends AbstractBase implements TranslatorAwareInterface * @return array On success, an associative array with the following * keys: id, availability (boolean), status, location, reserve, callnumber, * duedate, number, barcode. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getHolding($ppn, array $patron = null) @@ -347,6 +349,7 @@ class LBS4 extends AbstractBase implements TranslatorAwareInterface * @param array $callnumber The callnumber of the item * * @return string On success, a string to be displayed near the item + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function getNote($loanind, $locid, $callnumber) @@ -380,6 +383,7 @@ class LBS4 extends AbstractBase implements TranslatorAwareInterface * * @return string On success, a url string to be displayed as * storage link. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function getStorage($locid, $callnumber) @@ -699,6 +703,7 @@ class LBS4 extends AbstractBase implements TranslatorAwareInterface * @param string $id The record id to retrieve the info for * * @return mixed An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) diff --git a/module/VuFind/src/VuFind/ILS/Driver/NewGenLib.php b/module/VuFind/src/VuFind/ILS/Driver/NewGenLib.php index 33b08413f88fc671b930f448b0b167c52ed9bb74..6e84b92ea61c9b72947950215ac8fda08b448aeb 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/NewGenLib.php +++ b/module/VuFind/src/VuFind/ILS/Driver/NewGenLib.php @@ -492,6 +492,7 @@ class NewGenLib extends AbstractBase * * @throws ILSException * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) @@ -533,6 +534,7 @@ class NewGenLib extends AbstractBase * * @throws ILSException * @return array An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) diff --git a/module/VuFind/src/VuFind/ILS/Driver/NoILS.php b/module/VuFind/src/VuFind/ILS/Driver/NoILS.php index 364c3f8ec1eb368bfc163a31635095e5a6007639..d4b96452e668283ae782edbd9c8ae94ee93d304e 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/NoILS.php +++ b/module/VuFind/src/VuFind/ILS/Driver/NoILS.php @@ -83,6 +83,7 @@ class NoILS extends AbstractBase implements TranslatorAwareInterface * @param array $params Optional feature-specific parameters (array) * * @return array An array with key-value pairs. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConfig($function, $params = null) @@ -259,6 +260,7 @@ class NoILS extends AbstractBase implements TranslatorAwareInterface * @param string $id The record id to retrieve the holdings for * * @return bool True if holdings exist, False if they do not + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function hasHoldings($id) @@ -302,6 +304,7 @@ class NoILS extends AbstractBase implements TranslatorAwareInterface * whatever that may mean. * * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) @@ -347,6 +350,7 @@ class NoILS extends AbstractBase implements TranslatorAwareInterface * @throws ILSException * @return mixed Associative array of patron info on successful login, * null on unsuccessful login. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function patronLogin($username, $password) diff --git a/module/VuFind/src/VuFind/ILS/Driver/PICA.php b/module/VuFind/src/VuFind/ILS/Driver/PICA.php index fc58073af5c18a8f715a37c4702505e2fbebaf74..90b73b3e110d1c6795d406fde32b437e8e08f0c7 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/PICA.php +++ b/module/VuFind/src/VuFind/ILS/Driver/PICA.php @@ -202,6 +202,7 @@ class PICA extends DAIA * @throws \VuFind\Exception\Date * @throws ILSException * @return array Array of the patron's transactions on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getMyTransactions($patron) @@ -376,6 +377,7 @@ class PICA extends DAIA * @param string $recordId Record identifier * * @return bool True on success + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function renew($recordId) @@ -411,6 +413,7 @@ class PICA extends DAIA * @throws \VuFind\Exception\Date * @throws ILSException * @return mixed Array of the patron's fines on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getMyFines($patron) @@ -477,6 +480,7 @@ class PICA extends DAIA * @throws \VuFind\Exception\Date * @throws ILSException * @return array Array of the patron's holds on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getMyHolds($patron) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Polaris.php b/module/VuFind/src/VuFind/ILS/Driver/Polaris.php index 4b1aae0f97fbed74e08bf2ce0efb524fc45f2d0c..b3d4a054faecb9143918f17871ff697abb261e9d 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Polaris.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Polaris.php @@ -294,6 +294,7 @@ class Polaris extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * @param array $params Optional feature-specific parameters (array) * * @return array An array with key-value pairs. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConfig($function, $params = null) @@ -388,6 +389,7 @@ class Polaris extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * @throws ILSException * @return array An array of associative arrays with locationID * and locationDisplay keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPickUpLocations($patron = false, $holdDetails = null) @@ -427,6 +429,7 @@ class Polaris extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * or may be ignored. * * @return string The default pickup location for the patron. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getDefaultPickUpLocation($patron = false, $holdDetails = null) @@ -465,6 +468,7 @@ class Polaris extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * whatever that may mean. * * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) @@ -482,6 +486,7 @@ class Polaris extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * @param string $dept ID from getDepartments (empty string to match all) * * @return mixed An array of associative arrays representing reserve items. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function findReserves($course, $inst, $dept) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Sample.php b/module/VuFind/src/VuFind/ILS/Driver/Sample.php index 77d6852b33ddeca1c99a699d01e173ade9442bdc..87ebada9018d3e8d8ea183982f7e7bc74d7f8926 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Sample.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Sample.php @@ -113,6 +113,7 @@ class Sample extends AbstractBase * @return mixed On success, an associative array with the following keys: * id, availability (boolean), status, location, reserve, callnumber, duedate, * number, barcode. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getHolding($id, array $patron = null) @@ -129,6 +130,7 @@ class Sample extends AbstractBase * @param string $id The record id to retrieve the info for * * @return mixed An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) @@ -152,6 +154,7 @@ class Sample extends AbstractBase * whatever that may mean. * * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) @@ -169,6 +172,7 @@ class Sample extends AbstractBase * @param string $dept ID from getDepartments (empty string to match all) * * @return mixed An array of associative arrays representing reserve items. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function findReserves($course, $inst, $dept) @@ -186,6 +190,7 @@ class Sample extends AbstractBase * * @return mixed Associative array of patron info on successful login, * null on unsuccessful login. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function patronLogin($username, $password) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Sierra.php b/module/VuFind/src/VuFind/ILS/Driver/Sierra.php index dd7e71c0a14df42b968318d6addd53c7228c3a0b..2ee624ccb66066932b4a35fba7c4c1ac076f05ac 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Sierra.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Sierra.php @@ -276,6 +276,7 @@ class Sierra extends AbstractBase * * @throws ILSException * @return array An array of associative arrays representing reserve items. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function findReserves($course, $instructor, $department) @@ -588,6 +589,7 @@ class Sierra extends AbstractBase * * @throws ILSException * @return array An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Symphony.php b/module/VuFind/src/VuFind/ILS/Driver/Symphony.php index dd846936a1f8edfe4d084b3e1ab9a833dab52543..90ab240ffbbbd728e62f8628017638196034cfa8 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Symphony.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Symphony.php @@ -1443,6 +1443,7 @@ class Symphony extends AbstractBase * @param array $params Optional feature-specific parameters (array) * * @return array An array with key-value pairs. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConfig($function, $params = null) @@ -1646,6 +1647,7 @@ class Symphony extends AbstractBase * * @return array An array of associative arrays with locationID and * locationDisplay keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPickUpLocations($patron = false, $holdDetails = null) @@ -1675,6 +1677,7 @@ class Symphony extends AbstractBase * or may be ignored. * * @return string The default pickup location for the patron. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getDefaultPickUpLocation($patron = false, $holdDetails = null) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php b/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php index 7cb278b9beabc1d95c4e0de4a36940bcbacb29c0..5243c93c61b9adc4d9f3736edb18e0a7f3187c40 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Unicorn.php @@ -128,6 +128,7 @@ class Unicorn extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * @param array $params Optional feature-specific parameters (array) * * @return array An array with key-value pairs. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConfig($function, $params = null) @@ -157,6 +158,7 @@ class Unicorn extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * @throws ILSException * @return array An array of associative arrays with locationID and * locationDisplay keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPickUpLocations($patron = false, $holdDetails = null) @@ -190,6 +192,7 @@ class Unicorn extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * or may be ignored. * * @return string The default pickup location for the patron. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getDefaultPickUpLocation($patron = false, $holdDetails = null) @@ -374,6 +377,7 @@ class Unicorn extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * * @throws ILSException * @return array An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) @@ -983,6 +987,7 @@ class Unicorn extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * * @throws ILSException * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Virtua.php b/module/VuFind/src/VuFind/ILS/Driver/Virtua.php index 3c04c0b274ccfa4412a255434fc2aaaabac4cd97..d47b9597762d7d13970f4e2fa8c704a4d7cdaadd 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Virtua.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Virtua.php @@ -1407,6 +1407,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa * * @throws ILSException * @return array An array of associative arrays representing reserve items. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function findReserves($course, $inst = false, $dept = false) @@ -1611,6 +1612,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa * @param array $holdDetails An array of item data * * @return string Data for use in a form field + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getCancelHoldDetails($holdDetails) @@ -1628,6 +1630,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa * * @return array An array of data on each request including * whether or not it was successful and a system message (if available) + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function cancelHolds($cancelDetails) @@ -1731,6 +1734,7 @@ class Virtua extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterfa * @param array $checkOutDetails An array of item data * * @return string Data for use in a form field + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getRenewDetails($checkOutDetails) diff --git a/module/VuFind/src/VuFind/ILS/Driver/Voyager.php b/module/VuFind/src/VuFind/ILS/Driver/Voyager.php index 69ef017add9606a3bac5537a2acf794381010933..939b9d0f250eabf20592a3eaf9b79b914698182a 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Voyager.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Voyager.php @@ -982,6 +982,7 @@ class Voyager extends AbstractBase * @throws DateException * @throws ILSException * @return array Keyed data + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function processHoldingData($data, $id, $patron = false) @@ -1304,6 +1305,7 @@ class Voyager extends AbstractBase * * @throws DateException * @return array Keyed data for display by template files + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function processMyTransactionsData($sqlRow, $patron = false) @@ -1921,6 +1923,7 @@ class Voyager extends AbstractBase * @param array $details Item details from getHoldings return array * * @return string URL to ILS's OPAC's place hold screen. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getHoldLink($recordId, $details) diff --git a/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php b/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php index 952b2141e83c629b83d9ddfc7822380760c79da9..fc9a215742e312444df18aadb4bff310166b9a26 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php +++ b/module/VuFind/src/VuFind/ILS/Driver/VoyagerRestful.php @@ -308,6 +308,7 @@ class VoyagerRestful extends Voyager implements \VuFindHttp\HttpServiceAwareInte * @param array $params Optional feature-specific parameters (array) * * @return array An array with key-value pairs. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConfig($function, $params = null) @@ -451,6 +452,7 @@ class VoyagerRestful extends Voyager implements \VuFindHttp\HttpServiceAwareInte * @param array $holdingsRow The holdings row to analyze. * * @return bool Whether an item is holdable + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function isILLRequestAllowed($holdingsRow) @@ -709,6 +711,7 @@ class VoyagerRestful extends Voyager implements \VuFindHttp\HttpServiceAwareInte * @throws ILSException * @return array An array of associative arrays with locationID and * locationDisplay keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPickUpLocations($patron = false, $holdDetails = null) @@ -777,6 +780,7 @@ class VoyagerRestful extends Voyager implements \VuFindHttp\HttpServiceAwareInte * * @return false|string The default pickup location for the patron or false * if the user has to choose. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getDefaultPickUpLocation($patron = false, $holdDetails = null) @@ -798,6 +802,7 @@ class VoyagerRestful extends Voyager implements \VuFindHttp\HttpServiceAwareInte * * @return false|string The default request group for the patron or false if * the user has to choose. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getDefaultRequestGroup($patron = false, $holdDetails = null) @@ -2776,6 +2781,7 @@ EOT; * * @return bool|array False if request not allowed, or an array of * locations. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getILLPickupLocations($id, $pickupLib, $patron) @@ -3210,6 +3216,7 @@ EOT; * * @return bool True if the method can be called with the given parameters, * false otherwise. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function supportsMethod($method, $params) diff --git a/module/VuFind/src/VuFind/ILS/Driver/XCNCIP2.php b/module/VuFind/src/VuFind/ILS/Driver/XCNCIP2.php index 02d44c2acc5e0990f5ed8756e7febf2ef0511d1f..ef2842f8f56e0dab0d5950aefc2e2c83502786e1 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/XCNCIP2.php +++ b/module/VuFind/src/VuFind/ILS/Driver/XCNCIP2.php @@ -485,6 +485,7 @@ class XCNCIP2 extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * @return array On success, an associative array with the following * keys: id, availability (boolean), status, location, reserve, callnumber, * duedate, number, barcode. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConsortialHoldings($id, array $patron = null, @@ -582,6 +583,7 @@ class XCNCIP2 extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * * @throws ILSException * @return array An array with the acquisitions data on success. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPurchaseHistory($id) @@ -890,6 +892,7 @@ class XCNCIP2 extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * * @throws ILSException * @return array Associative array with 'count' and 'results' keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getNewItems($page, $limit, $daysOld, $fundId = null) @@ -965,6 +968,7 @@ class XCNCIP2 extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * * @throws ILSException * @return array An array of associative arrays representing reserve items. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function findReserves($course, $inst, $dept) @@ -993,6 +997,7 @@ class XCNCIP2 extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * @param array $params Optional feature-specific parameters (array) * * @return array An array with key-value pairs. + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConfig($function, $params = null) @@ -1030,6 +1035,7 @@ class XCNCIP2 extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * or may be ignored. * * @return string A location ID + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getDefaultPickUpLocation($patron, $holdDetails = null) @@ -1053,6 +1059,7 @@ class XCNCIP2 extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * * @return array An array of associative arrays with locationID and * locationDisplay keys + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getPickUpLocations($patron, $holdDetails = null) @@ -1139,6 +1146,7 @@ class XCNCIP2 extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterf * @param patron $patron An array of patron data * * @return bool True if request is valid, false if not + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function checkStorageRetrievalRequestIsValid($id, $data, $patron) diff --git a/module/VuFind/src/VuFind/Recommend/DPLATerms.php b/module/VuFind/src/VuFind/Recommend/DPLATerms.php index 94d309e6d4ccb24994b631fa790cef81e24294c7..3cd2002a2fd2c91bb8f26d8339461d83fda2ee36 100644 --- a/module/VuFind/src/VuFind/Recommend/DPLATerms.php +++ b/module/VuFind/src/VuFind/Recommend/DPLATerms.php @@ -131,6 +131,7 @@ class DPLATerms implements RecommendInterface * request. * * @return void + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function init($params, $request) diff --git a/module/VuFind/src/VuFind/RecordDriver/EDS.php b/module/VuFind/src/VuFind/RecordDriver/EDS.php index 7b98ac75d64d94d98a10fe48d832e1de26ab5d82..f6565aaf0bc180930c782fad55028d9b0a72d3eb 100644 --- a/module/VuFind/src/VuFind/RecordDriver/EDS.php +++ b/module/VuFind/src/VuFind/RecordDriver/EDS.php @@ -561,6 +561,7 @@ class EDS extends SolrDefault * @param string $format Export format * * @return bool + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function exportDisabled($format) diff --git a/module/VuFind/src/VuFind/RecordDriver/Primo.php b/module/VuFind/src/VuFind/RecordDriver/Primo.php index 8e5d9e9baab0903701c819a228651ee5b2975e67..8d96ed412072896e47731b61ce0449d2fb8bb428 100644 --- a/module/VuFind/src/VuFind/RecordDriver/Primo.php +++ b/module/VuFind/src/VuFind/RecordDriver/Primo.php @@ -298,6 +298,7 @@ class Primo extends SolrDefault * @param string $format Export format * * @return bool + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function exportDisabled($format) diff --git a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php index fa4a88e37fdfad9518e27e7208244071db18bc8a..3e131a11c56cf27dd50058c25cca659995f48edb 100644 --- a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php +++ b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php @@ -40,6 +40,7 @@ use VuFindCode\ISBN, VuFind\View\Helper\Root\RecordLink; * @author Demian Katz <demian.katz@villanova.edu> * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://vufind.org/wiki/vufind2:record_drivers Wiki + * * @SuppressWarnings(PHPMD.ExcessivePublicCount) */ class SolrDefault extends AbstractBase diff --git a/module/VuFind/src/VuFind/Search/Base/Params.php b/module/VuFind/src/VuFind/Search/Base/Params.php index 16660a41608336f654797ae938c71463e08322c8..6c6e5449b41dd77499fd300e9173d0a5dd981604 100644 --- a/module/VuFind/src/VuFind/Search/Base/Params.php +++ b/module/VuFind/src/VuFind/Search/Base/Params.php @@ -1583,6 +1583,7 @@ class Params implements ServiceLocatorAwareInterface * will be favored. * * @return void + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function activateAllFacets($preferredSection = false) @@ -1602,6 +1603,7 @@ class Params implements ServiceLocatorAwareInterface * @param array $ids Record IDs to load * * @return void + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function setQueryIDs($ids) diff --git a/module/VuFind/src/VuFind/Search/Solr/DeduplicationListener.php b/module/VuFind/src/VuFind/Search/Solr/DeduplicationListener.php index 17c0fa938155250e651af014d90f0b6c3c984fc0..0719788af5b157d5d6ac20303cd35a2d2dfb74ec 100644 --- a/module/VuFind/src/VuFind/Search/Solr/DeduplicationListener.php +++ b/module/VuFind/src/VuFind/Search/Solr/DeduplicationListener.php @@ -284,6 +284,7 @@ class DeduplicationListener * @param array $sourcePriority Array of source priorities keyed by source id * * @return array Local record data + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function appendDedupRecordFields($localRecordData, $dedupRecordData, diff --git a/module/VuFind/src/VuFind/ServiceManager/AbstractPluginFactory.php b/module/VuFind/src/VuFind/ServiceManager/AbstractPluginFactory.php index 26e4f322b4aae300b984031207dac33fee4c2ef1..50de04035ffe40cd26d4e3aa023c438fbe0e0456 100644 --- a/module/VuFind/src/VuFind/ServiceManager/AbstractPluginFactory.php +++ b/module/VuFind/src/VuFind/ServiceManager/AbstractPluginFactory.php @@ -86,6 +86,7 @@ abstract class AbstractPluginFactory implements AbstractFactoryInterface * @param string $requestedName Unfiltered name of service * * @return bool + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, @@ -103,6 +104,7 @@ abstract class AbstractPluginFactory implements AbstractFactoryInterface * @param string $requestedName Unfiltered name of service * * @return object + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function createServiceWithName(ServiceLocatorInterface $serviceLocator, diff --git a/module/VuFind/src/VuFind/ServiceManager/AbstractPluginManager.php b/module/VuFind/src/VuFind/ServiceManager/AbstractPluginManager.php index 3fdda41e3d799e4436ebae1064c685e9e9412d56..ddd053993c25b6db4edcf7f747d100a0dfd5e692 100644 --- a/module/VuFind/src/VuFind/ServiceManager/AbstractPluginManager.php +++ b/module/VuFind/src/VuFind/ServiceManager/AbstractPluginManager.php @@ -38,6 +38,7 @@ use Zend\ServiceManager\AbstractPluginManager as Base, * @author Demian Katz <demian.katz@villanova.edu> * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link http://vufind.org/wiki/vufind2:developer_manual Wiki + * * @SuppressWarnings(PHPMD.NumberOfChildren) */ abstract class AbstractPluginManager extends Base diff --git a/module/VuFind/src/VuFind/Session/AbstractBase.php b/module/VuFind/src/VuFind/Session/AbstractBase.php index 9603b4c77962d901ecaa54d2d0b7892f1072309e..4ddfe1a2e0674fadc7dd511ce542859fe3292334 100644 --- a/module/VuFind/src/VuFind/Session/AbstractBase.php +++ b/module/VuFind/src/VuFind/Session/AbstractBase.php @@ -82,6 +82,7 @@ abstract class AbstractBase implements SaveHandlerInterface, * @param string $sess_name Session name * * @return void + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function open($sess_path, $sess_name) @@ -125,6 +126,7 @@ abstract class AbstractBase implements SaveHandlerInterface, * @param int $sess_maxlifetime Maximum session lifetime. * * @return void + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function gc($sess_maxlifetime) diff --git a/module/VuFind/src/VuFind/Statistics/Driver/AbstractBase.php b/module/VuFind/src/VuFind/Statistics/Driver/AbstractBase.php index 741460a826870c8cee2c8777445bdfb995060096..ab2a80ecd7b7492f50601565cb764281ef29f4b1 100644 --- a/module/VuFind/src/VuFind/Statistics/Driver/AbstractBase.php +++ b/module/VuFind/src/VuFind/Statistics/Driver/AbstractBase.php @@ -84,6 +84,7 @@ abstract class AbstractBase * @param array $value Extra options for search. Value => match this value * * @return array + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getFullList($field, $value = array()) @@ -99,6 +100,7 @@ abstract class AbstractBase * @param integer $limit How many items to return * * @return array + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getBrowserStats($version, $limit) diff --git a/module/VuFindConsole/Module.php b/module/VuFindConsole/Module.php index f5178b8345c28a36836e4bc0694618fd4ab09423..1c8db1608c42fddf72e08c221798d00d556623e5 100644 --- a/module/VuFindConsole/Module.php +++ b/module/VuFindConsole/Module.php @@ -71,6 +71,7 @@ class Module implements \Zend\ModuleManager\Feature\ConsoleUsageProviderInterfac * @param Console $console Console adapter * * @return array + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function getConsoleUsage(Console $console) diff --git a/module/VuFindLocalTemplate/Module.php b/module/VuFindLocalTemplate/Module.php index 171fc98cdcaa5fb4b2a90486e49eadd53f0f121d..521a8ad247a0774133eb400cf6c8aa42806ddb73 100644 --- a/module/VuFindLocalTemplate/Module.php +++ b/module/VuFindLocalTemplate/Module.php @@ -72,6 +72,7 @@ class Module * @param ModuleManager $m Module manager * * @return void + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function init(ModuleManager $m) @@ -84,6 +85,7 @@ class Module * @param MvcEvent $e Event * * @return void + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function onBootstrap(MvcEvent $e) diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/LibGuides/QueryBuilder.php b/module/VuFindSearch/src/VuFindSearch/Backend/LibGuides/QueryBuilder.php index 3b2b396c0337f65371c183f43937449742b7ffcf..cbddd890636c207f40cb1c5901f26b23184ae971 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/LibGuides/QueryBuilder.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/LibGuides/QueryBuilder.php @@ -96,6 +96,7 @@ class QueryBuilder * @param QueryGroup $query QueryGroup to convert * * @return array + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function queryGroupToArray(QueryGroup $query) diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/Backend.php b/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/Backend.php index 781213ce569ee3faac0960a973148b60ffc59810..3ec251ad187770af88bfa0df62238563eaecd8d3 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/Backend.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/Backend.php @@ -246,6 +246,7 @@ class Backend extends AbstractBackend * @param int $offset Search offset * * @return RecordCollectionInterface + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function createRecordCollection($records, $total = 0, $offset = 0) diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/QueryBuilder.php b/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/QueryBuilder.php index 68424a25a81ed4a3b7c00587f8aa60f91396d397..1d80f0b22d63473bafef61942f96775c0a0a6c8f 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/QueryBuilder.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Pazpar2/QueryBuilder.php @@ -100,6 +100,7 @@ class QueryBuilder * @param QueryGroup $query QueryGroup to convert * * @return string + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function queryGroupToString(QueryGroup $query) diff --git a/module/VuFindTheme/src/VuFindTheme/InjectTemplateListener.php b/module/VuFindTheme/src/VuFindTheme/InjectTemplateListener.php index b2ccc29ac45956928365c3e6e021cbe8e28392a0..8244ad7dec32cf7eff636db4f7b2aee3c33a3813 100644 --- a/module/VuFindTheme/src/VuFindTheme/InjectTemplateListener.php +++ b/module/VuFindTheme/src/VuFindTheme/InjectTemplateListener.php @@ -59,6 +59,7 @@ class InjectTemplateListener extends \Zend\Mvc\View\Http\InjectTemplateListener * @param string $controller Controller name * * @return string + * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ protected function deriveModuleNamespace($controller) diff --git a/module/VuFindTheme/src/VuFindTheme/LessCompiler.php b/module/VuFindTheme/src/VuFindTheme/LessCompiler.php index 72f485fe40704e1f979eddb37fd8c04cf012ad4a..9697eec78ad241441c344691466d3d32e0f6d1a9 100644 --- a/module/VuFindTheme/src/VuFindTheme/LessCompiler.php +++ b/module/VuFindTheme/src/VuFindTheme/LessCompiler.php @@ -227,6 +227,7 @@ class LessCompiler * @param string $less Relative LESS filename * * @return string + * * @SuppressWarnings(PHPMD.UnusedLocalVariable) */ protected function makeRelative($css, $less)