]> git.mxchange.org Git - core.git/blobdiff - inc/classes/third_party/api/primusportal/class_PrimeraApi.php
Made lower to upper case:
[core.git] / inc / classes / third_party / api / primusportal / class_PrimeraApi.php
index 2251e4a53c20d7ddfd71f4fe85629b353b424eb8..50ec17df5964f233986224b518c365a0957af54f 100644 (file)
@@ -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 {
@@ -129,7 +129,7 @@ class PrimeraApi extends BaseFrameworkSystem {
        private $errno = 0;
        private $err = '';
 
-       private $seperator = ':';
+       private $separator = ':';
 
        private $username = '';
        private $password = '';
@@ -187,7 +187,7 @@ class PrimeraApi extends BaseFrameworkSystem {
                $x = explode("\n", $content);
                $return = array();
                foreach($x as $currentLine) {
-                       $line_exploded = explode($this->seperator, $currentLine,2);
+                       $line_exploded = explode($this->separator, $currentLine,2);
                        if (count($line_exploded) > 1) {
                                $return[$line_exploded[0]] = $line_exploded[1];
                        } // END - if
@@ -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'
                );