diff --git a/module/VuFind/src/VuFind/Db/Table/PluginManager.php b/module/VuFind/src/VuFind/Db/Table/PluginManager.php index 057ce03e37123ff81582384c058c1479c38f56bb..1def44ac819c35ddac1de6dacc7b9e79f84f6bac 100644 --- a/module/VuFind/src/VuFind/Db/Table/PluginManager.php +++ b/module/VuFind/src/VuFind/Db/Table/PluginManager.php @@ -26,6 +26,7 @@ * @link http://vufind.org/wiki/vufind2:database_gateways Wiki */ namespace VuFind\Db\Table; +use Zend\ServiceManager\ConfigInterface; /** * Database table plugin manager @@ -43,11 +44,10 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager * * Make sure table gateways are properly initialized. * - * @param null|ConfigInterface $configuration Configuration settings (optional) + * @param ConfigInterface $configuration Configuration settings (optional) */ - public function __construct( - \Zend\ServiceManager\ConfigInterface $configuration = null - ) { + public function __construct(ConfigInterface $configuration = null) + { parent::__construct($configuration); $initializer = function ($instance, $manager) { $instance diff --git a/module/VuFind/src/VuFind/Recommend/PluginManager.php b/module/VuFind/src/VuFind/Recommend/PluginManager.php index d537edb793d09d87d67ff6f280a8adaea4127eac..cd14b1fbf0e5d0a599243eb31865b62b2879d768 100644 --- a/module/VuFind/src/VuFind/Recommend/PluginManager.php +++ b/module/VuFind/src/VuFind/Recommend/PluginManager.php @@ -26,6 +26,7 @@ * @link http://vufind.org/wiki/vufind2:recommendation_modules Wiki */ namespace VuFind\Recommend; +use Zend\ServiceManager\ConfigInterface; /** * Recommendation module plugin manager @@ -41,11 +42,10 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager /** * Constructor * - * @param null|ConfigInterface $configuration Configuration settings (optional) + * @param ConfigInterface $configuration Configuration settings (optional) */ - public function __construct( - \Zend\ServiceManager\ConfigInterface $configuration = null - ) { + public function __construct(ConfigInterface $configuration = null) + { // These plugins are not meant to be shared -- the same module may be used // multiple times with different configurations, so we need to build a new // copy each time the plugin is retrieved. diff --git a/module/VuFind/src/VuFind/RecordDriver/PluginManager.php b/module/VuFind/src/VuFind/RecordDriver/PluginManager.php index 17bc972f37db8a44336a31583b45267b21710544..407e0284bf2bf60971fe2d4a4e2cd5cd4d3de5e9 100644 --- a/module/VuFind/src/VuFind/RecordDriver/PluginManager.php +++ b/module/VuFind/src/VuFind/RecordDriver/PluginManager.php @@ -26,6 +26,7 @@ * @link http://vufind.org/wiki/vufind2:record_drivers Wiki */ namespace VuFind\RecordDriver; +use Zend\ServiceManager\ConfigInterface; /** * Record driver plugin manager @@ -41,11 +42,10 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager /** * Constructor * - * @param null|ConfigInterface $configuration Configuration settings (optional) + * @param ConfigInterface $configuration Configuration settings (optional) */ - public function __construct( - \Zend\ServiceManager\ConfigInterface $configuration = null - ) { + public function __construct(ConfigInterface $configuration = null) + { // Record drivers are not meant to be shared -- every time we retrieve one, // we are building a brand new object. $this->setShareByDefault(false); diff --git a/module/VuFind/src/VuFind/Related/PluginManager.php b/module/VuFind/src/VuFind/Related/PluginManager.php index af1d827f7ad005151f75005b1188b1a2035c2837..168adc757830865f964b5e869e0f19c9ee33bc7f 100644 --- a/module/VuFind/src/VuFind/Related/PluginManager.php +++ b/module/VuFind/src/VuFind/Related/PluginManager.php @@ -26,6 +26,7 @@ * @link http://vufind.org/wiki/vufind2:building_a_related_record_module Wiki */ namespace VuFind\Related; +use Zend\ServiceManager\ConfigInterface; /** * Related record plugin manager @@ -41,11 +42,10 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager /** * Constructor * - * @param null|ConfigInterface $configuration Configuration settings (optional) + * @param ConfigInterface $configuration Configuration settings (optional) */ - public function __construct( - \Zend\ServiceManager\ConfigInterface $configuration = null - ) { + public function __construct(ConfigInterface $configuration = null) + { // These plugins are not meant to be shared -- the same module may be used // multiple times with different configurations, so we need to build a new // copy each time the plugin is retrieved. diff --git a/module/VuFind/src/VuFind/Search/BackendManager.php b/module/VuFind/src/VuFind/Search/BackendManager.php index 45eb5690f930f19aec20417d28df8cb25dc1cd7f..16364ff107136c5f257e1aadab45eb5a7064d751 100644 --- a/module/VuFind/src/VuFind/Search/BackendManager.php +++ b/module/VuFind/src/VuFind/Search/BackendManager.php @@ -68,7 +68,7 @@ class BackendManager implements SharedListenerAggregateInterface /** * Constructor. * - * @param ServiceManager $registry Backend registry + * @param ServiceLocatorInterface $registry Backend registry * * @return void */ diff --git a/module/VuFind/src/VuFind/Search/Params/PluginManager.php b/module/VuFind/src/VuFind/Search/Params/PluginManager.php index baaa27cca4b8740853338ed0effcffdf17089f51..2bb6cdb56bac30a0d9ee61a74f51ce8feeb4d993 100644 --- a/module/VuFind/src/VuFind/Search/Params/PluginManager.php +++ b/module/VuFind/src/VuFind/Search/Params/PluginManager.php @@ -26,6 +26,7 @@ * @link http://vufind.org/wiki/vufind2:record_drivers Wiki */ namespace VuFind\Search\Params; +use Zend\ServiceManager\ConfigInterface; /** * Search params plugin manager @@ -41,11 +42,10 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager /** * Constructor * - * @param null|ConfigInterface $configuration Configuration settings (optional) + * @param ConfigInterface $configuration Configuration settings (optional) */ - public function __construct( - \Zend\ServiceManager\ConfigInterface $configuration = null - ) { + public function __construct(ConfigInterface $configuration = null) + { // These objects are not meant to be shared -- every time we retrieve one, // we are building a brand new object. $this->setShareByDefault(false); diff --git a/module/VuFind/src/VuFind/Search/Results/PluginManager.php b/module/VuFind/src/VuFind/Search/Results/PluginManager.php index 720e6bdae8f47c7b4c8b6b17b50816f2b2171cfe..15cfd57680f4faac36b4c81a9a6597389b6e1cd1 100644 --- a/module/VuFind/src/VuFind/Search/Results/PluginManager.php +++ b/module/VuFind/src/VuFind/Search/Results/PluginManager.php @@ -26,6 +26,7 @@ * @link http://vufind.org/wiki/vufind2:record_drivers Wiki */ namespace VuFind\Search\Results; +use Zend\ServiceManager\ConfigInterface; /** * Search results plugin manager @@ -41,11 +42,10 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager /** * Constructor * - * @param null|ConfigInterface $configuration Configuration settings (optional) + * @param ConfigInterface $configuration Configuration settings (optional) */ - public function __construct( - \Zend\ServiceManager\ConfigInterface $configuration = null - ) { + public function __construct(ConfigInterface $configuration = null) + { // These objects are not meant to be shared -- every time we retrieve one, // we are building a brand new object. $this->setShareByDefault(false); diff --git a/module/VuFind/src/VuFind/ServiceManager/AbstractPluginManager.php b/module/VuFind/src/VuFind/ServiceManager/AbstractPluginManager.php index f9721dac18a05e9570f0dddc1b8119a3089272af..3fdda41e3d799e4436ebae1064c685e9e9412d56 100644 --- a/module/VuFind/src/VuFind/ServiceManager/AbstractPluginManager.php +++ b/module/VuFind/src/VuFind/ServiceManager/AbstractPluginManager.php @@ -27,6 +27,7 @@ */ namespace VuFind\ServiceManager; use Zend\ServiceManager\AbstractPluginManager as Base, + Zend\ServiceManager\ConfigInterface, Zend\ServiceManager\Exception\RuntimeException as ServiceManagerRuntimeException; /** @@ -46,11 +47,10 @@ abstract class AbstractPluginManager extends Base * * Make sure table gateways are properly initialized. * - * @param null|ConfigInterface $configuration Configuration settings (optional) + * @param ConfigInterface $configuration Configuration settings (optional) */ - public function __construct( - \Zend\ServiceManager\ConfigInterface $configuration = null - ) { + public function __construct(ConfigInterface $configuration = null) + { parent::__construct($configuration); $this->addInitializer( array('VuFind\ServiceManager\Initializer', 'initPlugin'), false diff --git a/module/VuFind/src/VuFind/Statistics/Driver/PluginManager.php b/module/VuFind/src/VuFind/Statistics/Driver/PluginManager.php index 9f3590029efe7debdf4885ad8b4b9933f1d9de9f..6f78dc325563de01048136a0b7c9289657c37cea 100644 --- a/module/VuFind/src/VuFind/Statistics/Driver/PluginManager.php +++ b/module/VuFind/src/VuFind/Statistics/Driver/PluginManager.php @@ -26,6 +26,7 @@ * @link http://vufind.org/wiki/vufind2:statistics_drivers Wiki */ namespace VuFind\Statistics\Driver; +use Zend\ServiceManager\ConfigInterface; /** * Statistics driver plugin manager @@ -41,11 +42,10 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager /** * Constructor * - * @param null|ConfigInterface $configuration Configuration settings (optional) + * @param ConfigInterface $configuration Configuration settings (optional) */ - public function __construct( - \Zend\ServiceManager\ConfigInterface $configuration = null - ) { + public function __construct(ConfigInterface $configuration = null) + { // Stats drivers are not meant to be shared -- every time we retrieve one, // we are building a brand new object. $this->setShareByDefault(false); diff --git a/module/VuFindHttp/src/VuFindHttp/HttpService.php b/module/VuFindHttp/src/VuFindHttp/HttpService.php index b3f029fd7977fe83c9af34b03c961cfa3f1fc296..553c023125fa3b1083fa32ae78b527e12ed39cac 100644 --- a/module/VuFindHttp/src/VuFindHttp/HttpService.php +++ b/module/VuFindHttp/src/VuFindHttp/HttpService.php @@ -90,10 +90,10 @@ class HttpService implements HttpServiceInterface * * Returns the client given as argument with appropriate proxy setup. * - * @param Zend\Http\Client $client HTTP client - * @param array $options ZF2 ProxyAdapter options + * @param \Zend\Http\Client $client HTTP client + * @param array $options ZF2 ProxyAdapter options * - * @return Zend\Http\Client + * @return \Zend\Http\Client */ public function proxify(\Zend\Http\Client $client, array $options = array()) { diff --git a/module/VuFindHttp/src/VuFindHttp/HttpServiceInterface.php b/module/VuFindHttp/src/VuFindHttp/HttpServiceInterface.php index 3a16da3fe1cfe0c5b05c0297b7e4df14dce1ba49..d23f84044d113c3aa6a886908973ba9ee109b1ac 100644 --- a/module/VuFindHttp/src/VuFindHttp/HttpServiceInterface.php +++ b/module/VuFindHttp/src/VuFindHttp/HttpServiceInterface.php @@ -46,10 +46,10 @@ interface HttpServiceInterface * * Returns the client given as argument with appropriate proxy setup. * - * @param Zend\Http\Client $client HTTP client - * @param array $options ZF2 ProxyAdapter options + * @param \Zend\Http\Client $client HTTP client + * @param array $options ZF2 ProxyAdapter options * - * @return Zend\Http\Client + * @return \Zend\Http\Client */ public function proxify(\Zend\Http\Client $client, array $options = array());