yiisoft/yii2

View on GitHub

Showing 2,035 of 2,035 total issues

The variable $_icuShortFormats is not named in camelCase.
Open

    public static function convertDateIcuToPhp($pattern, $type = 'date', $locale = null)
    {
        if (isset(self::$_icuShortFormats[$pattern])) {
            if (extension_loaded('intl')) {
                if ($locale === null) {

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_mimeAliases is not named in camelCase.
Open

    protected static function loadMimeAliases($aliasesFile)
    {
        if ($aliasesFile === null) {
            $aliasesFile = static::$mimeAliasesFile;
        }
Severity: Minor
Found in framework/helpers/BaseFileHelper.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_icuShortFormats is not named in camelCase.
Open

    public static function convertDateIcuToPhp($pattern, $type = 'date', $locale = null)
    {
        if (isset(self::$_icuShortFormats[$pattern])) {
            if (extension_loaded('intl')) {
                if ($locale === null) {

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_reusableData is not named in camelCase.
Open

    public function evaluateDependency($cache)
    {
        if ($this->reusable) {
            $hash = $this->generateReusableHash();
            if (!array_key_exists($hash, self::$_reusableData)) {
Severity: Minor
Found in framework/caching/Dependency.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_icuShortFormats is not named in camelCase.
Open

    public static function convertDateIcuToJui($pattern, $type = 'date', $locale = null)
    {
        if (isset(self::$_icuShortFormats[$pattern])) {
            if (extension_loaded('intl')) {
                if ($locale === null) {

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_reusableData is not named in camelCase.
Open

    public function isChanged($cache)
    {
        if ($this->reusable) {
            $hash = $this->generateReusableHash();
            if (!array_key_exists($hash, self::$_reusableData)) {
Severity: Minor
Found in framework/caching/Dependency.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_eventWildcards is not named in camelCase.
Open

    public static function off($class, $name, $handler = null)
    {
        $class = ltrim($class, '\\');
        if (empty(self::$_events[$name][$class]) && empty(self::$_eventWildcards[$name][$class])) {
            return false;
Severity: Minor
Found in framework/base/Event.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_eventWildcards is not named in camelCase.
Open

    public static function off($class, $name, $handler = null)
    {
        $class = ltrim($class, '\\');
        if (empty(self::$_events[$name][$class]) && empty(self::$_eventWildcards[$name][$class])) {
            return false;
Severity: Minor
Found in framework/base/Event.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_eventWildcards is not named in camelCase.
Open

    public static function off($class, $name, $handler = null)
    {
        $class = ltrim($class, '\\');
        if (empty(self::$_events[$name][$class]) && empty(self::$_eventWildcards[$name][$class])) {
            return false;
Severity: Minor
Found in framework/base/Event.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_events is not named in camelCase.
Open

    public static function hasHandlers($class, $name)
    {
        if (empty(self::$_eventWildcards) && empty(self::$_events[$name])) {
            return false;
        }
Severity: Minor
Found in framework/base/Event.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_eventWildcards is not named in camelCase.
Open

    public static function on($class, $name, $handler, $data = null, $append = true)
    {
        $class = ltrim($class, '\\');

        if (strpos($class, '*') !== false || strpos($name, '*') !== false) {
Severity: Minor
Found in framework/base/Event.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_eventWildcards is not named in camelCase.
Open

    public static function off($class, $name, $handler = null)
    {
        $class = ltrim($class, '\\');
        if (empty(self::$_events[$name][$class]) && empty(self::$_eventWildcards[$name][$class])) {
            return false;
Severity: Minor
Found in framework/base/Event.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_events is not named in camelCase.
Open

    public static function off($class, $name, $handler = null)
    {
        $class = ltrim($class, '\\');
        if (empty(self::$_events[$name][$class]) && empty(self::$_eventWildcards[$name][$class])) {
            return false;
Severity: Minor
Found in framework/base/Event.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_events is not named in camelCase.
Open

    public static function off($class, $name, $handler = null)
    {
        $class = ltrim($class, '\\');
        if (empty(self::$_events[$name][$class]) && empty(self::$_eventWildcards[$name][$class])) {
            return false;
Severity: Minor
Found in framework/base/Event.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_eventWildcards is not named in camelCase.
Open

    public static function off($class, $name, $handler = null)
    {
        $class = ltrim($class, '\\');
        if (empty(self::$_events[$name][$class]) && empty(self::$_eventWildcards[$name][$class])) {
            return false;
Severity: Minor
Found in framework/base/Event.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_instances is not named in camelCase.
Open

    public static function instance($refresh = false)
    {
        $className = get_called_class();
        if ($refresh || !isset(self::$_instances[$className])) {
            self::$_instances[$className] = Yii::createObject($className);

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_file_ is not named in camelCase.
Open

    public function renderPhpFile($_file_, $_params_ = [])
    {
        $_obInitialLevel_ = ob_get_level();
        ob_start();
        ob_implicit_flush(false);
Severity: Minor
Found in framework/base/View.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_events is not named in camelCase.
Open

    public static function off($class, $name, $handler = null)
    {
        $class = ltrim($class, '\\');
        if (empty(self::$_events[$name][$class]) && empty(self::$_eventWildcards[$name][$class])) {
            return false;
Severity: Minor
Found in framework/base/Event.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_obInitialLevel_ is not named in camelCase.
Open

    public function renderPhpFile($_file_, $_params_ = [])
    {
        $_obInitialLevel_ = ob_get_level();
        ob_start();
        ob_implicit_flush(false);
Severity: Minor
Found in framework/base/View.php by phpmd

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

The variable $_data_ is not named in camelCase.
Open

    function renderViewFile($_viewFile_, $_data_ = null, $_return_ = false)
    {
        // we use special variable names here to avoid conflict when extracting data
        if (is_array($_data_)) {
            extract($_data_, EXTR_PREFIX_SAME, 'data');

Since: PHPMD 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: http://phpmd.org/rules/controversial.txt

Severity
Category
Status
Source
Language