steeffeen/FancyManiaLinks

View on GitHub
FML/XmlRpc/TMUIProperties.php

Summary

Maintainability
C
1 day
Test Coverage
A
100%

TMUIProperties has 51 functions (exceeds 20 allowed). Consider refactoring.
Open

class TMUIProperties extends UIProperties
{

    /**
     * @var array $liveInfoProperties Live info properties
Severity: Major
Found in FML/XmlRpc/TMUIProperties.php - About 7 hrs to fix

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

    class TMUIProperties extends UIProperties
    {
    
        /**
         * @var array $liveInfoProperties Live info properties
    Severity: Minor
    Found in FML/XmlRpc/TMUIProperties.php by phpmd

    File TMUIProperties.php has 261 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace FML\XmlRpc;
    
    /**
    Severity: Minor
    Found in FML/XmlRpc/TMUIProperties.php - About 2 hrs to fix

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

      class TMUIProperties extends UIProperties
      {
      
          /**
           * @var array $liveInfoProperties Live info properties
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.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

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

          protected $spectatorInfoProperties = array();
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.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 $roundScoresProperties. Keep variable name length under 20.
      Open

          protected $roundScoresProperties = array();
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.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 $checkpointListProperties. Keep variable name length under 20.
      Open

          protected $checkpointListProperties = array();
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.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 $multiLapInfoProperties. Keep variable name length under 20.
      Open

          protected $multiLapInfoProperties = array();
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.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 $speedAndDistanceProperties. Keep variable name length under 20.
      Open

          protected $speedAndDistanceProperties = array();
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.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 $personalBestAndRankProperties. Keep variable name length under 20.
      Open

          protected $personalBestAndRankProperties = array();
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.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 $checkpointRankingProperties. Keep variable name length under 20.
      Open

          protected $checkpointRankingProperties = array();
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.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 $opponentsInfoProperties. Keep variable name length under 20.
      Open

          protected $opponentsInfoProperties = array();
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.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 $checkpointTimeProperties. Keep variable name length under 20.
      Open

          protected $checkpointTimeProperties = array();
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.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 closing brace for the class must go on the next line after the body
      Open

      }

      The 'getRoundScoresVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getRoundScoresVisible()
          {
              return $this->getVisibleProperty($this->roundScoresProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getLiveInfoVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getLiveInfoVisible()
          {
              return $this->getVisibleProperty($this->liveInfoProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getSpectatorInfoVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getSpectatorInfoVisible()
          {
              return $this->getVisibleProperty($this->spectatorInfoProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getSpeedAndDistanceVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getSpeedAndDistanceVisible()
          {
              return $this->getVisibleProperty($this->speedAndDistanceProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getCheckpointListVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getCheckpointListVisible()
          {
              return $this->getVisibleProperty($this->checkpointListProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getPersonalBestAndRankVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getPersonalBestAndRankVisible()
          {
              return $this->getVisibleProperty($this->personalBestAndRankProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getWarmUpVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getWarmUpVisible()
          {
              return $this->getVisibleProperty($this->warmUpProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getCheckpointTimeVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getCheckpointTimeVisible()
          {
              return $this->getVisibleProperty($this->checkpointTimeProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getMultiLapInfoVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getMultiLapInfoVisible()
          {
              return $this->getVisibleProperty($this->multiLapInfoProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getOpponentsInfoVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getOpponentsInfoVisible()
          {
              return $this->getVisibleProperty($this->opponentsInfoProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getPositionVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getPositionVisible()
          {
              return $this->getVisibleProperty($this->positionProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getChronoVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getChronoVisible()
          {
              return $this->getVisibleProperty($this->chronoProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      The 'getCheckpointRankingVisible()' method which returns a boolean should be named 'is...()' or 'has...()'
      Open

          public function getCheckpointRankingVisible()
          {
              return $this->getVisibleProperty($this->checkpointRankingProperties);
          }
      Severity: Minor
      Found in FML/XmlRpc/TMUIProperties.php by phpmd

      BooleanGetMethodName

      Since: 0.2

      Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

      Example

      class Foo {
          /**
           * @return boolean
           */
          public function getFoo() {} // bad
          /**
           * @return bool
           */
          public function isFoo(); // ok
          /**
           * @return boolean
           */
          public function getFoo($bar); // ok, unless checkParameterizedMethods=true
      }

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

      There are no issues that match your filters.

      Category
      Status