Dhii/php-cs-fixer-config

View on GitHub

Showing 7 of 7 total issues

Method getSymfonyRules20 has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function getSymfonyRules20()
    {
        return [
            'blank_line_after_opening_tag'                => true,
            'blank_line_before_return'                    => true,
Severity: Major
Found in src/Config.php - About 2 hrs to fix

    Method getContribRules20 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function getContribRules20()
        {
            return [
                'align_double_arrow'                        => true,
                'align_equals'                              => true,
    Severity: Minor
    Found in src/Config.php - About 1 hr to fix

      The variable $_rules is not named in camelCase.
      Open

          protected static function _prepareRules($rules)
          {
              foreach ($rules as $_name => $_rules) {
                  $rules[$_name] = array_flip($_rules);
              }
      Severity: Minor
      Found in src/Config.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $_name is not named in camelCase.
      Open

          protected static function _prepareRules($rules)
          {
              foreach ($rules as $_name => $_rules) {
                  $rules[$_name] = array_flip($_rules);
              }
      Severity: Minor
      Found in src/Config.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $_rules is not named in camelCase.
      Open

          protected static function _prepareRules($rules)
          {
              foreach ($rules as $_name => $_rules) {
                  $rules[$_name] = array_flip($_rules);
              }
      Severity: Minor
      Found in src/Config.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The variable $_name is not named in camelCase.
      Open

          protected static function _prepareRules($rules)
          {
              foreach ($rules as $_name => $_rules) {
                  $rules[$_name] = array_flip($_rules);
              }
      Severity: Minor
      Found in src/Config.php by phpmd

      CamelCaseVariableName

      Since: 0.2

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

      Example

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

      Source

      The method _prepareRules is not named in camelCase.
      Open

          protected static function _prepareRules($rules)
          {
              foreach ($rules as $_name => $_rules) {
                  $rules[$_name] = array_flip($_rules);
              }
      Severity: Minor
      Found in src/Config.php by phpmd

      CamelCaseMethodName

      Since: 0.2

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

      Example

      class ClassName {
          public function get_name() {
          }
      }

      Source

      Severity
      Category
      Status
      Source
      Language