Dhii/i18n-abstract

View on GitHub

Showing 21 of 21 total issues

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

            $message,
            $code = 0,
            RootException $previous = null,
            $subject = null,
            $context = null,
Severity: Minor
Found in src/AbstractFormatTranslator.php - About 45 mins to fix

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

                $message,
                $code = 0,
                RootException $previous = null,
                $subject = null,
                $context = null);
    Severity: Minor
    Found in src/AbstractStringTranslator.php - About 35 mins to fix

      The method _getTranslator is not named in camelCase.
      Open

          protected function _getTranslator()
          {
              return $this->translator;
          }

      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

      The method _translate is not named in camelCase.
      Open

          protected function _translate($string, $context = null, $params = null)
          {
              $string = parent::_translate($string, $context);
              if (!is_null($params)) {
                  $string = $this->_interpolateParams($string, $params);
      Severity: Minor
      Found in src/AbstractFormatTranslator.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

      The method _createFormatTranslationException is not named in camelCase.
      Open

          abstract protected function _createFormatTranslationException(
                  $message,
                  $code = 0,
                  RootException $previous = null,
                  $subject = null,
      Severity: Minor
      Found in src/AbstractFormatTranslator.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

      The method _getInterpolationParams is not named in camelCase.
      Open

          protected function _getInterpolationParams()
          {
              return $this->interpolationParams;
          }

      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

      The method _interpolateParams is not named in camelCase.
      Open

          abstract protected function _interpolateParams($string, $params);
      Severity: Minor
      Found in src/AbstractFormatTranslator.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

      The method _translate is not named in camelCase.
      Open

          protected function _translate($string, $context = null)
          {
              $string = $this->_translateString($string, $context);
      
              return $string;
      Severity: Minor
      Found in src/AbstractStringTranslator.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

      The method _construct is not named in camelCase.
      Open

          protected function _construct()
          {
          }
      Severity: Minor
      Found in src/AbstractTranslator.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

      The method _setSubject is not named in camelCase.
      Open

          protected function _setSubject($subject)
          {
              $this->subject = $subject;
      
              return $this;

      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

      The method _getSubject is not named in camelCase.
      Open

          protected function _getSubject()
          {
              return $this->subject;
          }

      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

      The method _construct is not named in camelCase.
      Open

          protected function _construct()
          {
          }

      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

      The method _getContext is not named in camelCase.
      Open

          protected function _getContext()
          {
              return $this->context;
          }

      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

      The method _createStringTranslationException is not named in camelCase.
      Open

          abstract protected function _createStringTranslationException(
                  $message,
                  $code = 0,
                  RootException $previous = null,
                  $subject = null,
      Severity: Minor
      Found in src/AbstractStringTranslator.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

      The method _setTranslator is not named in camelCase.
      Open

          protected function _setTranslator(TranslatorInterface $translator = null)
          {
              $this->translator = $translator;
      
              return $this;

      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

      The method _translate is not named in camelCase.
      Open

          abstract protected function _translate($subject);
      Severity: Minor
      Found in src/AbstractTranslator.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

      The method _createTranslationException is not named in camelCase.
      Open

          abstract protected function _createTranslationException($message, $code = 0, RootException $previous = null, $subject = null);
      Severity: Minor
      Found in src/AbstractTranslator.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

      The method _translateString is not named in camelCase.
      Open

          abstract protected function _translateString($string, $context = null);
      Severity: Minor
      Found in src/AbstractStringTranslator.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

      The method _setContext is not named in camelCase.
      Open

          protected function _setContext($context)
          {
              $this->context = $context;
      
              return $this;

      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

      The method _createI18nException is not named in camelCase.
      Open

          abstract protected function _createI18nException($message, $code = 0, RootException $previous = null);
      Severity: Minor
      Found in src/AbstractTranslator.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