X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fthird_party%2Fapi%2Fwernisportal%2Fclass_WernisApi.php;h=cb85170a326d0538c4204d1378f25c2f9c6618bc;hp=c64fba3e7b7260a405c5c5d99187a2cc144f61aa;hb=b002c5909aa0f781505dde5414964b0f014cde01;hpb=78a010fef84895720e796842208f01dfb619c332 diff --git a/framework/main/third_party/api/wernisportal/class_WernisApi.php b/framework/main/third_party/api/wernisportal/class_WernisApi.php index c64fba3e..cb85170a 100644 --- a/framework/main/third_party/api/wernisportal/class_WernisApi.php +++ b/framework/main/third_party/api/wernisportal/class_WernisApi.php @@ -3,7 +3,7 @@ namespace Wds66\Api; // Import framework stuff -use CoreFramework\Object\BaseFrameworkSystem; +use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem; /** * Class for connecting to the Wernis-Portal at http://www.wds66.com @@ -32,7 +32,7 @@ class WernisApi extends BaseFrameworkSystem { /** * Static base API URL */ - private static $apiUrl = 'http://www.wds66.com/api/'; + private static $apiUrl = 'https://www.wds66.com/api/'; /** * API Wernis amount @@ -216,7 +216,7 @@ class WernisApi extends BaseFrameworkSystem { $response = $this->sendRawRequest($requestString); // Check the response header if all is fine - if (strpos($response[0], '200') === FALSE) { + if (strpos($response[0], '200') === false) { // Something bad happend... :( return array( 'status' => 'request_error', @@ -309,7 +309,7 @@ class WernisApi extends BaseFrameworkSystem { // Widthdraw this amount private function executeWithdraw ($amount) { // First all fails... - $result = FALSE; + $result = false; // Prepare the purpose $purpose = "\"Bube oder Dame\"-Einsatz gesetzt."; @@ -329,7 +329,7 @@ class WernisApi extends BaseFrameworkSystem { if ($return['status'] == $this->statusOkay) { // All fine! - $result = TRUE; + $result = true; } else { // Status failture text $this->setStatusMessage($return['message'], $return['status']); @@ -342,7 +342,7 @@ class WernisApi extends BaseFrameworkSystem { // Payout this amount private function executePayout ($amount) { // First all fails... - $result = FALSE; + $result = false; // Prepare the purpose $purpose = "\"Bube oder Dame\"-Gewinn erhalten."; @@ -362,7 +362,7 @@ class WernisApi extends BaseFrameworkSystem { if ($return['status'] == $this->statusOkay) { // All fine! - $result = TRUE; + $result = true; } else { // Status failture text $this->setStatusMessage($return['message'], $return['status']);