X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fthird_party%2Fapi%2Fprimusportal%2Fclass_PrimeraApi.php;h=50ec17df5964f233986224b518c365a0957af54f;hp=a265c479f6468a032b1cf95ae6d6da80d58b42d5;hb=f5cf5211620c1813c76d8231819b63a585fb2689;hpb=6afa552b9bdcb28975cb1b28a247347284995424 diff --git a/inc/classes/third_party/api/primusportal/class_PrimeraApi.php b/inc/classes/third_party/api/primusportal/class_PrimeraApi.php index a265c479..50ec17df 100644 --- a/inc/classes/third_party/api/primusportal/class_PrimeraApi.php +++ b/inc/classes/third_party/api/primusportal/class_PrimeraApi.php @@ -46,7 +46,7 @@ * $status = $apiInstance->payPrimera('garbage', 10000, 'Auszahlung IhreSeite.de - ID: 12345'); * 3. Überprüfung des Status (Rückgabecode): * CODE: - * if ($status === false) { + * if ($status === FALSE) { * // Ein Fehler ist aufgetreten * // Fehlerbehandlung hier einfügen... * } else { @@ -201,7 +201,7 @@ class PrimeraApi extends BaseFrameworkSystem { * @param string $Description Beschreibung (Sichtbar in Einzelauflistung) */ public function payPrimera ($Receiver, $Amount, $Description = '') { - $valid = false; + $valid = FALSE; $postData = array( 'PrimusInterface_Action' => 'Pay', 'PrimusInterface_Receiver' => base64_encode($Receiver), @@ -213,7 +213,7 @@ class PrimeraApi extends BaseFrameworkSystem { $this->data = $postReturn; if ($postReturn['status'] == '200') { - $valid = true; + $valid = TRUE; } // END - if return $valid; } @@ -225,7 +225,7 @@ class PrimeraApi extends BaseFrameworkSystem { * @param string/int $User Userid / Username */ public function checkPrimusUser ($userName) { - $valid = false; + $valid = FALSE; $postData = array( 'PrimusInterface_Action' => 'CheckPrimusUser', 'PrimusInterface_CheckPrimusUser' => $userName @@ -236,7 +236,7 @@ class PrimeraApi extends BaseFrameworkSystem { $this->data = $postReturn; if ($postReturn['status'] == self::PI_USER_CHECK_OK) { - $valid = true; + $valid = TRUE; } // END - if return $valid; } @@ -245,7 +245,7 @@ class PrimeraApi extends BaseFrameworkSystem { * Die Funktion liefer den aktuellen Primerastand */ public function getPrimera() { - $primera = false; + $primera = FALSE; $postData = array( 'PrimusInterface_Action' => 'GetPrimera' );