]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 2 Feb 2025 01:42:31 +0000 (02:42 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 2 Feb 2025 01:47:56 +0000 (02:47 +0100)
- added more returned scalar and interface type-hints
- updated 'core' framework

95 files changed:
application/hub/classes/apt-proxy/console/class_NodeConsoleAptProxy.php
application/hub/classes/chat/console/class_NodeConsoleChat.php
application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php
application/hub/classes/commands/console/class_HubConsoleChatCommand.php
application/hub/classes/commands/console/class_HubConsoleCrawlerCommand.php
application/hub/classes/commands/console/class_HubConsoleCruncherCommand.php
application/hub/classes/commands/console/class_HubConsoleDaemonCommand.php
application/hub/classes/commands/console/class_HubConsoleMinerCommand.php
application/hub/classes/commands/html/class_HubHtmlIndexCommand.php
application/hub/classes/crawler/console/class_NodeConsoleDistributedCrawler.php
application/hub/classes/cruncher/openssl/class_HubOpenSslCruncher.php
application/hub/classes/discovery/class_BaseNodeDiscovery.php
application/hub/classes/filter/activation/node/class_NodeActivation
application/hub/classes/filter/activation/node/class_NodeActivationAnnouncementFilter.php
application/hub/classes/filter/apt-proxy/class_AptProxyInitializationFilter.php
application/hub/classes/filter/apt-proxy/class_AptProxyPhpRequirementsFilter.php
application/hub/classes/filter/apt-proxy/class_AptProxyWelcomeTeaserFilter.php
application/hub/classes/filter/bootstrap/apt-proxy/class_AptProxyBootstrap
application/hub/classes/filter/bootstrap/apt-proxy/class_AptProxyBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/apt-proxy/class_AptProxyBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/chat/class_ChatBootstrap
application/hub/classes/filter/bootstrap/chat/class_ChatBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/chat/class_ChatBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/class_HubBootstrap
application/hub/classes/filter/bootstrap/crawler/class_CrawlerBootstrap
application/hub/classes/filter/bootstrap/crawler/class_CrawlerBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/crawler/class_CrawlerBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrap
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrapBufferQueueInitializerFilter.php
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrap
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrapBufferQueueInitializerFilter.php
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/node/class_NodeBootstrap
application/hub/classes/filter/bootstrap/node/class_NodeBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/node/class_NodeBootstrapGenerateNodeIdFilter.php
application/hub/classes/filter/bootstrap/node/class_NodeBootstrapGeneratePrivateKeyFilter.php
application/hub/classes/filter/bootstrap/node/class_NodeBootstrapGenerateSessionIdFilter.php
application/hub/classes/filter/bootstrap/node/class_NodeBootstrapListenerPoolFilter.php
application/hub/classes/filter/chat/class_Chat
application/hub/classes/filter/chat/class_ChatInitializationFilter.php
application/hub/classes/filter/chat/class_ChatPhpRequirementsFilter.php
application/hub/classes/filter/chat/class_ChatWelcomeTeaserFilter.php
application/hub/classes/filter/class_
application/hub/classes/filter/class_BaseHubFilter.php
application/hub/classes/filter/console/class_Console
application/hub/classes/filter/crawler/class_Crawler [new file with mode: 0644]
application/hub/classes/filter/crawler/class_CrawlerInitializationFilter.php
application/hub/classes/filter/crawler/class_CrawlerPhpRequirementsFilter.php
application/hub/classes/filter/crawler/class_CrawlerWelcomeTeaserFilter.php
application/hub/classes/filter/cruncher/class_Cruncher
application/hub/classes/filter/cruncher/class_CruncherInitializationFilter.php
application/hub/classes/filter/cruncher/class_CruncherPhpRequirementsFilter.php
application/hub/classes/filter/cruncher/class_CruncherWelcomeTeaserFilter.php
application/hub/classes/filter/miner/class_Miner
application/hub/classes/filter/miner/class_MinerInitializationFilter.php
application/hub/classes/filter/miner/class_MinerPhpRequirementsFilter.php
application/hub/classes/filter/miner/class_MinerWelcomeTeaserFilter.php
application/hub/classes/filter/node/class_Node
application/hub/classes/filter/node/class_NodeInitializationFilter.php
application/hub/classes/filter/node/class_NodePhpRequirementsFilter.php
application/hub/classes/filter/node/class_NodeWelcomeTeaserFilter.php
application/hub/classes/filter/shutdown/apt-proxy/class_AptProxyShutdownFilter.php
application/hub/classes/filter/shutdown/chat/class_ChatShutdownFilter.php
application/hub/classes/filter/shutdown/class_HubShutdown
application/hub/classes/filter/shutdown/crawler/class_CrawlerShutdownFilter.php
application/hub/classes/filter/shutdown/cruncher/class_CruncherShutdownFilter.php
application/hub/classes/filter/shutdown/miner/class_MinerShutdownFilter.php
application/hub/classes/filter/shutdown/node/class_NodeShutdown
application/hub/classes/filter/shutdown/node/class_NodeShutdownFlushNodeListFilter.php
application/hub/classes/filter/shutdown/node/class_NodeShutdownNodeFilter.php
application/hub/classes/filter/shutdown/node/class_NodeShutdownTaskHandlerFilter.php
application/hub/classes/filter/tags/answer/class_PackageAnnouncementAnswerTagFilter.php
application/hub/classes/filter/tags/answer/class_PackageDhtBootstrapAnswerTagFilter.php
application/hub/classes/filter/tags/answer/class_PackageRequestNodeListAnswerTagFilter.php
application/hub/classes/filter/tags/class_PackageAnnouncementTagFilter.php
application/hub/classes/filter/tags/class_PackageDhtBootstrapTagFilter.php
application/hub/classes/filter/tags/class_PackageRequestNodeListTagFilter.php
application/hub/classes/filter/tags/class_PackageSelfConnectTagFilter.php
application/hub/classes/filter/task/apt-proxy/class_AptProxyTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/chat/class_ChatTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/class_BaseCrawlerTaskFilter.php
application/hub/classes/filter/task/crawler/class_CrawlerDistributedTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/cruncher/class_CruncherTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/miner/class_MinerTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/node/class_NodeTaskHandlerInitializerFilter.php
application/hub/classes/miner/chash/class_HubCoinMiner.php
application/hub/interfaces/apt-proxy/class_AptProxy.php
application/hub/interfaces/chat/class_Chatter.php
application/hub/interfaces/crawler/class_Crawler.php
application/hub/interfaces/cruncher/class_CruncherHelper.php
application/hub/interfaces/miner/class_MinerHelper.php
core

index dc3c37eaa243ecc9f2ade19f5421fd028358ad0e..7db18d70edb4b921a51711374877eb0abfc0b2a7 100644 (file)
@@ -47,7 +47,7 @@ class NodeConsoleAptProxy extends BaseNodeAptProxy implements AptProxy, Register
         *
         * @return      $proxyInstance  An instance of a AptProxy class
         */
-       public final static function createNodeConsoleAptProxy () {
+       public final static function createNodeConsoleAptProxy (): AptProxy {
                // Get new instance
                $proxyInstance = new NodeConsoleAptProxy();
 
@@ -62,7 +62,7 @@ class NodeConsoleAptProxy extends BaseNodeAptProxy implements AptProxy, Register
         *
         * @return      void
         */
-       public function doBootstrapping () {
+       public function doBootstrapping (): void {
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
@@ -72,7 +72,7 @@ class NodeConsoleAptProxy extends BaseNodeAptProxy implements AptProxy, Register
         *
         * @return      void
         */
-       public function outputConsoleTeaser () {
+       public function outputConsoleTeaser (): void {
                // Get the app instance (for shortening our code)
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -94,7 +94,7 @@ class NodeConsoleAptProxy extends BaseNodeAptProxy implements AptProxy, Register
         * @param       $responseInstance               An object of a Responseable instance
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void {
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
index 5d2bc88526120a6df451773c043a0a9490ce278b..deb28bd42c406d8fcb12406c06d413d2fda8ec3b 100644 (file)
@@ -47,7 +47,7 @@ class NodeConsoleChat extends BaseNodeChat implements Chatter, Registerable {
         *
         * @return      $chatInstance   An instance of a Chatter class
         */
-       public final static function createNodeConsoleChat () {
+       public final static function createNodeConsoleChat (): Chatter {
                // Get new instance
                $chatInstance = new NodeConsoleChat();
 
@@ -62,7 +62,7 @@ class NodeConsoleChat extends BaseNodeChat implements Chatter, Registerable {
         *
         * @return      void
         */
-       public function doBootstrapping () {
+       public function doBootstrapping (): void {
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
@@ -72,7 +72,7 @@ class NodeConsoleChat extends BaseNodeChat implements Chatter, Registerable {
         *
         * @return      void
         */
-       public function outputConsoleTeaser () {
+       public function outputConsoleTeaser (): void {
                // Get the app instance (for shortening our code)
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -94,7 +94,7 @@ class NodeConsoleChat extends BaseNodeChat implements Chatter, Registerable {
         * @param       $responseInstance               An object of a Responseable instance
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void {
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
index e55719a142ff9f6ad47178285be80788175ade0a..46f6092ebe2e618d67414bbd5e0f73bde3e0bea6 100644 (file)
@@ -52,7 +52,7 @@ class HubConsoleAptProxyCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHubConsoleAptProxyCommand (CommandResolver $resolverInstance) {
+       public static final function createHubConsoleAptProxyCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HubConsoleAptProxyCommand();
 
@@ -71,7 +71,7 @@ class HubConsoleAptProxyCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Try to create a AptProxyActivationTask or so
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a registry and the application instance from it
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -120,7 +120,7 @@ class HubConsoleAptProxyCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Should we add some more filters?
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Add pre filters
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('apt_proxy_php_requirements_filter_class'));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('apt_proxy_initializer_filter_class'));
index 5901b612b6a7eba022af3bc9552b24557b82dd75..f650fa3d8ce8e5ed0b2fc0a5b96aac5f1bd7a292 100644 (file)
@@ -52,7 +52,7 @@ class HubConsoleChatCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHubConsoleChatCommand (CommandResolver $resolverInstance) {
+       public static final function createHubConsoleChatCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HubConsoleChatCommand();
 
@@ -71,7 +71,7 @@ class HubConsoleChatCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Try to create a ChatActivationTask or so
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a registry and the application instance from it
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -120,7 +120,7 @@ class HubConsoleChatCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Should we add some more filters?
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Add pre filters
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('chat_php_requirements_filter_class'));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('chat_initializer_filter_class'));
index f97620097b0801b4b36ae4e9f920de1343033c6f..e39824e66677a6cd7b77c30248f29cbde98b3415 100644 (file)
@@ -52,7 +52,7 @@ class HubConsoleCrawlerCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHubConsoleCrawlerCommand (CommandResolver $resolverInstance) {
+       public static final function createHubConsoleCrawlerCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HubConsoleCrawlerCommand();
 
@@ -71,7 +71,7 @@ class HubConsoleCrawlerCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Try to create a CrawlerActivationTask or so
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a registry and the application instance from it
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -120,7 +120,7 @@ class HubConsoleCrawlerCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Should we add some more filters?
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Add pre filters
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('crawler_php_requirements_filter_class'));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('crawler_initializer_filter_class'));
index 81844264345c7ee13063970828a277311bd71b8a..d71af1e5e3397ae25480e8cc518ffe9ee418f323 100644 (file)
@@ -52,7 +52,7 @@ class HubConsoleCruncherCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHubConsoleCruncherCommand (CommandResolver $resolverInstance) {
+       public static final function createHubConsoleCruncherCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HubConsoleCruncherCommand();
 
@@ -71,7 +71,7 @@ class HubConsoleCruncherCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Try to create a CruncherActivationTask or so
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a registry and the application instance from it
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -120,7 +120,7 @@ class HubConsoleCruncherCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Should we add some more filters?
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Add pre filters
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('cruncher_php_requirements_filter_class'));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('cruncher_initializer_filter_class'));
index 2a3dc47b9a9099760388942e3aaeb05e11520518..41414bf5f429ef992fbf2e574c9914789e582ba7 100644 (file)
@@ -55,7 +55,7 @@ class HubConsoleDaemonCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHubConsoleDaemonCommand (CommandResolver $resolverInstance) {
+       public static final function createHubConsoleDaemonCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HubConsoleDaemonCommand();
 
@@ -74,7 +74,7 @@ class HubConsoleDaemonCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Try to create a HubActivationTask or so
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a registry and the application instance from it
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -131,7 +131,7 @@ class HubConsoleDaemonCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Should we add some more filters?
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Add pre filters
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('node_php_requirements_filter_class'));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('node_initializer_filter_class'));
index 90d3591ebeff66855b36540776c2deb7ad508fc1..231a3189db6c54b05efe3399dcba35600975a099 100644 (file)
@@ -52,7 +52,7 @@ class HubConsoleMinerCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHubConsoleMinerCommand (CommandResolver $resolverInstance) {
+       public static final function createHubConsoleMinerCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HubConsoleMinerCommand();
 
@@ -71,7 +71,7 @@ class HubConsoleMinerCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Try to create a MinerActivationTask or so
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a registry and the application instance from it
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -120,7 +120,7 @@ class HubConsoleMinerCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Should we add some more filters?
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Add pre filters
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('miner_php_requirements_filter_class'));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('miner_initializer_filter_class'));
index 3066057abf176b398a9f514fc5c7d346bcc030dd..33001ec0053687b52a3bc2e7c4b0f542cc7d7dc6 100644 (file)
@@ -50,7 +50,7 @@ class HubHtmlIndexCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHubHtmlIndexCommand (CommandResolver $resolverInstance) {
+       public static final function createHubHtmlIndexCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HubHtmlIndexCommand();
 
@@ -68,7 +68,7 @@ class HubHtmlIndexCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // This command doesn't handle any POST requests, so only handle get request
                if ($requestInstance->isPostRequestMethod()) {
                        // Don't handle this here
@@ -93,7 +93,7 @@ class HubHtmlIndexCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        0% done
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Add pre filters
                //$controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('node_php_requirements_filter_class'));
        }
index 649b73b46af4d0e81afcade30cff58bb22b5ee8a..b38fbd781b640d7ae7e86a80e57802a45a346936 100644 (file)
@@ -49,7 +49,7 @@ class NodeConsoleDistributedCrawler extends BaseNodeCrawler implements Crawler,
         *
         * @return      $crawlerInstance        An instance of a Crawler class
         */
-       public final static function createNodeConsoleDistributedCrawler () {
+       public final static function createNodeConsoleDistributedCrawler (): Crawler {
                // Get new instance
                $crawlerInstance = new NodeConsoleDistributedCrawler();
 
@@ -64,7 +64,7 @@ class NodeConsoleDistributedCrawler extends BaseNodeCrawler implements Crawler,
         *
         * @return      void
         */
-       public function doBootstrapping () {
+       public function doBootstrapping (): void {
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
@@ -74,7 +74,7 @@ class NodeConsoleDistributedCrawler extends BaseNodeCrawler implements Crawler,
         *
         * @return      void
         */
-       public function outputConsoleTeaser () {
+       public function outputConsoleTeaser (): void {
                // Get the app instance (for shortening our code)
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -96,7 +96,7 @@ class NodeConsoleDistributedCrawler extends BaseNodeCrawler implements Crawler,
         * @param       $responseInstance               An object of a Responseable instance
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void {
                // Add distributed crawler related bootstrap-filters
                $controllerInstance->addBootstrapFilter(ObjectFactory::createObjectByConfiguredName('crawler_bootstrap_distributed_task_handler_initializer_filter_class'));
        }
index 022f5783fc3f1aac4de5a2507f1f4151757017c6..5b2139ee714856f67658c4c469c453054c789b0e 100644 (file)
@@ -55,7 +55,7 @@ class HubOpenSslCruncher extends BaseHubCruncher implements CruncherHelper, Regi
         *
         * @return      $cruncherInstance       An instance of this hub-cruncher class
         */
-       public final static function createHubOpenSslCruncher () {
+       public final static function createHubOpenSslCruncher (): CruncherHelper {
                // Get a new instance
                $cruncherInstance = new HubOpenSslCruncher();
 
@@ -74,7 +74,7 @@ class HubOpenSslCruncher extends BaseHubCruncher implements CruncherHelper, Regi
         *
         * @return      void
         */
-       protected function fillInBufferQueueWithTestUnits () {
+       protected function fillInBufferQueueWithTestUnits (): void {
                // Are test units enabled?
                if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('cruncher_test_units_enabled') == 'N') {
                        // They are disabled, so skip any further steps
@@ -103,7 +103,7 @@ class HubOpenSslCruncher extends BaseHubCruncher implements CruncherHelper, Regi
         *
         * @return      void
         */
-       protected function fillInBufferQueueWithWorkUnits () {
+       protected function fillInBufferQueueWithWorkUnits (): void {
                // This cruncher's state must not be one of these: 'virgin'
                if ($this->getStateInstance()->isCruncherStateVirgin()) {
                        // We can silently skip here, until the generation is finished
@@ -122,7 +122,7 @@ class HubOpenSslCruncher extends BaseHubCruncher implements CruncherHelper, Regi
         * @return      void
         * @todo        Implement this method
         */
-       public function doBootstrapping () {
+       public function doBootstrapping (): void {
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
@@ -132,7 +132,7 @@ class HubOpenSslCruncher extends BaseHubCruncher implements CruncherHelper, Regi
         *
         * @return      void
         */
-       public function outputConsoleTeaser () {
+       public function outputConsoleTeaser (): void {
                // Output all lines
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(' ');
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('OpenSSL Cruncher v' . $this->getVersion() . ' is starting ...');
@@ -152,7 +152,7 @@ class HubOpenSslCruncher extends BaseHubCruncher implements CruncherHelper, Regi
         * @return      void
         * @todo        0% done
         */
-       public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void {
                // Add some filters here
                DebugMiddleware::getSelfInstance()->partialStub('Please add some cruncher-specific filters, if required.');
        }
index 5ce921769502e8394fbda90dc86e664ed1eeb431..211fbba6adb810bc52f5b5858a10777c78c67e4e 100644 (file)
@@ -51,7 +51,7 @@ abstract class BaseNodeDiscovery extends BaseDiscovery implements Discoverable {
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called
         */
-       public function discover (Requestable $requestInstance) {
+       public function discover (Requestable $requestInstance): void {
                throw new UnsupportedOperationException('This method is not supported.');
        }
 
@@ -62,7 +62,7 @@ abstract class BaseNodeDiscovery extends BaseDiscovery implements Discoverable {
         * @return      void
         * @todo        0% done
         */
-       public function addResultsToHelper (HelpableTemplate $helperInstance) {
+       public function addResultsToHelper (HelpableTemplate $helperInstance): void {
                // Undone part
                DebugMiddleware::getSelfInstance()->partialStub('Unfinished method. helperInstance=' . $helperInstance->__toString());
        }
index a5301ba544dc0fc66aa8ead1be494358734046ad..a8375606c600f74956cc76897dce328362a3c861 100644 (file)
@@ -50,7 +50,7 @@ class HubActivation???Filter extends BaseNodeFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createHubActivation???Filter () {
+       public final static function createHubActivation???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new HubActivation???Filter();
 
@@ -66,14 +66,12 @@ class HubActivation???Filter extends BaseNodeFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
 
                // Now do something
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.');
        }
-}
 
-// [EOF]
-?>
+}
index b07ccb707008eed123910e34e3ad1d57adb7ecef..e7048af68d3e9416e023f8fac85779265624e0b6 100644 (file)
@@ -50,7 +50,7 @@ class NodeActivationAnnouncementFilter extends BaseNodeFilter implements Filtera
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeActivationAnnouncementFilter () {
+       public static final function createNodeActivationAnnouncementFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeActivationAnnouncementFilter();
 
@@ -65,7 +65,7 @@ class NodeActivationAnnouncementFilter extends BaseNodeFilter implements Filtera
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get task handler instance
                $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
index 5db7f861ca67b1b28fcad0a3fe4be8a6e883a40b..9ad06cd93b51003a01e12cff8d5eba1e3f474ea5 100644 (file)
@@ -51,7 +51,7 @@ class AptProxyInitializationFilter extends BaseAptProxyFilter implements Filtera
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createAptProxyInitializationFilter () {
+       public static final function createAptProxyInitializationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new AptProxyInitializationFilter();
 
@@ -67,7 +67,7 @@ class AptProxyInitializationFilter extends BaseAptProxyFilter implements Filtera
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get an instance
                $proxyInstance = ObjectFactory::createObjectByConfiguredName('node_console_apt_proxy_class');
 
index 266c924433cff27deb502fd4a926d854caf0e04d..60e32eeed3dd110c25d5b35d94ffc0fc10a6fd36 100644 (file)
@@ -48,7 +48,7 @@ class AptProxyPhpRequirementsFilter extends BaseAptProxyFilter implements Filter
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createAptProxyPhpRequirementsFilter () {
+       public static final function createAptProxyPhpRequirementsFilter (): Filterable {
                // Get a new instance
                $filterInstance = new AptProxyPhpRequirementsFilter();
 
@@ -65,7 +65,7 @@ class AptProxyPhpRequirementsFilter extends BaseAptProxyFilter implements Filter
         * @throws      FilterChainException    If a required PHP function is not available
         * @todo        Add more test and try to add an extra message to the thrown exception
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // By default, the requirement check is passed and zero checks are failed
                $checkPassed = TRUE;
                $checksFailed = 0;
index f2f9a5b10cb7353a2358f8e757e66ad36e0a39d3..326c30ebee1b14818e3662a1cce70449cd00fd6a 100644 (file)
@@ -49,7 +49,7 @@ class AptProxyWelcomeTeaserFilter extends BaseAptProxyFilter implements Filterab
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createAptProxyWelcomeTeaserFilter () {
+       public static final function createAptProxyWelcomeTeaserFilter (): Filterable {
                // Get a new instance
                $filterInstance = new AptProxyWelcomeTeaserFilter();
 
@@ -66,7 +66,7 @@ class AptProxyWelcomeTeaserFilter extends BaseAptProxyFilter implements Filterab
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         * @todo        Handle over the $responseInstance to outputConsoleTeaser()
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $proxyInstance = ObjectRegistry::getRegistry('factory')->getInstance('apt_proxy');
 
index 592cc6267fd2a9766d4718027af54998155a0590..30ce9865d1bd3b00a66fd6ee8a7a2611c7feebf6 100644 (file)
@@ -47,7 +47,7 @@ class AptProxyBootstrap???Filter extends BaseAptProxyFilter implements Filterabl
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createAptProxyBootstrap???Filter () {
+       public final static function createAptProxyBootstrap???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new AptProxyBootstrap???Filter();
 
@@ -63,7 +63,7 @@ class AptProxyBootstrap???Filter extends BaseAptProxyFilter implements Filterabl
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get apt-proxy instance
                $proxyInstance = ObjectRegistry::getRegistry('factory')->getInstance('apt_proxy');
 
index 9658479f1275b3f542b8d98e21fd35caa1e5b81d..2bc685158718f75941ab59162d1eeb10f71875ab 100644 (file)
@@ -49,7 +49,7 @@ class AptProxyBootstrapExtraBootstrappingFilter extends BaseAptProxyFilter imple
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createAptProxyBootstrapExtraBootstrappingFilter () {
+       public static final function createAptProxyBootstrapExtraBootstrappingFilter (): Filterable {
                // Get a new instance
                $filterInstance = new AptProxyBootstrapExtraBootstrappingFilter();
 
@@ -65,7 +65,7 @@ class AptProxyBootstrapExtraBootstrappingFilter extends BaseAptProxyFilter imple
         * @return      void
         * @throws      FilterChainException    If $proxyInstance is null (no NullPointerException here)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get apt-proxy instance
                $proxyInstance = ObjectRegistry::getRegistry('factory')->getInstance('apt_proxy');
 
index e075e949443a2c6cb50a4ef97705c5c27487c20a..c0e4d412cd38e515b596dba03017b123e3b59455 100644 (file)
@@ -49,7 +49,7 @@ class AptProxyBootstrapGenericActivationFilter extends BaseAptProxyFilter implem
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createAptProxyBootstrapGenericActivationFilter () {
+       public final static function createAptProxyBootstrapGenericActivationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new AptProxyBootstrapGenericActivationFilter();
 
@@ -65,7 +65,7 @@ class AptProxyBootstrapGenericActivationFilter extends BaseAptProxyFilter implem
         * @return      void
         * @todo        Maybe we want to do somthing more here?
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a apt-proxy instance
                $proxyInstance = ObjectRegistry::getRegistry('factory')->getInstance('apt_proxy');
 
index caf94d40691c9d1b5411cd5ee3996c31b8d2fe24..61558f54b40c177aa0da3c21b34acb379c5adbcd 100644 (file)
@@ -47,7 +47,7 @@ class ChatBootstrap???Filter extends BaseChatFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createChatBootstrap???Filter () {
+       public final static function createChatBootstrap???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new ChatBootstrap???Filter();
 
@@ -63,7 +63,7 @@ class ChatBootstrap???Filter extends BaseChatFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get chat instance
                $chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
 
index 0d3cf7c1c6596b6184cb612bb00a59bca94ac774..2343da42595ab2093da2b20ee21a0c6311e21ac0 100644 (file)
@@ -49,7 +49,7 @@ class ChatBootstrapExtraBootstrappingFilter extends BaseChatFilter implements Fi
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createChatBootstrapExtraBootstrappingFilter () {
+       public static final function createChatBootstrapExtraBootstrappingFilter (): Filterable {
                // Get a new instance
                $filterInstance = new ChatBootstrapExtraBootstrappingFilter();
 
@@ -65,7 +65,7 @@ class ChatBootstrapExtraBootstrappingFilter extends BaseChatFilter implements Fi
         * @return      void
         * @throws      FilterChainException    If $chatInstance is null (no NullPointerException here)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get chat instance
                $chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
 
index 21be0588b3647fc2b23736230e1988d10f1f9337..e3184a50a11589a31b0d2a5acd3481153667da5f 100644 (file)
@@ -49,7 +49,7 @@ class ChatBootstrapGenericActivationFilter extends BaseChatFilter implements Fil
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createChatBootstrapGenericActivationFilter () {
+       public final static function createChatBootstrapGenericActivationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new ChatBootstrapGenericActivationFilter();
 
@@ -65,7 +65,7 @@ class ChatBootstrapGenericActivationFilter extends BaseChatFilter implements Fil
         * @return      void
         * @todo        Maybe we want to do somthing more here?
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a chat instance
                $chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
 
index f551ef47b7591c74e7b59193e56a1fa6505a87ab..7d6dceec926b2c790d8a6cc64b29a822d57f79e9 100644 (file)
@@ -1,3 +1,2 @@
 <?php
 // @DEPRECATED
-?>
index eaf906032c586afeb62a237f1f41713a94e97596..8602c829ef599db8d90c236a8d9ce8219bcbaadb 100644 (file)
@@ -47,7 +47,7 @@ class CrawlerBootstrap???Filter extends BaseCrawlerFilter implements Filterable
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createCrawlerBootstrap???Filter () {
+       public final static function createCrawlerBootstrap???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new CrawlerBootstrap???Filter();
 
@@ -63,7 +63,7 @@ class CrawlerBootstrap???Filter extends BaseCrawlerFilter implements Filterable
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get crawler instance
                $crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
 
index 5a82fa2f9a0d2160268cec03a0ba1aaf1439ec64..9c2b17094c8335c94deb58f6ad8ad4aa8366f195 100644 (file)
@@ -49,7 +49,7 @@ class CrawlerBootstrapExtraBootstrappingFilter extends BaseCrawlerFilter impleme
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCrawlerBootstrapExtraBootstrappingFilter () {
+       public static final function createCrawlerBootstrapExtraBootstrappingFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CrawlerBootstrapExtraBootstrappingFilter();
 
@@ -65,7 +65,7 @@ class CrawlerBootstrapExtraBootstrappingFilter extends BaseCrawlerFilter impleme
         * @return      void
         * @throws      FilterChainException    If $crawlerInstance is null (no NullPointerException here)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get crawler instance
                $crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
 
index 93116a9763c2368afb8f49eddc0aef10f9bc44d8..d147a8c56daeba6c3b10050b59618079c25c102d 100644 (file)
@@ -49,7 +49,7 @@ class CrawlerBootstrapGenericActivationFilter extends BaseCrawlerFilter implemen
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createCrawlerBootstrapGenericActivationFilter () {
+       public final static function createCrawlerBootstrapGenericActivationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CrawlerBootstrapGenericActivationFilter();
 
@@ -65,7 +65,7 @@ class CrawlerBootstrapGenericActivationFilter extends BaseCrawlerFilter implemen
         * @return      void
         * @todo        Maybe we want to do somthing more here?
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a crawler instance
                $crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
 
index 01bf372017412e29f2ea5dc4a5346c69353297b6..c0a4ffdec52db197c2496e53858eb83c6579b9eb 100644 (file)
@@ -47,7 +47,7 @@ class CruncherBootstrap???Filter extends BaseCruncherFilter implements Filterabl
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createCruncherBootstrap???Filter () {
+       public final static function createCruncherBootstrap???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new CruncherBootstrap???Filter();
 
@@ -63,7 +63,7 @@ class CruncherBootstrap???Filter extends BaseCruncherFilter implements Filterabl
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get cruncher instance
                $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
index 8ebabc6c4c73f18fdd3cd8f361f55d670703f2a3..512804ede791c049ad2f55d6743ba061dc4c8bf0 100644 (file)
@@ -49,7 +49,7 @@ class CruncherBootstrapBufferQueueInitializerFilter extends BaseCruncherFilter i
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createCruncherBootstrapBufferQueueInitializerFilter () {
+       public final static function createCruncherBootstrapBufferQueueInitializerFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CruncherBootstrapBufferQueueInitializerFilter();
 
@@ -65,7 +65,7 @@ class CruncherBootstrapBufferQueueInitializerFilter extends BaseCruncherFilter i
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get cruncher instance
                $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
index 3d7936b9c714e2762268b23e3a91f5ad50c12a4f..1df0304138652a1a72919e6919d3812119267016 100644 (file)
@@ -49,7 +49,7 @@ class CruncherBootstrapExtraBootstrappingFilter extends BaseCruncherFilter imple
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCruncherBootstrapExtraBootstrappingFilter () {
+       public static final function createCruncherBootstrapExtraBootstrappingFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CruncherBootstrapExtraBootstrappingFilter();
 
@@ -65,7 +65,7 @@ class CruncherBootstrapExtraBootstrappingFilter extends BaseCruncherFilter imple
         * @return      void
         * @throws      FilterChainException    If $cruncherInstance is null (no NullPointerException here)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get cruncher instance
                $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
index d7a5ee75e1357f6a22a01c4fd3d71a67337481e9..312cd238fdf8047beb2d5042a82cbde487a274e6 100644 (file)
@@ -49,7 +49,7 @@ class CruncherBootstrapGenericActivationFilter extends BaseCruncherFilter implem
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createCruncherBootstrapGenericActivationFilter () {
+       public final static function createCruncherBootstrapGenericActivationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CruncherBootstrapGenericActivationFilter();
 
@@ -65,7 +65,7 @@ class CruncherBootstrapGenericActivationFilter extends BaseCruncherFilter implem
         * @return      void
         * @todo        Maybe we want to do somthing more here?
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a cruncher instance
                $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
index 7666961b715e86a521e0ae7e96df6228589e2793..fd5e258423738eca85131fa5355a6109314ed518 100644 (file)
@@ -50,7 +50,7 @@ class MinerBootstrap???Filter extends BaseMinerFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createMinerBootstrap???Filter () {
+       public final static function createMinerBootstrap???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new MinerBootstrap???Filter();
 
@@ -66,7 +66,7 @@ class MinerBootstrap???Filter extends BaseMinerFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get miner instance
                $minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
 
index da5a50745563b28fafcab3268fabad6517ffcd4b..e33092433cef5e22ceb38af9ab3cbfc8c78c89d6 100644 (file)
@@ -49,7 +49,7 @@ class MinerBootstrapBufferQueueInitializerFilter extends BaseMinerFilter impleme
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createMinerBootstrapBufferQueueInitializerFilter () {
+       public final static function createMinerBootstrapBufferQueueInitializerFilter (): Filterable {
                // Get a new instance
                $filterInstance = new MinerBootstrapBufferQueueInitializerFilter();
 
@@ -65,7 +65,7 @@ class MinerBootstrapBufferQueueInitializerFilter extends BaseMinerFilter impleme
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get miner instance
                $minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
 
index 91409fba28f91f539aac79f38fde9fad49785780..fca4aa93c64ececcd8aa8a6564a16e377ba337bf 100644 (file)
@@ -49,7 +49,7 @@ class MinerBootstrapExtraBootstrappingFilter extends BaseMinerFilter implements
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createMinerBootstrapExtraBootstrappingFilter () {
+       public static final function createMinerBootstrapExtraBootstrappingFilter (): Filterable {
                // Get a new instance
                $filterInstance = new MinerBootstrapExtraBootstrappingFilter();
 
@@ -65,7 +65,7 @@ class MinerBootstrapExtraBootstrappingFilter extends BaseMinerFilter implements
         * @return      void
         * @throws      FilterChainException    If $minerInstance is null (no NullPointerException here)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get miner instance
                $minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
 
index 5880ec70aad60762ca40ff94022323b2868047b9..2a8ca5f7c30842c0bab98e9b6086a16ac0a1d913 100644 (file)
@@ -49,7 +49,7 @@ class MinerBootstrapGenericActivationFilter extends BaseMinerFilter implements F
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createMinerBootstrapGenericActivationFilter () {
+       public final static function createMinerBootstrapGenericActivationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new MinerBootstrapGenericActivationFilter();
 
@@ -65,7 +65,7 @@ class MinerBootstrapGenericActivationFilter extends BaseMinerFilter implements F
         * @return      void
         * @todo        Maybe we want to do somthing more here?
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a miner instance
                $minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
 
index 0e5913b9e79af925a2ac1847cf4b3a199a5d63bb..db6508a44320fb982cd02bc01b39bbd699f6f3f8 100644 (file)
@@ -50,7 +50,7 @@ class NodeBootstrap???Filter extends BaseNodeFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createNodeBootstrap???Filter () {
+       public final static function createNodeBootstrap???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeBootstrap???Filter();
 
@@ -66,7 +66,7 @@ class NodeBootstrap???Filter extends BaseNodeFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
 
index 9dea60625c7afa2a8465c7a6e2e4765568bce005..159815da9d2fac39708d9179d4ba4b3aaca4f83d 100644 (file)
@@ -49,7 +49,7 @@ class NodeBootstrapExtraBootstrappingFilter extends BaseNodeFilter implements Fi
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeBootstrapExtraBootstrappingFilter () {
+       public static final function createNodeBootstrapExtraBootstrappingFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeBootstrapExtraBootstrappingFilter();
 
@@ -65,7 +65,7 @@ class NodeBootstrapExtraBootstrappingFilter extends BaseNodeFilter implements Fi
         * @return      void
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance();
 
index b6bb721b633ed47bfb21c297deb09492144d78d5..155f547272450d5ec66c7a7ade9968bda6596c8a 100644 (file)
@@ -49,7 +49,7 @@ class NodeBootstrapGenerateNodeIdFilter extends BaseNodeFilter implements Filter
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeBootstrapGenerateNodeIdFilter () {
+       public static final function createNodeBootstrapGenerateNodeIdFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeBootstrapGenerateNodeIdFilter();
 
@@ -65,7 +65,7 @@ class NodeBootstrapGenerateNodeIdFilter extends BaseNodeFilter implements Filter
         * @return      void
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance();
 
index a84e5a235b7e73d6a058a75530d79dec35342526..02ef97953fb0967b271ca9d90ef301eceb5664e2 100644 (file)
@@ -49,7 +49,7 @@ class NodeBootstrapGeneratePrivateKeyFilter extends BaseNodeFilter implements Fi
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createNodeBootstrapGeneratePrivateKeyFilter () {
+       public final static function createNodeBootstrapGeneratePrivateKeyFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeBootstrapGeneratePrivateKeyFilter();
 
@@ -65,7 +65,7 @@ class NodeBootstrapGeneratePrivateKeyFilter extends BaseNodeFilter implements Fi
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance();
 
index ee0e7cc56cdba54067bd08016cdc25b8098345c8..41188849231030afa79dfd214d9f212f5e1b60cb 100644 (file)
@@ -49,7 +49,7 @@ class NodeBootstrapGenerateSessionIdFilter extends BaseNodeFilter implements Fil
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeBootstrapGenerateSessionIdFilter () {
+       public static final function createNodeBootstrapGenerateSessionIdFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeBootstrapGenerateSessionIdFilter();
 
@@ -65,7 +65,7 @@ class NodeBootstrapGenerateSessionIdFilter extends BaseNodeFilter implements Fil
         * @return      void
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance();
 
index 7c39b538f896c37eb491decb3f564881e7248793..d2950b107cea0d6afeb4a090f584a6fdd1250a27 100644 (file)
@@ -49,7 +49,7 @@ class NodeBootstrapListenerPoolFilter extends BaseNodeFilter implements Filterab
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeBootstrapListenerPoolFilter () {
+       public static final function createNodeBootstrapListenerPoolFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeBootstrapListenerPoolFilter();
 
@@ -65,7 +65,7 @@ class NodeBootstrapListenerPoolFilter extends BaseNodeFilter implements Filterab
         * @return      void
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance();
 
index 4a30119395e018c1051c96959bcd0206da97e2ad..86078b9f361e4273a9ccff13cb0024a60ef9c650 100644 (file)
@@ -46,7 +46,7 @@ class Cruncher???Filter extends BaseCruncherFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createCruncher???Filter () {
+       public final static function createCruncher???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new Cruncher???Filter();
 
@@ -62,11 +62,9 @@ class Cruncher???Filter extends BaseCruncherFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Implement this!
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
-}
 
-// [EOF]
-?>
+}
index cfc331bfc79ccd136b55552da7e310214c814e96..bf84342675c9a2f9e69696b70f61c3159e8099f4 100644 (file)
@@ -51,7 +51,7 @@ class ChatInitializationFilter extends BaseChatFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createChatInitializationFilter () {
+       public static final function createChatInitializationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new ChatInitializationFilter();
 
@@ -67,7 +67,7 @@ class ChatInitializationFilter extends BaseChatFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get an instance
                $chatInstance = ObjectFactory::createObjectByConfiguredName('node_console_chat_class');
 
index e4e3898076d2f36ac361c5575f4608c0dabde9fa..094062616a26d51657367991f56eb17f9cc04d48 100644 (file)
@@ -48,7 +48,7 @@ class ChatPhpRequirementsFilter extends BaseChatFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createChatPhpRequirementsFilter () {
+       public static final function createChatPhpRequirementsFilter (): Filterable {
                // Get a new instance
                $filterInstance = new ChatPhpRequirementsFilter();
 
@@ -65,7 +65,7 @@ class ChatPhpRequirementsFilter extends BaseChatFilter implements Filterable {
         * @throws      FilterChainException    If a required PHP function is not available
         * @todo        Add more test and try to add an extra message to the thrown exception
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // By default, the requirement check is passed and zero checks are failed
                $checkPassed = TRUE;
                $checksFailed = 0;
index 834c1212f7d1f5cacaf0cfa8ba9a4000406b5c87..d174ddd8de9cb1b0d7263fe4b172a95d162c1c73 100644 (file)
@@ -49,7 +49,7 @@ class ChatWelcomeTeaserFilter extends BaseChatFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createChatWelcomeTeaserFilter () {
+       public static final function createChatWelcomeTeaserFilter (): Filterable {
                // Get a new instance
                $filterInstance = new ChatWelcomeTeaserFilter();
 
@@ -66,7 +66,7 @@ class ChatWelcomeTeaserFilter extends BaseChatFilter implements Filterable {
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         * @todo        Handle over the $responseInstance to outputConsoleTeaser()
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
 
index 61c15c40af9e038bb69a444fac139395d709dba2..242894531d74b752ec26ee477232cd2002b8ef33 100644 (file)
@@ -50,7 +50,7 @@ class Hub!!!???Filter extends BaseHubFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createHub!!!???Filter () {
+       public final static function createHub!!!???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new Hub!!!???Filter();
 
@@ -67,7 +67,7 @@ class Hub!!!???Filter extends BaseHubFilter implements Filterable {
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
 
index 4856c71a554a22a7136087b19721d73208f036d4..41221b3f971a593e3064afb71283161564a9fb25 100644 (file)
@@ -67,7 +67,7 @@ abstract class BaseHubFilter extends BaseFilter {
         * @return      void
         * @todo        Exceptions from renderXmlContent() are currently unhandled
         */
-       protected function genericProcessMessage ($messageType, DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+       protected function genericProcessMessage (string $messageType, DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
                // Get a template instance from the factory
                $templateInstance = XmlTemplateEngineFactory::createXmlTemplateEngineInstance(sprintf('node_%s_template_class', $messageType));
 
index f551ef47b7591c74e7b59193e56a1fa6505a87ab..7d6dceec926b2c790d8a6cc64b29a822d57f79e9 100644 (file)
@@ -1,3 +1,2 @@
 <?php
 // @DEPRECATED
-?>
diff --git a/application/hub/classes/filter/crawler/class_Crawler b/application/hub/classes/filter/crawler/class_Crawler
new file mode 100644 (file)
index 0000000..53f63da
--- /dev/null
@@ -0,0 +1,78 @@
+<?php
+// Own namespace
+namespace Org\Shipsimu\Hub\Crawler\Filter\;
+
+// Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\BaseHubFilter;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
+/**
+ * A ??? filter for Crawler
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2022 Hub Developer Team
+ * @license            GNU GPL 3.0 or any newer version
+ * @link               http://www.ship-simu.org
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+class HubCrawler???Filter extends BaseHubFilter implements Filterable {
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       private function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+       }
+
+       /**
+        * Creates an instance of this filter class
+        *
+        * @return      $filterInstance         An instance of this filter class
+        */
+       public final static function createHubCrawler???Filter (): Filterable {
+               // Get a new instance
+               $filterInstance = new HubCrawler???Filter();
+
+               // Return the instance
+               return $filterInstance;
+       }
+
+       /**
+        * Executes the filter with given request and response objects
+        *
+        * @param       $requestInstance        An instance of a class with an Requestable interface
+        * @param       $responseInstance       An instance of a class with an Responseable interface
+        * @return      void
+        * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
+        * @todo        0% done
+        */
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
+               // Get node instance
+               $nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
+
+               // Now do something
+               DebugMiddleware::getSelfInstance()->partialStub('Please implement this step.');
+       }
+
+}
index 8703d61bb5e297a2ad7a63219d6ecd3136742f87..61fe8205f7c31596a43458c5782bfb5b8f71b24f 100644 (file)
@@ -51,7 +51,7 @@ class CrawlerInitializationFilter extends BaseCrawlerFilter implements Filterabl
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCrawlerInitializationFilter () {
+       public static final function createCrawlerInitializationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CrawlerInitializationFilter();
 
@@ -67,7 +67,7 @@ class CrawlerInitializationFilter extends BaseCrawlerFilter implements Filterabl
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Default crawler mode is full-blown flag ship!
                $crawlerMode = 'distributed';
 
index 13aeee00e3064d72b291fd0d47c1b24200330975..0a607f6932c51189766f8a1318839d91f575b670 100644 (file)
@@ -48,7 +48,7 @@ class CrawlerPhpRequirementsFilter extends BaseCrawlerFilter implements Filterab
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCrawlerPhpRequirementsFilter () {
+       public static final function createCrawlerPhpRequirementsFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CrawlerPhpRequirementsFilter();
 
@@ -65,7 +65,7 @@ class CrawlerPhpRequirementsFilter extends BaseCrawlerFilter implements Filterab
         * @throws      FilterChainException    If a required PHP function is not available
         * @todo        Add more test and try to add an extra message to the thrown exception
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // By default, the requirement check is passed and zero checks are failed
                $checkPassed = TRUE;
                $checksFailed = 0;
index e28d56e1059c5b5672700dd2bd1ae376ff7cc121..ac761373155b3d5f7fd0dbaebc4625d1ec97254b 100644 (file)
@@ -49,7 +49,7 @@ class CrawlerWelcomeTeaserFilter extends BaseCrawlerFilter implements Filterable
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCrawlerWelcomeTeaserFilter () {
+       public static final function createCrawlerWelcomeTeaserFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CrawlerWelcomeTeaserFilter();
 
@@ -66,7 +66,7 @@ class CrawlerWelcomeTeaserFilter extends BaseCrawlerFilter implements Filterable
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         * @todo        Handle over the $responseInstance to outputConsoleTeaser()
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
 
index 295f3624b1591adec82a119babc4440d25d59d56..47df90aa60962de3628eaee1d652911a5d60b8d3 100644 (file)
@@ -46,7 +46,7 @@ class Cruncher???Filter extends BaseCruncherFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createCruncher???Filter () {
+       public final static function createCruncher???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new Cruncher???Filter();
 
@@ -62,7 +62,7 @@ class Cruncher???Filter extends BaseCruncherFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Implement this!
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
index 1633d98a1519bfe820b840e02b8088cfe68f05e3..7ba42cdeef6b6ec887d5dad086000b5d58c4fbbf 100644 (file)
@@ -51,7 +51,7 @@ class CruncherInitializationFilter extends BaseCruncherFilter implements Filtera
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCruncherInitializationFilter () {
+       public static final function createCruncherInitializationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CruncherInitializationFilter();
 
@@ -67,7 +67,7 @@ class CruncherInitializationFilter extends BaseCruncherFilter implements Filtera
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // The default cruncher-mode is from our configuration
                $cruncherMode = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('cruncher_default_mode');
 
index 89d5c5c86d716294bf52892961d74ed11b095c1b..699979a936676f5ccf516e48fcb3a67220249362 100644 (file)
@@ -48,7 +48,7 @@ class CruncherPhpRequirementsFilter extends BaseCruncherFilter implements Filter
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCruncherPhpRequirementsFilter () {
+       public static final function createCruncherPhpRequirementsFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CruncherPhpRequirementsFilter();
 
@@ -65,7 +65,7 @@ class CruncherPhpRequirementsFilter extends BaseCruncherFilter implements Filter
         * @throws      FilterChainException    If a required PHP function is not available
         * @todo        Add more test and try to add an extra message to the thrown exception
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // By default, the requirement check is passed and zero checks are failed
                $checkPassed = TRUE;
                $checksFailed = 0;
index ea539f3d3352c64b58498e317b80785e7f1b3acb..41739ebd116da48bb8c9709a849dc5511c8e2b05 100644 (file)
@@ -49,7 +49,7 @@ class CruncherWelcomeTeaserFilter extends BaseCruncherFilter implements Filterab
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCruncherWelcomeTeaserFilter () {
+       public static final function createCruncherWelcomeTeaserFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CruncherWelcomeTeaserFilter();
 
@@ -66,7 +66,7 @@ class CruncherWelcomeTeaserFilter extends BaseCruncherFilter implements Filterab
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         * @todo        Handle over the $responseInstance to outputConsoleTeaser()
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
index 67d1f066855058cda1a307da987b3d845f0f7621..a635756a772d21f48db4b9e4bd11e5284855bafd 100644 (file)
@@ -46,7 +46,7 @@ class Miner???Filter extends BaseminerFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createMiner???Filter () {
+       public final static function createMiner???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new Miner???Filter();
 
@@ -62,11 +62,9 @@ class Miner???Filter extends BaseminerFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Implement this!
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
-}
 
-// [EOF]
-?>
+}
index 49b38351102a753ee25a6b933ca0206aa462edb2..97467189cdcb0413495465fe30a138a1211df748 100644 (file)
@@ -52,7 +52,7 @@ class MinerInitializationFilter extends BaseMinerFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createMinerInitializationFilter () {
+       public static final function createMinerInitializationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new MinerInitializationFilter();
 
@@ -68,7 +68,7 @@ class MinerInitializationFilter extends BaseMinerFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // The default miner-mode is from our configuration
                $minerMode = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('miner_default_mode');
 
index d8d138a6f486ec72f764751de1226d83ee08cc40..6319497d6e4ef63efb5a1d22568ddb8d2abdbc0c 100644 (file)
@@ -49,7 +49,7 @@ class MinerPhpRequirementsFilter extends BaseMinerFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createMinerPhpRequirementsFilter () {
+       public static final function createMinerPhpRequirementsFilter (): Filterable {
                // Get a new instance
                $filterInstance = new MinerPhpRequirementsFilter();
 
@@ -66,7 +66,7 @@ class MinerPhpRequirementsFilter extends BaseMinerFilter implements Filterable {
         * @throws      FilterChainException    If a required PHP function is not available
         * @todo        Add more test and try to add an extra message to the thrown exception
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // By default, the requirement check is passed and zero checks are failed
                $checkPassed = TRUE;
                $checksFailed = 0;
index 0d535968227c5c040c916ab0de13cf13ddb2a4fa..69ab6706d7e3fb43a80b8b0bdfcbe894b7ad4d13 100644 (file)
@@ -49,7 +49,7 @@ class MinerWelcomeTeaserFilter extends BaseMinerFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createMinerWelcomeTeaserFilter () {
+       public static final function createMinerWelcomeTeaserFilter (): Filterable {
                // Get a new instance
                $filterInstance = new MinerWelcomeTeaserFilter();
 
@@ -66,7 +66,7 @@ class MinerWelcomeTeaserFilter extends BaseMinerFilter implements Filterable {
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         * @todo        Handle over the $responseInstance to outputConsoleTeaser()
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
 
index db367f851b297ebff7479869d488e5b31ef6afc2..0f5a6be768d98675eb7afc16b0379db5b6557450 100644 (file)
@@ -49,7 +49,7 @@ class Node???Filter extends BaseNodeFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createNode???Filter () {
+       public final static function createNode???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new Node???Filter();
 
@@ -65,11 +65,9 @@ class Node???Filter extends BaseNodeFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Implement this!
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
-}
 
-// [EOF]
-?>
+}
index 40f9df505390eeeb4eaf676a23c70ede789bdf13..f7a96abe861274fb2de91a31a70e104c18efb4ae 100644 (file)
@@ -49,7 +49,7 @@ class NodeInitializationFilter extends BaseNodeFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeInitializationFilter () {
+       public static final function createNodeInitializationFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeInitializationFilter();
 
@@ -64,7 +64,7 @@ class NodeInitializationFilter extends BaseNodeFilter implements Filterable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Try to instance it by using a factory
                try {
                        // Get an instance
index 81bc680e4335b0f8e7fe6d8b8b1ca46a673f18a7..5baf0f9c82d60c268ae7b90aca5d9810b3b7ac34 100644 (file)
@@ -49,7 +49,7 @@ class NodePhpRequirementsFilter extends BaseNodeFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodePhpRequirementsFilter () {
+       public static final function createNodePhpRequirementsFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodePhpRequirementsFilter();
 
@@ -66,7 +66,7 @@ class NodePhpRequirementsFilter extends BaseNodeFilter implements Filterable {
         * @throws      FilterChainException    If a required PHP function is not available
         * @todo        Add more test and try to add an extra message to the thrown exception
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // By default, the requirement check is passed and zero checks are failed
                $checkPassed = TRUE;
                $checksFailed = 0;
index 56b8ce549ddcd1bd7b002014bb7159c6115e29c8..82603a1647b7499ad5400f0d43d63e0f64843e8c 100644 (file)
@@ -49,7 +49,7 @@ class NodeWelcomeTeaserFilter extends BaseNodeFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeWelcomeTeaserFilter () {
+       public static final function createNodeWelcomeTeaserFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeWelcomeTeaserFilter();
 
@@ -66,7 +66,7 @@ class NodeWelcomeTeaserFilter extends BaseNodeFilter implements Filterable {
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         * @todo        Handle over the $responseInstance to outputConsoleTeaser()
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance();
 
index 092548b7f74eff709bc904e97156e6a36886726a..ddfdea0da463aac89aa0b6102fa81c4405f1f12d 100644 (file)
@@ -51,7 +51,7 @@ class AptProxyShutdownFilter extends BaseAptProxyFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createAptProxyShutdownFilter () {
+       public static final function createAptProxyShutdownFilter (): Filterable {
                // Get a new instance
                $filterInstance = new AptProxyShutdownFilter();
 
@@ -67,7 +67,7 @@ class AptProxyShutdownFilter extends BaseAptProxyFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException please)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $proxyInstance = ObjectRegistry::getRegistry('factory')->getInstance('apt_proxy');
 
index 69e2fa47c848f1a1fe8ab1f27a42b3f95d01b822..2408004e6395eac3e96a8a8d3949f5fc4afe4b1b 100644 (file)
@@ -51,7 +51,7 @@ class ChatShutdownFilter extends BaseChatFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createChatShutdownFilter () {
+       public static final function createChatShutdownFilter (): Filterable {
                // Get a new instance
                $filterInstance = new ChatShutdownFilter();
 
@@ -67,7 +67,7 @@ class ChatShutdownFilter extends BaseChatFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException please)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
 
index f551ef47b7591c74e7b59193e56a1fa6505a87ab..7d6dceec926b2c790d8a6cc64b29a822d57f79e9 100644 (file)
@@ -1,3 +1,2 @@
 <?php
 // @DEPRECATED
-?>
index 9cc8a01a8613f6385841844620ae4ccd1bbcbdd3..102580e2ce536350c51e7049ba283821bf576453 100644 (file)
@@ -51,7 +51,7 @@ class CrawlerShutdownFilter extends BaseCrawlerFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCrawlerShutdownFilter () {
+       public static final function createCrawlerShutdownFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CrawlerShutdownFilter();
 
@@ -67,7 +67,7 @@ class CrawlerShutdownFilter extends BaseCrawlerFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException please)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $crawlerInstance = ObjectRegistry::getRegistry('factory')->getInstance('crawler');
 
index 8df755a38cd778570965e1094d2e61b890a26d2b..85ceb1949f1d2032589057bf5ef1e23c4a525d4e 100644 (file)
@@ -51,7 +51,7 @@ class CruncherShutdownFilter extends BaseCruncherFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCruncherShutdownFilter () {
+       public static final function createCruncherShutdownFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CruncherShutdownFilter();
 
@@ -67,7 +67,7 @@ class CruncherShutdownFilter extends BaseCruncherFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException please)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
index 777cf448a6b948e161c59803f20c94e314b52d66..40d98994d3aa1426ed128215e0feac89012d4cab 100644 (file)
@@ -51,7 +51,7 @@ class MinerShutdownFilter extends BaseMinerFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createMinerShutdownFilter () {
+       public static final function createMinerShutdownFilter (): Filterable {
                // Get a new instance
                $filterInstance = new MinerShutdownFilter();
 
@@ -67,7 +67,7 @@ class MinerShutdownFilter extends BaseMinerFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException please)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
 
index bf68e5da0de57364284ceec881d443f08ed392ac..018d2b51942ca0ccb20524d746dba6e5996dd41c 100644 (file)
@@ -50,7 +50,7 @@ class HubShutdown???Filter extends BaseNodeFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createHubShutdown???Filter () {
+       public final static function createHubShutdown???Filter (): Filterable {
                // Get a new instance
                $filterInstance = new HubShutdown???Filter();
 
@@ -67,7 +67,7 @@ class HubShutdown???Filter extends BaseNodeFilter implements Filterable {
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
 
index 92885f70ede5da14a2acbe97a21bfe3eabc4d0b0..c6b13c30540d5d899dad5b3fe90929449cc51071 100644 (file)
@@ -50,7 +50,7 @@ class NodeShutdownFlushNodeListFilter extends BaseNodeFilter implements Filterab
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeShutdownFlushNodeListFilter () {
+       public static final function createNodeShutdownFlushNodeListFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeShutdownFlushNodeListFilter();
 
@@ -67,7 +67,7 @@ class NodeShutdownFlushNodeListFilter extends BaseNodeFilter implements Filterab
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException please)
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance();
 
index 61b911d9f37366c910eac506426091dae3be58b4..410703b016d8bd58537fd02ebd7b5fec9442267a 100644 (file)
@@ -51,7 +51,7 @@ class NodeShutdownNodeFilter extends BaseNodeFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeShutdownNodeFilter () {
+       public static final function createNodeShutdownNodeFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeShutdownNodeFilter();
 
@@ -67,7 +67,7 @@ class NodeShutdownNodeFilter extends BaseNodeFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException please)
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance();
 
index 2c5d3c06cf3bde9f3ba1c927d89c9ebae2270fc7..d105b029304ad4de7c5e085264f06b04da40881d 100644 (file)
@@ -49,7 +49,7 @@ class NodeShutdownTaskHandlerFilter extends BaseNodeFilter implements Filterable
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeShutdownTaskHandlerFilter () {
+       public static final function createNodeShutdownTaskHandlerFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeShutdownTaskHandlerFilter();
 
@@ -66,7 +66,7 @@ class NodeShutdownTaskHandlerFilter extends BaseNodeFilter implements Filterable
         * @throws      FilterChainException    If $nodeInstance is null (no NullPointerException here)
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get task handler instance
                $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
index b07a1fd6fe7bf0876ef8ca1bd16c3d5921dd12a0..2eba64e22456584060862ff926e787dce9d8dd36 100644 (file)
@@ -50,14 +50,14 @@ class PackageAnnouncementAnswerTagFilter extends BaseNodeFilter implements Filte
                parent::__construct(__CLASS__);
 
                // Init array
-               $this->dataXmlNodes = array(
+               $this->dataXmlNodes = [
                        XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_EXTERNAL_ADDRESS => '',
                        XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_INTERNAL_ADDRESS => '',
                        XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_NODE_STATUS      => '',
                        XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_NODE_ID          => '',
                        XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_SESSION_ID       => '',
                        BaseXmlAnswerTemplateEngine::ANSWER_STATUS                              => '',
-               );
+               ];
        }
 
        /**
@@ -65,7 +65,7 @@ class PackageAnnouncementAnswerTagFilter extends BaseNodeFilter implements Filte
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createPackageAnnouncementAnswerTagFilter () {
+       public final static function createPackageAnnouncementAnswerTagFilter (): FilterablePackage {
                // Get a new instance
                $filterInstance = new PackageAnnouncementAnswerTagFilter();
 
@@ -81,7 +81,7 @@ class PackageAnnouncementAnswerTagFilter extends BaseNodeFilter implements Filte
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
@@ -94,7 +94,7 @@ class PackageAnnouncementAnswerTagFilter extends BaseNodeFilter implements Filte
         * @param       $handlerInstance        An instance of a Receivable class
         * @return      void
         */
-       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
                // Process message in generic way
                $this->genericProcessMessage('announcement_answer', $messageInstance, $handlerInstance);
        }
@@ -107,7 +107,7 @@ class PackageAnnouncementAnswerTagFilter extends BaseNodeFilter implements Filte
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function postProcessMessage (Receivable $handlerInstance) {
+       public function postProcessMessage (Receivable $handlerInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
index 617010a143fd34edb2f37b9ca861a1127534c0dd..4e7a8d2cb2747b89d55c876ba15d44148b0411c8 100644 (file)
@@ -50,11 +50,11 @@ class PackageDhtBootstrapAnswerTagFilter extends BaseNodeFilter implements Filte
                parent::__construct(__CLASS__);
 
                // Init array
-               $this->dataXmlNodes = array(
+               $this->dataXmlNodes = [
                        XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_SESSION_ID => '',
                        XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_NODE_LIST  => '',
                        BaseXmlAnswerTemplateEngine::ANSWER_STATUS                         => '',
-               );
+               ];
        }
 
        /**
@@ -62,7 +62,7 @@ class PackageDhtBootstrapAnswerTagFilter extends BaseNodeFilter implements Filte
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createPackageDhtBootstrapAnswerTagFilter () {
+       public final static function createPackageDhtBootstrapAnswerTagFilter (): FilterablePackage {
                // Get a new instance
                $filterInstance = new PackageDhtBootstrapAnswerTagFilter();
 
@@ -78,7 +78,7 @@ class PackageDhtBootstrapAnswerTagFilter extends BaseNodeFilter implements Filte
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
@@ -91,7 +91,7 @@ class PackageDhtBootstrapAnswerTagFilter extends BaseNodeFilter implements Filte
         * @param       $handlerInstance        An instance of a Receivable class
         * @return      void
         */
-       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
                // Process message in generic way
                $this->genericProcessMessage('dht_bootstrap_answer', $messageInstance, $handlerInstance);
        }
@@ -104,7 +104,7 @@ class PackageDhtBootstrapAnswerTagFilter extends BaseNodeFilter implements Filte
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function postProcessMessage (Receivable $handlerInstance) {
+       public function postProcessMessage (Receivable $handlerInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
index 8abcaa21eb035a12d373e98ea047385f518fd214..83c82062693bf0b1fb095e4bc3ec84086f8a1259 100644 (file)
@@ -50,11 +50,11 @@ class PackageRequestNodeListAnswerTagFilter extends BaseNodeFilter implements Fi
                parent::__construct(__CLASS__);
 
                // Init array
-               $this->dataXmlNodes = array(
+               $this->dataXmlNodes = [
                        XmlRequestNodeListAnswerTemplateEngine::REQUEST_DATA_SESSION_ID => '',
                        XmlRequestNodeListAnswerTemplateEngine::REQUEST_DATA_NODE_LIST  => '',
                        BaseXmlAnswerTemplateEngine::ANSWER_STATUS                      => '',
-               );
+               ];
        }
 
        /**
@@ -62,7 +62,7 @@ class PackageRequestNodeListAnswerTagFilter extends BaseNodeFilter implements Fi
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createPackageRequestNodeListAnswerTagFilter () {
+       public final static function createPackageRequestNodeListAnswerTagFilter (): FilterablePackage {
                // Get a new instance
                $filterInstance = new PackageRequestNodeListAnswerTagFilter();
 
@@ -78,7 +78,7 @@ class PackageRequestNodeListAnswerTagFilter extends BaseNodeFilter implements Fi
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
@@ -91,7 +91,7 @@ class PackageRequestNodeListAnswerTagFilter extends BaseNodeFilter implements Fi
         * @param       $handlerInstance        An instance of a Receivable class
         * @return      void
         */
-       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
                // Process message in generic way
                $this->genericProcessMessage('request_node_list_answer', $messageInstance, $handlerInstance);
        }
@@ -104,7 +104,7 @@ class PackageRequestNodeListAnswerTagFilter extends BaseNodeFilter implements Fi
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function postProcessMessage (Receivable $handlerInstance) {
+       public function postProcessMessage (Receivable $handlerInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
index ce1bb4f14de3e4dbc024566fee86141d98e9f102..b449484aaf3fa9e787afe3fb3eb76e1e5dda1059 100644 (file)
@@ -64,7 +64,7 @@ class PackageAnnouncementTagFilter extends BaseNodeFilter implements FilterableP
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createPackageAnnouncementTagFilter () {
+       public final static function createPackageAnnouncementTagFilter (): FilterablePackage {
                // Get a new instance
                $filterInstance = new PackageAnnouncementTagFilter();
 
@@ -80,7 +80,7 @@ class PackageAnnouncementTagFilter extends BaseNodeFilter implements FilterableP
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
@@ -100,7 +100,7 @@ class PackageAnnouncementTagFilter extends BaseNodeFilter implements FilterableP
         * @param       $handlerInstance        An instance of a Receivable class
         * @return      void
         */
-       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
                // Process message generic
                $this->genericProcessMessage('announcement', $messageInstance, $handlerInstance);
        }
@@ -113,7 +113,7 @@ class PackageAnnouncementTagFilter extends BaseNodeFilter implements FilterableP
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function postProcessMessage (Receivable $handlerInstance) {
+       public function postProcessMessage (Receivable $handlerInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
index b271325ae802c213a7695a91aa8f866ef558b45e..003967285018ba0939ca0caba1bd311e96af1dba 100644 (file)
@@ -63,7 +63,7 @@ class PackageDhtBootstrapTagFilter extends BaseNodeFilter implements FilterableP
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createPackageDhtBootstrapTagFilter () {
+       public final static function createPackageDhtBootstrapTagFilter (): FilterablePackage {
                // Get a new instance
                $filterInstance = new PackageDhtBootstrapTagFilter();
 
@@ -79,7 +79,7 @@ class PackageDhtBootstrapTagFilter extends BaseNodeFilter implements FilterableP
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
@@ -99,7 +99,7 @@ class PackageDhtBootstrapTagFilter extends BaseNodeFilter implements FilterableP
         * @param       $handlerInstance        An instance of a Receivable class
         * @return      void
         */
-       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
                // Process message generic
                $this->genericProcessMessage('dht_bootstrap', $messageInstance, $handlerInstance);
        }
@@ -112,7 +112,7 @@ class PackageDhtBootstrapTagFilter extends BaseNodeFilter implements FilterableP
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function postProcessMessage (Receivable $handlerInstance) {
+       public function postProcessMessage (Receivable $handlerInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
index 29d3e92996de2eacdcf8ddc213ac3f01f220eb97..75263adf6b4e0c36549d37a79a1908f79e2b0c66 100644 (file)
@@ -49,10 +49,10 @@ class PackageRequestNodeListTagFilter extends BaseNodeFilter implements Filterab
                parent::__construct(__CLASS__);
 
                // Init XML nodes array which contains the required data
-               $this->dataXmlNodes = array(
+               $this->dataXmlNodes = [
                        XmlRequestNodeListTemplateEngine::REQUEST_DATA_ACCEPTED_OBJECT_TYPES => '',
                        XmlRequestNodeListTemplateEngine::REQUEST_DATA_SESSION_ID            => '',
-               );
+               ];
        }
 
        /**
@@ -60,7 +60,7 @@ class PackageRequestNodeListTagFilter extends BaseNodeFilter implements Filterab
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createPackageRequestNodeListTagFilter () {
+       public final static function createPackageRequestNodeListTagFilter (): FilterablePackage {
                // Get a new instance
                $filterInstance = new PackageRequestNodeListTagFilter();
 
@@ -76,7 +76,7 @@ class PackageRequestNodeListTagFilter extends BaseNodeFilter implements Filterab
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
@@ -88,7 +88,7 @@ class PackageRequestNodeListTagFilter extends BaseNodeFilter implements Filterab
         * @param       $handlerInstance        An instance of a Receivable class
         * @return      void
         */
-       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
                // Process messasge generic
                $this->genericProcessMessage('request_node_list', $messageInstance, $handlerInstance);
        }
@@ -101,7 +101,7 @@ class PackageRequestNodeListTagFilter extends BaseNodeFilter implements Filterab
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called
         */
-       public function postProcessMessage (Receivable $handlerInstance) {
+       public function postProcessMessage (Receivable $handlerInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
index 71e724a98751d85446eabf1766baeb593e1f5141..797ad98879bfc70d361599be33fc9abda7dd96fc 100644 (file)
@@ -50,10 +50,10 @@ class PackageSelfConnectTagFilter extends BaseNodeFilter implements FilterablePa
                parent::__construct(__CLASS__);
 
                // Init array
-               $this->dataXmlNodes = array(
+               $this->dataXmlNodes = [
                        XmlSelfConnectTemplateEngine::SELF_CONNECT_DATA_NODE_ID    => '',
                        XmlSelfConnectTemplateEngine::SELF_CONNECT_DATA_SESSION_ID => '',
-               );
+               ];
        }
 
        /**
@@ -61,7 +61,7 @@ class PackageSelfConnectTagFilter extends BaseNodeFilter implements FilterablePa
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createPackageSelfConnectTagFilter () {
+       public final static function createPackageSelfConnectTagFilter (): FilterablePackage {
                // Get a new instance
                $filterInstance = new PackageSelfConnectTagFilter();
 
@@ -77,7 +77,7 @@ class PackageSelfConnectTagFilter extends BaseNodeFilter implements FilterablePa
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
@@ -97,7 +97,7 @@ class PackageSelfConnectTagFilter extends BaseNodeFilter implements FilterablePa
         * @param       $handlerInstance        An instance of a Receivable class
         * @return      void
         */
-       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance) {
+       public function processMessage (DeliverableMessage $messageInstance, Receivable $handlerInstance): void {
                // Process generic
                $this->genericProcessMessage(Tagable::TAG_SELF_CONNECT, $messageInstance, $handlerInstance);
        }
@@ -110,7 +110,7 @@ class PackageSelfConnectTagFilter extends BaseNodeFilter implements FilterablePa
         * @return      void
         * @throws      UnsupportedOperationException   If this method is called, please use processMessage() instead!
         */
-       public function postProcessMessage (Receivable $handlerInstance) {
+       public function postProcessMessage (Receivable $handlerInstance): void {
                // Please don't call this method
                throw new UnsupportedOperationException([$this, __FUNCTION__], FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
index 286d0bd1518c5e672dd5be06caa18e5ef4fb25f2..7bf53d2668c1e45edce816fcd211aa27f64f4f36 100644 (file)
@@ -50,7 +50,7 @@ class AptProxyTaskHandlerInitializerFilter extends BaseAptProxyFilter implements
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createAptProxyTaskHandlerInitializerFilter () {
+       public static final function createAptProxyTaskHandlerInitializerFilter (): Filterable {
                // Get a new instance
                $filterInstance = new AptProxyTaskHandlerInitializerFilter();
 
@@ -67,7 +67,7 @@ class AptProxyTaskHandlerInitializerFilter extends BaseAptProxyFilter implements
         * @throws      FilterChainException    If the filter chain needs to be interrupted
         * @todo        5% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get apt-proxy instance
                //$chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
 
index 984ece31789bdb0b9579738ef688e21004007a69..d62d6ade728460acf68cdccb2c4bcfd16f93a78c 100644 (file)
@@ -50,7 +50,7 @@ class ChatTaskHandlerInitializerFilter extends BaseChatFilter implements Filtera
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createChatTaskHandlerInitializerFilter () {
+       public static final function createChatTaskHandlerInitializerFilter (): Filterable {
                // Get a new instance
                $filterInstance = new ChatTaskHandlerInitializerFilter();
 
@@ -67,7 +67,7 @@ class ChatTaskHandlerInitializerFilter extends BaseChatFilter implements Filtera
         * @throws      FilterChainException    If the filter chain needs to be interrupted
         * @todo        5% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get chat instance
                //$chatInstance = ObjectRegistry::getRegistry('factory')->getInstance('chat');
 
index 538823da7bbdb5eb5234e793cc12acdc7c86bca1..3eafff08d8e199cec1a10fe95555b6b3fc357d8a 100644 (file)
@@ -54,7 +54,7 @@ abstract class BaseCrawlerTaskFilter extends BaseCrawlerFilter {
         * @throws      FilterChainException    If the filter chain needs to be interrupted
         * @todo        10% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a new task handler instance
                $handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
 
index c324c3796c02bf49fa92da034d866529741e1c34..a6e6a16924c5368ea32d204453328cfe1e830a6a 100644 (file)
@@ -51,7 +51,7 @@ class CrawlerDistributedTaskHandlerInitializerFilter extends BaseCrawlerTaskFilt
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCrawlerDistributedTaskHandlerInitializerFilter () {
+       public static final function createCrawlerDistributedTaskHandlerInitializerFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CrawlerDistributedTaskHandlerInitializerFilter();
 
@@ -68,7 +68,7 @@ class CrawlerDistributedTaskHandlerInitializerFilter extends BaseCrawlerTaskFilt
         * @throws      FilterChainException    If the filter chain needs to be interrupted
         * @todo        10% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Run parent method first
                parent::execute($requestInstance, $responseInstance);
 
index 8b867f669f2722d26e7725da3d9c5a34b2d60010..f2bec18a0b5beb6701eff01f99f437a95424fd40 100644 (file)
@@ -50,7 +50,7 @@ class CruncherTaskHandlerInitializerFilter extends BaseCruncherFilter implements
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCruncherTaskHandlerInitializerFilter () {
+       public static final function createCruncherTaskHandlerInitializerFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CruncherTaskHandlerInitializerFilter();
 
@@ -67,7 +67,7 @@ class CruncherTaskHandlerInitializerFilter extends BaseCruncherFilter implements
         * @throws      FilterChainException    If the filter chain needs to be interrupted
         * @todo        5% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get cruncher instance
                //$cruncherInstance = ObjectRegistry::getRegistry('hub')->getInstance('cruncher');
 
index 0c3920a0a045eca8cea8d2d9e785cd1609062fcc..6841acdea338190042f63489a47b2388dc232bde 100644 (file)
@@ -50,7 +50,7 @@ class MinerTaskHandlerInitializerFilter extends BaseMinerFilter implements Filte
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createMinerTaskHandlerInitializerFilter () {
+       public static final function createMinerTaskHandlerInitializerFilter (): Filterable {
                // Get a new instance
                $filterInstance = new MinerTaskHandlerInitializerFilter();
 
@@ -67,7 +67,7 @@ class MinerTaskHandlerInitializerFilter extends BaseMinerFilter implements Filte
         * @throws      FilterChainException    If the filter chain needs to be interrupted
         * @todo        5% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get miner instance
                //$minerInstance = ObjectRegistry::getRegistry('factory')->getInstance('miner');
 
index a091527b4dbdc2e8bdb8aa26d809e55b8dabda5d..0af8b5db91e8da4625d5a3b6a7d87487f3e3f23f 100644 (file)
@@ -51,7 +51,7 @@ class NodeTaskHandlerInitializerFilter extends BaseNodeFilter implements Filtera
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNodeTaskHandlerInitializerFilter () {
+       public static final function createNodeTaskHandlerInitializerFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NodeTaskHandlerInitializerFilter();
 
@@ -68,7 +68,7 @@ class NodeTaskHandlerInitializerFilter extends BaseNodeFilter implements Filtera
         * @throws      FilterChainException    If the filter chain needs to be interrupted
         * @todo        Maybe some more tasks needs to be added?
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get node instance
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NODE-TASK-HANDLER-INIT-FILTER: Creating node instance ...');
                $nodeInstance = NodeObjectFactory::createNodeInstance();
index e9822e5d47cbe31aae0666b812ff597a4461bea3..8f0a8bcfc5e7990f3d1eb5ebc1d66bd8bad8d5e1 100644 (file)
@@ -54,7 +54,7 @@ class HubCoinMiner extends BaseHubMiner implements MinerHelper, Registerable {
         *
         * @return      $minerInstance  An instance of this hub-miner class
         */
-       public final static function createHubCoinMiner () {
+       public final static function createHubCoinMiner (): MinerHelper {
                // Get a new instance
                $minerInstance = new HubCoinMiner();
 
@@ -73,7 +73,7 @@ class HubCoinMiner extends BaseHubMiner implements MinerHelper, Registerable {
         *
         * @return      void
         */
-       protected function fillInBufferQueueWithTestUnits () {
+       protected function fillInBufferQueueWithTestUnits (): void {
                // Are test units enabled?
                if (!FrameworkBootstrap::getConfigurationInstance()->isEnabled('miner_test_units')) {
                        // They are disabled, so skip any further steps
@@ -102,7 +102,7 @@ class HubCoinMiner extends BaseHubMiner implements MinerHelper, Registerable {
         *
         * @return      void
         */
-       protected function fillInBufferQueueWithWorkUnits () {
+       protected function fillInBufferQueueWithWorkUnits (): void {
                // This miner's state must not be one of these: 'virgin'
                if ($this->getStateInstance()->isMinerStateVirgin()) {
                        // We can silently skip here, until the generation is finished
@@ -121,7 +121,7 @@ class HubCoinMiner extends BaseHubMiner implements MinerHelper, Registerable {
         * @return      void
         * @todo        Implement this method
         */
-       public function doBootstrapping () {
+       public function doBootstrapping (): void {
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
 
@@ -131,7 +131,7 @@ class HubCoinMiner extends BaseHubMiner implements MinerHelper, Registerable {
         *
         * @return      void
         */
-       public function outputConsoleTeaser () {
+       public function outputConsoleTeaser (): void {
                // Output all lines
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(' ');
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('Hubcoin miner v' . $this->getVersion() . ' is starting ...');
@@ -151,7 +151,7 @@ class HubCoinMiner extends BaseHubMiner implements MinerHelper, Registerable {
         * @return      void
         * @todo        0% done
         */
-       public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void {
                // Add some filters here
                DebugMiddleware::getSelfInstance()->partialStub('Please add some miner-specific filters, if required.');
        }
index 3cee65eecb35257154b602c138d9f6c0940c2cd4..a382eceafbff2029ff55e6fa08f34c318b88af07 100644 (file)
@@ -40,7 +40,7 @@ interface AptProxy extends HubInterface {
         *
         * @return      void
         */
-       function doBootstrapping ();
+       function doBootstrapping (): void;
 
        /**
         * Outputs the console teaser. This should only be executed on startup or
@@ -48,7 +48,7 @@ interface AptProxy extends HubInterface {
         *
         * @return      void
         */
-       function outputConsoleTeaser ();
+       function outputConsoleTeaser (): void;
 
        /**
         * Add some apt-proxy-specific filters
@@ -57,7 +57,7 @@ interface AptProxy extends HubInterface {
         * @param       $responseInstance               An object of a Responseable instance
         * @return      void
         */
-       function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance);
+       function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void;
 
        /**
         * Enables/disables the apt-proxy (just sets a flag)
@@ -65,12 +65,12 @@ interface AptProxy extends HubInterface {
         * @param       $version        Version number of this apt-proxy
         * @return      void
         */
-       function enableIsActive (bool $isActive = TRUE);
+       function enableIsActive (bool $isActive = TRUE): void;
 
        /**
         * Determines whether the apt-proxy is active
         *
         * @return      $isActive       Whether the apt-proxy is active
         */
-       function isActive ();
+       function isActive (): bool;
 }
index 2d4456270d755cac37e0b2589c0c11ebe8b62bb9..ed3a437269ad4ee1a50189ecce7005baf34e6c02 100644 (file)
@@ -40,7 +40,7 @@ interface Chatter extends HubInterface {
         *
         * @return      void
         */
-       function doBootstrapping ();
+       function doBootstrapping (): void;
 
        /**
         * Outputs the console teaser. This should only be executed on startup or
@@ -48,7 +48,7 @@ interface Chatter extends HubInterface {
         *
         * @return      void
         */
-       function outputConsoleTeaser ();
+       function outputConsoleTeaser (): void;
 
        /**
         * Add some chatter-specific filters
@@ -57,7 +57,7 @@ interface Chatter extends HubInterface {
         * @param       $responseInstance               An object of a Responseable instance
         * @return      void
         */
-       function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance);
+       function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void;
 
        /**
         * Enables/disables the chatter (just sets a flag)
@@ -65,12 +65,12 @@ interface Chatter extends HubInterface {
         * @param       $version        Version number of this chatter
         * @return      void
         */
-       function enableIsActive (bool $isActive = TRUE);
+       function enableIsActive (bool $isActive = TRUE): void;
 
        /**
         * Determines whether the chatter is active
         *
         * @return      $isActive       Whether the chatter is active
         */
-       function isActive ();
+       function isActive (): bool;
 }
index 126e9ed208cab924b50285f9d6ed706db1d9bfae..cf0ae133ab47098b28f9474704e9d25e91e1be74 100644 (file)
@@ -41,7 +41,7 @@ interface Crawler extends HubInterface {
         *
         * @return      void
         */
-       function doBootstrapping ();
+       function doBootstrapping (): void;
 
        /**
         * Outputs the console teaser. This should only be executed on startup or
@@ -49,7 +49,7 @@ interface Crawler extends HubInterface {
         *
         * @return      void
         */
-       function outputConsoleTeaser ();
+       function outputConsoleTeaser (): void;
 
        /**
         * Add some crawler-specific filters
@@ -58,7 +58,7 @@ interface Crawler extends HubInterface {
         * @param       $responseInstance               An object of a Responseable instance
         * @return      void
         */
-       function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance);
+       function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void;
 
        /**
         * Enables/disables the crawler (just sets a flag)
@@ -66,14 +66,14 @@ interface Crawler extends HubInterface {
         * @param       $version        Version number of this crawler
         * @return      void
         */
-       function enableIsActive (bool $isActive = TRUE);
+       function enableIsActive (bool $isActive = TRUE): void;
 
        /**
         * Determines whether the crawler is active
         *
         * @return      $isActive       Whether the crawler is active
         */
-       function isActive ();
+       function isActive (): bool;
 
        /**
         * Initializes this crawler instance
@@ -81,7 +81,7 @@ interface Crawler extends HubInterface {
         * @param       $stateInstance  An instance of a Stateable class
         * @return      void
         */
-       function initCrawler (Stateable $stateInstance);
+       function initCrawler (Stateable $stateInstance): void;
 
        /**
         * Setter for state instance
@@ -89,13 +89,13 @@ interface Crawler extends HubInterface {
         * @param       $stateInstance  A Stateable instance
         * @return      void
         */
-       function setStateInstance (Stateable $stateInstance);
+       function setStateInstance (Stateable $stateInstance): void;
 
        /**
         * Getter for state instance
         *
         * @return      $stateInstance  A Stateable instance
         */
-       function getStateInstance ();
+       function getStateInstance (): Stateable;
 
 }
index 7671e59707703554dd63b433fb2fbdefd3cdeeb1..f87106341e9263be42d42738f1bca7f900d8cb3b 100644 (file)
@@ -40,7 +40,7 @@ interface CruncherHelper extends HubInterface {
         *
         * @return      void
         */
-       function doBootstrapping ();
+       function doBootstrapping (): void;
 
        /**
         * This method determines if the in-buffer is going to depleted and if so,
@@ -49,7 +49,7 @@ interface CruncherHelper extends HubInterface {
         *
         * @return      void
         */
-       function doFetchWorkUnits ();
+       function doFetchWorkUnits (): void;
 
        /**
         * Outputs the console teaser. This should only be executed on startup or
@@ -57,7 +57,7 @@ interface CruncherHelper extends HubInterface {
         *
         * @return      void
         */
-       function outputConsoleTeaser ();
+       function outputConsoleTeaser (): void;
 
        /**
         * Add some cruncher-specific filters
@@ -66,7 +66,7 @@ interface CruncherHelper extends HubInterface {
         * @param       $responseInstance               An object of a Responseable instance
         * @return      void
         */
-       function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance);
+       function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void;
 
        /**
         * Enables/disables the cruncher (just sets a flag)
@@ -74,19 +74,19 @@ interface CruncherHelper extends HubInterface {
         * @param       $version        Version number of this cruncher
         * @return      void
         */
-       function enableIsActive (bool $isActive = TRUE);
+       function enableIsActive (bool $isActive = TRUE): void;
 
        /**
         * Determines whether the cruncher is active
         *
         * @return      $isActive       Whether the cruncher is active
         */
-       function isActive ();
+       function isActive (): bool;
 
        /**
         * Initializes all buffer queues (mostly in/out)
         *
         * @return      void
         */
-       function initBufferQueues ();
+       function initBufferQueues (): void;
 }
index 855bb89ed4f378a6a7c274db49c96f870f3c6f4d..f4af46467534a30442b356037ac7d55c5dfdc11e 100644 (file)
@@ -42,7 +42,7 @@ interface MinerHelper extends HubInterface {
         *
         * @return      void
         */
-       function doBootstrapping ();
+       function doBootstrapping (): void;
 
        /**
         * This method determines if the in-buffer is going to depleted and if so,
@@ -51,7 +51,7 @@ interface MinerHelper extends HubInterface {
         *
         * @return      void
         */
-       function doFetchWorkUnits ();
+       function doFetchWorkUnits (): void;
 
        /**
         * Outputs the console teaser. This should only be executed on startup or
@@ -59,7 +59,7 @@ interface MinerHelper extends HubInterface {
         *
         * @return      void
         */
-       function outputConsoleTeaser ();
+       function outputConsoleTeaser (): void;
 
        /**
         * Add some miner-specific filters
@@ -68,7 +68,7 @@ interface MinerHelper extends HubInterface {
         * @param       $responseInstance               An object of a Responseable instance
         * @return      void
         */
-       function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance);
+       function addExtraFilters (Controller $controllerInstance, Responseable $responseInstance): void;
 
        /**
         * Enables/disables the miner (just sets a flag)
@@ -76,21 +76,21 @@ interface MinerHelper extends HubInterface {
         * @param       $version        Version number of this miner
         * @return      void
         */
-       function enableIsActive (bool $isActive = TRUE);
+       function enableIsActive (bool $isActive = TRUE): void;
 
        /**
         * Determines whether the miner is active
         *
         * @return      $isActive       Whether the miner is active
         */
-       function isActive ();
+       function isActive (): bool;
 
        /**
         * Initializes all buffer queues (mostly in/out)
         *
         * @return      void
         */
-       function initBufferQueues ();
+       function initBufferQueues (): void;
 
        /**
         * Changes the state to 'booting' and shall be called after the block
@@ -99,7 +99,7 @@ interface MinerHelper extends HubInterface {
         * @param       $producerInstance       An instance of a BlockProducer class
         * @return      void
         */
-       function blockProducerHasInitialized (BlockProducer $producerInstance);
+       function blockProducerHasInitialized (BlockProducer $producerInstance): void;
 
        /**
         * Setter for state instance
@@ -107,13 +107,13 @@ interface MinerHelper extends HubInterface {
         * @param       $stateInstance  A Stateable instance
         * @return      void
         */
-       function setStateInstance (Stateable $stateInstance);
+       function setStateInstance (Stateable $stateInstance): void;
 
        /**
         * Getter for state instance
         *
         * @return      $stateInstance  A Stateable instance
         */
-       function getStateInstance ();
+       function getStateInstance (): Stateable;
 
 }
diff --git a/core b/core
index ba75c20fcc3cc172de195703b3220168d97912fd..bad914c43d90fedcdc9dad902157c1ebb70e7ec6 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit ba75c20fcc3cc172de195703b3220168d97912fd
+Subproject commit bad914c43d90fedcdc9dad902157c1ebb70e7ec6