]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 17 Feb 2023 08:15:06 +0000 (09:15 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 17 Feb 2023 08:15:06 +0000 (09:15 +0100)
- requestIsValid() is now renamed to a propper setter setIsRequestValid() and
  with no default (setters don't have default values)
- updated 'core' framework

application/hub/classes/controller/console/class_HubConsoleAptProxyController.php
application/hub/classes/controller/console/class_HubConsoleChatController.php
application/hub/classes/controller/console/class_HubConsoleCrawlerController.php
application/hub/classes/controller/console/class_HubConsoleCruncherController.php
application/hub/classes/controller/console/class_HubConsoleDefaultNewsController.php
application/hub/classes/controller/console/class_HubConsoleFuseController.php
application/hub/classes/controller/console/class_HubConsoleMinerController.php
application/hub/exceptions.php
core

index 1ff8fbeb21b1db8d18bd394f9b9919ca15fd16d0..2de040e52308f6a67efcde5df1a96c3d509061b3 100644 (file)
@@ -83,7 +83,7 @@ class HubConsoleAptProxyController extends BaseController implements Controller
                $this->executePreFilters($requestInstance, $responseInstance);
 
                // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               $requestInstance->setIsRequestValid(TRUE);
 
                // Execute the command
                $commandInstance->execute($requestInstance, $responseInstance);
index 4d1498562f51b45ff5d357c9a1410177b3989516..ee93060b746cddb6358fc2654dac89922c2a6471 100644 (file)
@@ -83,7 +83,7 @@ class HubConsoleChatController extends BaseController implements Controller {
                $this->executePreFilters($requestInstance, $responseInstance);
 
                // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               $requestInstance->setIsRequestValid(TRUE);
 
                // Execute the command
                $commandInstance->execute($requestInstance, $responseInstance);
index 309f95a2379f69e02f88bb026103925d76d27069..0b58b8f2d4cff7b877c6cbae081b5c24c5f05bd5 100644 (file)
@@ -83,7 +83,7 @@ class HubConsoleCrawlerController extends BaseController implements Controller {
                $this->executePreFilters($requestInstance, $responseInstance);
 
                // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               $requestInstance->setIsRequestValid(TRUE);
 
                // Execute the command
                $commandInstance->execute($requestInstance, $responseInstance);
index eafbd063217677d0c2b67699647dd7f54bb806a9..bc191d727928bd577fd4b1ad724d93f69e728e31 100644 (file)
@@ -84,7 +84,7 @@ class HubConsoleCruncherController extends BaseController implements Controller
                $this->executePreFilters($requestInstance, $responseInstance);
 
                // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               $requestInstance->setIsRequestValid(TRUE);
 
                // Execute the command
                $commandInstance->execute($requestInstance, $responseInstance);
index 9a11b4782287a7cdd18d42153bbf8773e5c475bc..59cbf7772eb5ae7be35d29d3b4b8a3b477cd1031 100644 (file)
@@ -88,7 +88,7 @@ class HubConsoleDefaultNewsController extends BaseController implements Controll
                $this->executePreFilters($requestInstance, $responseInstance);
 
                // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               $requestInstance->setIsRequestValid(TRUE);
 
                // Execute the command
                $commandInstance->execute($requestInstance, $responseInstance);
index a967153d2b50b87edb6d844974df1fba9504c0ba..624def3f40eae57bda14a3a6b79521dd9e50f896 100644 (file)
@@ -83,7 +83,7 @@ class HubConsoleFuseController extends BaseController implements Controller {
                $this->executePreFilters($requestInstance, $responseInstance);
 
                // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               $requestInstance->setIsRequestValid(TRUE);
 
                // Execute the command
                $commandInstance->execute($requestInstance, $responseInstance);
index 87bd1f5b5a55f1f7cab325ffbf0dd9cae3523b53..3bed7c42f66082439000ec8b8d8933c1b3897364 100644 (file)
@@ -83,7 +83,7 @@ class HubConsoleMinerController extends BaseController implements Controller {
                $this->executePreFilters($requestInstance, $responseInstance);
 
                // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               $requestInstance->setIsRequestValid(TRUE);
 
                // Execute the command
                $commandInstance->execute($requestInstance, $responseInstance);
index 7104544f0f13eabf5af13a0eaa5ecf06b2b69a4e..6e8fd9f70d095d8132e96220891ad7b5eddeb546 100644 (file)
@@ -106,9 +106,9 @@ Backtrace:
 }
 
 // Error handler
-function hub_error_handler ($errno, $errstr, $errfile, $errline, array $errcontext) {
+function hub_error_handler (int $errno, string $errstr, string $errfile, int $errline, array $errcontext) {
        // Construct the message
-       $message = sprintf('File: %s, Line: %s, Code: %s, Message: %s',
+       $message = sprintf('File: %s, Line: %d, Code: %d, Message: %s',
                basename($errfile),
                $errline,
                $errno,
@@ -120,9 +120,9 @@ function hub_error_handler ($errno, $errstr, $errfile, $errline, array $errconte
 }
 
 // Assertion handler
-function hub_assert_handler ($file, $line, $code) {
+function hub_assert_handler (string $file, int $line, int $code) {
        // Empty code?
-       if ($code === '') {
+       if (empty($code)) {
                $code = '<em>Unknown</em>';
        }
 
diff --git a/core b/core
index ad17ce1c5fe13f2290e74bec676f23e65c2e9100..262f905be8d6f9dc9fd02acc9505cb45ef2a53f6 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit ad17ce1c5fe13f2290e74bec676f23e65c2e9100
+Subproject commit 262f905be8d6f9dc9fd02acc9505cb45ef2a53f6