hnhdigital-os/php-virtualmin-api

View on GitHub
src/VirtualServersClient.php

Summary

Maintainability
D
2 days
Test Coverage

VirtualServersClient has 63 functions (exceeds 20 allowed). Consider refactoring.
Open

class VirtualServersClient extends VirtualminClient
{

    /**
     * Clone Domain.
Severity: Major
Found in src/VirtualServersClient.php - About 1 day to fix

    File VirtualServersClient.php has 508 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace HnhDigital\Virtualmin;
    
    class VirtualServersClient extends VirtualminClient
    Severity: Major
    Found in src/VirtualServersClient.php - About 1 day to fix

      The class VirtualServersClient has an overall complexity of 120 which is very high. The configured complexity threshold is 50.
      Open

      class VirtualServersClient extends VirtualminClient
      {
      
          /**
           * Clone Domain.
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      The class VirtualServersClient has 63 non-getter- and setter-methods. Consider refactoring VirtualServersClient to keep number of methods under 25.
      Open

      class VirtualServersClient extends VirtualminClient
      {
      
          /**
           * Clone Domain.
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      TooManyMethods

      Since: 0.1

      A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

      By default it ignores methods starting with 'get' or 'set'.

      The default was changed from 10 to 25 in PHPMD 2.3.

      Example

      Source https://phpmd.org/rules/codesize.html#toomanymethods

      The class VirtualServersClient has 63 public methods. Consider refactoring VirtualServersClient to keep number of public methods under 10.
      Open

      class VirtualServersClient extends VirtualminClient
      {
      
          /**
           * Clone Domain.
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      TooManyPublicMethods

      Since: 0.1

      A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

      By default it ignores methods starting with 'get' or 'set'.

      Example

      Source https://phpmd.org/rules/codesize.html#toomanypublicmethods

      The class VirtualServersClient has 63 public methods and attributes. Consider reducing the number of public items to less than 45.
      Open

      class VirtualServersClient extends VirtualminClient
      {
      
          /**
           * Clone Domain.
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      ExcessivePublicCount

      Since: 0.1

      A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.

      Example

      public class Foo {
          public $value;
          public $something;
          public $var;
          // [... more more public attributes ...]
      
          public function doWork() {}
          public function doMoreWork() {}
          public function doWorkAgain() {}
          // [... more more public methods ...]
      }

      Source https://phpmd.org/rules/codesize.html#excessivepubliccount

      Function create has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

          public function create($domain, $password, array $options = [])
          {
              $parameters = [];
              $parameters['domain'] = $domain;
              $parameters['pass'] = $password;
      Severity: Minor
      Found in src/VirtualServersClient.php - About 25 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

      Function createChild has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

          public function createChild($parent_domain, $domain, $password, array $options = [])
          {
              $parameters = [];
              $parameters['parent '] = $parent_domain;
              $parameters['domain'] = $domain;
      Severity: Minor
      Found in src/VirtualServersClient.php - About 25 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

      Function createAlias has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

          public function createAlias($parent_domain, $domain, array $options = [])
          {
              $parameters = [];
              $parameters['alias'] = $parent_domain;
              $parameters['domain'] = $domain;
      Severity: Minor
      Found in src/VirtualServersClient.php - About 25 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

      The class VirtualServersClient has 1138 lines of code. Current threshold is 1000. Avoid really long classes.
      Open

      class VirtualServersClient extends VirtualminClient
      {
      
          /**
           * Clone Domain.
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      The method disableDir has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableDir($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableWeb has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableWeb($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableLogFtp has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableLogFtp($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableDav has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableDav($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableUnix has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableUnix($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableDav has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableDav($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableDav has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableDav($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableLogMySql has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableLogMySql($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableLogFtp has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableLogFtp($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableWebmin has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableWebmin($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableWeb has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableWeb($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableSsl has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableSsl($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableLogRotate has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableLogRotate($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableVirus has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableVirus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableDav has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableDav($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableLogMySql has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableLogMySql($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableWebmin has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableWebmin($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableAwstats has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableAwstats($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableSpam has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableSpam($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableDns has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableDns($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableStatus has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableStatus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableSsl has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableSsl($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableSpam has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableSpam($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableAwstats has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableAwstats($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableStatus has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableStatus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableMail has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableMail($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableSpam has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableSpam($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableAwstats has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableAwstats($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableWeb has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableWeb($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableSsl has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableSsl($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableLogRotate has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableLogRotate($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableLogFtp has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableLogFtp($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableSpam has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableSpam($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableDns has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableDns($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableDns has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableDns($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableMail has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableMail($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableSvn has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableSvn($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableSvn has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableSvn($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableMail has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableMail($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableWebmin has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableWebmin($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableUnix has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableUnix($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableDns has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableDns($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableLogMySql has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableLogMySql($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableLogFtp has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableLogFtp($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableDir has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableDir($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableUnix has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableUnix($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableWebalizer has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableWebalizer($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableWebalizer has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableWebalizer($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableWebalizer has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableWebalizer($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableSsl has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableSsl($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableSvn has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableSvn($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableDir has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableDir($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableLogRotate has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableLogRotate($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableWebmin has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableWebmin($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableAwstats has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableAwstats($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableWeb has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableWeb($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableStatus has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableStatus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableUnix has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableUnix($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableMail has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableMail($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableStatus has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableStatus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableDir has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableDir($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableVirus has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableVirus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableVirus has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableVirus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableWebalizer has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableWebalizer($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableLogMySql has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableLogMySql($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableVirus has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableVirus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method disableSvn has a boolean flag argument $user, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function disableSvn($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      The method enableLogRotate has a boolean flag argument $domain, which is a certain sign of a Single Responsibility Principle violation.
      Open

          public function enableLogRotate($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      BooleanArgumentFlag

      Since: 1.4.0

      A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

      Example

      class Foo {
          public function bar($flag = true) {
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableWeb($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$password'.
      Open

          public function createChild($parent_domain, $domain, $password, array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableLogRotate($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableVirus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableUnix($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableAwstats($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableWeb($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableWebalizer($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableDir($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableLogRotate($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableSsl($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function notifyDomains(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableWebalizer($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableSsl($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableDav($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function resendEmail(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function unaliasDomain(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableMail($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableDns($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableWebmin($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableUnix($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function moveDomain(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function unsubDomain(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableSvn($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function modifyDomain(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableStatus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function modifyMail(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableLogMySql($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableSpam($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableLogFtp($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableLogFtp($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableSvn($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function modifyDns(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function validateDomain(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function modifySpam(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableDir($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableMail($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function migrateDomain(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableDns($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableSpam($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableStatus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableDav($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function disableWebmin($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableLogMySql($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableVirus($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$user'.
      Open

          public function enableAwstats($domain = false, $user = false)
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Avoid unused parameters such as '$options'.
      Open

          public function modifyWeb(array $options = [])
      Severity: Minor
      Found in src/VirtualServersClient.php by phpmd

      UnusedFormalParameter

      Since: 0.2

      Avoid passing parameters to methods or constructors and then not using those parameters.

      Example

      class Foo
      {
          private function bar($howdy)
          {
              // $howdy is not used
          }
      }

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

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

          public function create($domain, $password, array $options = [])
          {
              $parameters = [];
              $parameters['domain'] = $domain;
              $parameters['pass'] = $password;
      Severity: Major
      Found in src/VirtualServersClient.php and 1 other location - About 2 hrs to fix
      src/VirtualServersClient.php on lines 169..188

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 131.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

          public function createAlias($parent_domain, $domain, array $options = [])
          {
              $parameters = [];
              $parameters['alias'] = $parent_domain;
              $parameters['domain'] = $domain;
      Severity: Major
      Found in src/VirtualServersClient.php and 1 other location - About 2 hrs to fix
      src/VirtualServersClient.php on lines 106..125

      Duplicated Code

      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

      Tuning

      This issue has a mass of 131.

      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

      Refactorings

      Further Reading

      Avoid excessively long variable names like $create_domain_options. Keep variable name length under 20.
      Open

          private $create_domain_options = [
              'desc',
              'email',
              'user',
              'group',
      Severity: Minor
      Found in src/VirtualServersClient.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

      Avoid excessively long variable names like $create_domain_option_defaults. Keep variable name length under 20.
      Open

          private $create_domain_option_defaults = [
              'quota' => 'UNLIMITED',
              'uquota' => 'UNLIMITED',
          ];
      Severity: Minor
      Found in src/VirtualServersClient.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

      There are no issues that match your filters.

      Category
      Status