detain/myadmin-licenses-module

View on GitHub
src/api.php

Summary

Maintainability
F
5 days
Test Coverage

Function api_buy_license has a Cognitive Complexity of 85 (exceeds 5 allowed). Consider refactoring.
Open

function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
{
    if (null === $use_prepay) {
        $use_prepay = true;
        $prepay_low_funds_triggers_error = false;
Severity: Minor
Found in src/api.php - About 1 day to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method api_buy_license has 216 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
{
    if (null === $use_prepay) {
        $use_prepay = true;
        $prepay_low_funds_triggers_error = false;
Severity: Major
Found in src/api.php - About 1 day to fix

    File api.php has 418 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
    * API License Functions
    *
    * @author Joe Huss <detain@interserver.net>
    Severity: Minor
    Found in src/api.php - About 6 hrs to fix

      Method api_cancel_license_ip has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function api_cancel_license_ip($sid, $ip, $service_type)
      {
          $service_type = (int)$service_type;
          myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
          $module = 'licenses';
      Severity: Major
      Found in src/api.php - About 2 hrs to fix

        Method api_change_license_ip has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function api_change_license_ip($sid, $oldip, $newip)
        {
            $GLOBALS['tf']->session->sessionid = $sid;
            $module = 'licenses';
            $settings = get_module_settings($module);
        Severity: Minor
        Found in src/api.php - About 1 hr to fix

          Method api_change_license_ip_by_id has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function api_change_license_ip_by_id($sid, $id, $newip)
          {
              $id = (int)$id;
              $GLOBALS['tf']->session->sessionid = $sid;
              $module = 'licenses';
          Severity: Minor
          Found in src/api.php - About 1 hr to fix

            Function api_cancel_license_ip has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

            function api_cancel_license_ip($sid, $ip, $service_type)
            {
                $service_type = (int)$service_type;
                myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
                $module = 'licenses';
            Severity: Minor
            Found in src/api.php - About 1 hr to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method api_cancel_license has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function api_cancel_license($sid, $id)
            {
                $module = 'licenses';
                $id = (int)$id;
                $db = get_module_db($module);
            Severity: Minor
            Found in src/api.php - About 1 hr to fix

              Function api_change_license_ip has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

              function api_change_license_ip($sid, $oldip, $newip)
              {
                  $GLOBALS['tf']->session->sessionid = $sid;
                  $module = 'licenses';
                  $settings = get_module_settings($module);
              Severity: Minor
              Found in src/api.php - About 45 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Method api_buy_license_prepay has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function api_buy_license_prepay($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
              Severity: Minor
              Found in src/api.php - About 35 mins to fix

                Method api_buy_license has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                Severity: Minor
                Found in src/api.php - About 35 mins to fix

                  Function api_change_license_ip_by_id has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function api_change_license_ip_by_id($sid, $id, $newip)
                  {
                      $id = (int)$id;
                      $GLOBALS['tf']->session->sessionid = $sid;
                      $module = 'licenses';
                  Severity: Minor
                  Found in src/api.php - About 35 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Avoid too many return statements within this method.
                  Open

                      return $return;
                  Severity: Major
                  Found in src/api.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return $return;
                    Severity: Major
                    Found in src/api.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return $return;
                      Severity: Major
                      Found in src/api.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                            return $return;
                        Severity: Major
                        Found in src/api.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return $return;
                          Severity: Major
                          Found in src/api.php - About 30 mins to fix

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

                                        $service_id_for_type = implode(',', $temp_service_ids);
                            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 '$temp_service_ids' which will lead to PHP notices.
                            Open

                                                $temp_service_ids[] = $db->Record['services_id'];
                            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

                            Missing class import via use statement (line '380', column '14').
                            Open

                                    (new \MyAdmin\Mail())->multiMail($subject, $msg, $data['account_lid'], 'client/license_paytoactivate.tpl');
                            Severity: Minor
                            Found in src/api.php by phpmd

                            MissingImport

                            Since: 2.7.0

                            Importing all external classes in a file through use statements makes them clearly visible.

                            Example

                            function make() {
                                return new \stdClass();
                            }

                            Source http://phpmd.org/rules/cleancode.html#MissingImport

                            Missing class import via use statement (line '373', column '23').
                            Open

                                    $smarty = new TFSmarty();
                            Severity: Minor
                            Found in src/api.php by phpmd

                            MissingImport

                            Since: 2.7.0

                            Importing all external classes in a file through use statements makes them clearly visible.

                            Example

                            function make() {
                                return new \stdClass();
                            }

                            Source http://phpmd.org/rules/cleancode.html#MissingImport

                            Missing class import via use statement (line '337', column '31').
                            Open

                                    $repeat_invoice = new \MyAdmin\Orm\Repeat_Invoice($db);
                            Severity: Minor
                            Found in src/api.php by phpmd

                            MissingImport

                            Since: 2.7.0

                            Importing all external classes in a file through use statements makes them clearly visible.

                            Example

                            function make() {
                                return new \stdClass();
                            }

                            Source http://phpmd.org/rules/cleancode.html#MissingImport

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

                                $paid = false;
                            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 excessively long variable names like $prepay_low_funds_triggers_error. Keep variable name length under 20.
                            Open

                                    $prepay_low_funds_triggers_error = false;
                            Severity: Minor
                            Found in src/api.php by phpmd

                            LongVariable

                            Since: 0.2

                            Detects when a field, formal or local variable is declared with a long name.

                            Example

                            class Something {
                                protected $reallyLongIntName = -3; // VIOLATION - Field
                                public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                    $otherReallyLongName = -5; // VIOLATION - Local
                                    for ($interestingIntIndex = 0; // VIOLATION - For
                                         $interestingIntIndex < 10;
                                         $interestingIntIndex++ ) {
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#longvariable

                            The parameter $use_prepay is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $use_prepay is not named in camelCase.
                            Open

                            function api_buy_license_prepay($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                return api_buy_license($sid, $ip, $service_type, $coupon, $use_prepay);
                            }
                            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_cancel_license_ip($sid, $ip, $service_type)
                            {
                                $service_type = (int)$service_type;
                                myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
                                $module = 'licenses';
                            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_buy_license_prepay($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                return api_buy_license($sid, $ip, $service_type, $coupon, $use_prepay);
                            }
                            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 $prepay_low_funds_triggers_error is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_id_for_type is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $int_map is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_types is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_types is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_invoice is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_cancel_license_ip($sid, $ip, $service_type)
                            {
                                $service_type = (int)$service_type;
                                myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
                                $module = 'licenses';
                            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_types is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $ip_owner is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_id_for_type is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_cancel_license_ip($sid, $ip, $service_type)
                            {
                                $service_type = (int)$service_type;
                                myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
                                $module = 'licenses';
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_types is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $license_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_invoice is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_invoice is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_extra is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $int_map is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $ip_owner is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $prepay_low_funds_triggers_error is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_types is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $use_prepay is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $ip_owner is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_types is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $temp_service_ids is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $prepay_low_funds_triggers_error is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $valid_blocks is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_cancel_license_ip($sid, $ip, $service_type)
                            {
                                $service_type = (int)$service_type;
                                myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
                                $module = 'licenses';
                            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_buy_license_prepay($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                return api_buy_license($sid, $ip, $service_type, $coupon, $use_prepay);
                            }
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $temp_service_ids is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $license_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $use_prepay is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_cancel_license_ip($sid, $ip, $service_type)
                            {
                                $service_type = (int)$service_type;
                                myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
                                $module = 'licenses';
                            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_cancel_license_ip($sid, $ip, $service_type)
                            {
                                $service_type = (int)$service_type;
                                myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
                                $module = 'licenses';
                            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 $use_prepay is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $valid_blocks is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $use_prepay is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $license_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_invoice is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_types is not named in camelCase.
                            Open

                            function api_cancel_license_ip($sid, $ip, $service_type)
                            {
                                $service_type = (int)$service_type;
                                myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
                                $module = 'licenses';
                            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 $use_prepay is not named in camelCase.
                            Open

                            function api_buy_license_prepay($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                return api_buy_license($sid, $ip, $service_type, $coupon, $use_prepay);
                            }
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $ip_owner is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $license_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_extra is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_types is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $int_map is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $license_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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 $license_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_invoice is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_types is not named in camelCase.
                            Open

                            function api_cancel_license_ip($sid, $ip, $service_type)
                            {
                                $service_type = (int)$service_type;
                                myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
                                $module = 'licenses';
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_info is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_types is not named in camelCase.
                            Open

                            function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = null)
                            {
                                if (null === $use_prepay) {
                                    $use_prepay = true;
                                    $prepay_low_funds_triggers_error = false;
                            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