detain/myadmin-webhosting-module

View on GitHub
src/api.php

Summary

Maintainability
A
1 hr
Test Coverage

Method api_validate_buy_website has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

function api_validate_buy_website($period, $coupon, $tos, $service_type, $hostname, $password, $script)
Severity: Major
Found in src/api.php - About 50 mins to fix

    Method api_place_buy_website has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
    Severity: Minor
    Found in src/api.php - About 45 mins to fix

      Avoid using undefined variables such as '$return' which will lead to PHP notices.
      Open

              $return['status_text'] = implode("\n", $errors);
      Severity: Minor
      Found in src/api.php by phpmd

      UndefinedVariable

      Since: 2.8.0

      Detects when a variable is used that has not been defined before.

      Example

      class Foo
      {
          private function bar()
          {
              // $message is undefined
              echo $message;
          }
      }

      Source https://phpmd.org/rules/cleancode.html#undefinedvariable

      Avoid using undefined variables such as '$return' which will lead to PHP notices.
      Open

              $return['status'] = 'ok';
      Severity: Minor
      Found in src/api.php by phpmd

      UndefinedVariable

      Since: 2.8.0

      Detects when a variable is used that has not been defined before.

      Example

      class Foo
      {
          private function bar()
          {
              // $message is undefined
              echo $message;
          }
      }

      Source https://phpmd.org/rules/cleancode.html#undefinedvariable

      Avoid using undefined variables such as '$tos' which will lead to PHP notices.
      Open

          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UndefinedVariable

      Since: 2.8.0

      Detects when a variable is used that has not been defined before.

      Example

      class Foo
      {
          private function bar()
          {
              // $message is undefined
              echo $message;
          }
      }

      Source https://phpmd.org/rules/cleancode.html#undefinedvariable

      Avoid using undefined variables such as '$return' which will lead to PHP notices.
      Open

          return $return;
      Severity: Minor
      Found in src/api.php by phpmd

      UndefinedVariable

      Since: 2.8.0

      Detects when a variable is used that has not been defined before.

      Example

      class Foo
      {
          private function bar()
          {
              // $message is undefined
              echo $message;
          }
      }

      Source https://phpmd.org/rules/cleancode.html#undefinedvariable

      Avoid using undefined variables such as '$return' which will lead to PHP notices.
      Open

              $return['status'] = 'error';
      Severity: Minor
      Found in src/api.php by phpmd

      UndefinedVariable

      Since: 2.8.0

      Detects when a variable is used that has not been defined before.

      Example

      class Foo
      {
          private function bar()
          {
              // $message is undefined
              echo $message;
          }
      }

      Source https://phpmd.org/rules/cleancode.html#undefinedvariable

      Avoid using undefined variables such as '$return' which will lead to PHP notices.
      Open

              $return['status_text'] = $serviceid;
      Severity: Minor
      Found in src/api.php by phpmd

      UndefinedVariable

      Since: 2.8.0

      Detects when a variable is used that has not been defined before.

      Example

      class Foo
      {
          private function bar()
          {
              // $message is undefined
              echo $message;
          }
      }

      Source https://phpmd.org/rules/cleancode.html#undefinedvariable

      Avoid unused local variables such as '$total_cost'.
      Open

              [$total_cost, $iid, $iids, $real_iids, $serviceid, $invoice_description, $cj_params, $domain_serviceid, $diid] = place_buy_website($coupon_code, $service_cost, $service_type, $original_cost, $repeat_service_cost, $custid, $period, $hostname, $coupon, $password, false, false, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$real_iids'.
      Open

              [$total_cost, $iid, $iids, $real_iids, $serviceid, $invoice_description, $cj_params, $domain_serviceid, $diid] = place_buy_website($coupon_code, $service_cost, $service_type, $original_cost, $repeat_service_cost, $custid, $period, $hostname, $coupon, $password, false, false, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$repeat_service_cost'.
      Open

          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$cj_params'.
      Open

              [$total_cost, $iid, $iids, $real_iids, $serviceid, $invoice_description, $cj_params, $domain_serviceid, $diid] = place_buy_website($coupon_code, $service_cost, $service_type, $original_cost, $repeat_service_cost, $custid, $period, $hostname, $coupon, $password, false, false, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$service_cost'.
      Open

          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$diid'.
      Open

              [$total_cost, $iid, $iids, $real_iids, $serviceid, $invoice_description, $cj_params, $domain_serviceid, $diid] = place_buy_website($coupon_code, $service_cost, $service_type, $original_cost, $repeat_service_cost, $custid, $period, $hostname, $coupon, $password, false, false, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$domain_serviceid'.
      Open

              [$total_cost, $iid, $iids, $real_iids, $serviceid, $invoice_description, $cj_params, $domain_serviceid, $diid] = place_buy_website($coupon_code, $service_cost, $service_type, $original_cost, $repeat_service_cost, $custid, $period, $hostname, $coupon, $password, false, false, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$iids'.
      Open

              [$total_cost, $iid, $iids, $real_iids, $serviceid, $invoice_description, $cj_params, $domain_serviceid, $diid] = place_buy_website($coupon_code, $service_cost, $service_type, $original_cost, $repeat_service_cost, $custid, $period, $hostname, $coupon, $password, false, false, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$coupon_code'.
      Open

          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$tos'.
      Open

          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$iid'.
      Open

              [$total_cost, $iid, $iids, $real_iids, $serviceid, $invoice_description, $cj_params, $domain_serviceid, $diid] = place_buy_website($coupon_code, $service_cost, $service_type, $original_cost, $repeat_service_cost, $custid, $period, $hostname, $coupon, $password, false, false, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$invoice_description'.
      Open

              [$total_cost, $iid, $iids, $real_iids, $serviceid, $invoice_description, $cj_params, $domain_serviceid, $diid] = place_buy_website($coupon_code, $service_cost, $service_type, $original_cost, $repeat_service_cost, $custid, $period, $hostname, $coupon, $password, false, false, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Avoid unused local variables such as '$original_cost'.
      Open

          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      The parameter $service_type is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseParameterName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name parameters.

      Example

      class ClassName {
          public function doSomething($user_name) {
          }
      }

      Source

      The parameter $service_type is not named in camelCase.
      Open

      function api_validate_buy_website($period, $coupon, $tos, $service_type, $hostname, $password, $script)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseParameterName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name parameters.

      Example

      class ClassName {
          public function doSomething($user_name) {
          }
      }

      Source

      The variable $service_type is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $total_cost is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $service_type is not named in camelCase.
      Open

      function api_validate_buy_website($period, $coupon, $tos, $service_type, $hostname, $password, $script)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $repeat_service_cost is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $invoice_description is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $service_cost is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $coupon_code is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $repeat_service_cost is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $domain_serviceid is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $service_type is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $service_cost is not named in camelCase.
      Open

      function api_validate_buy_website($period, $coupon, $tos, $service_type, $hostname, $password, $script)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $original_cost is not named in camelCase.
      Open

      function api_validate_buy_website($period, $coupon, $tos, $service_type, $hostname, $password, $script)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $coupon_code is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $cj_params is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $service_type is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $service_type is not named in camelCase.
      Open

      function api_validate_buy_website($period, $coupon, $tos, $service_type, $hostname, $password, $script)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $service_cost is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $coupon_code is not named in camelCase.
      Open

      function api_validate_buy_website($period, $coupon, $tos, $service_type, $hostname, $password, $script)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $original_cost is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $real_iids is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $original_cost is not named in camelCase.
      Open

      function api_place_buy_website($service_type, $period, $hostname, $coupon, $password, $script = 0)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      The variable $repeat_service_cost is not named in camelCase.
      Open

      function api_validate_buy_website($period, $coupon, $tos, $service_type, $hostname, $password, $script)
      {
          $custid = get_custid($GLOBALS['tf']->session->account_id, 'vps');
          function_requirements('validate_buy_website');
          [$continue, $errors, $period, $coupon, $coupon_code, $service_type, $service_cost, $original_cost, $repeat_service_cost, $custid, $hostname, $password] = validate_buy_website($custid, $period, $coupon, $tos, $service_type, $hostname, $password, $script);
      Severity: Minor
      Found in src/api.php by phpmd

      CamelCaseVariableName

      Since: 0.2

      It is considered best practice to use the camelCase notation to name variables.

      Example

      class ClassName {
          public function doSomething() {
              $data_module = new DataModule();
          }
      }

      Source

      There are no issues that match your filters.

      Category
      Status