yiisoft/yii2

View on GitHub

Showing 2,038 of 2,038 total issues

The variable $_events is not named in camelCase.
Open

    public static function trigger($class, $name, $event = null)
    {
        $wildcardEventHandlers = [];
        foreach (self::$_eventWildcards as $nameWildcard => $classHandlers) {
            if (!StringHelper::matchWildcard($nameWildcard, $name)) {
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 $auth_token is not named in camelCase.
Open

    public function getAuthCredentials()
    {
        $username = isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : null;
        $password = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : null;
        if ($username !== null || $password !== null) {
Severity: Minor
Found in framework/web/Request.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 $_params_ 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 $_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 renderFile($_file_, $_params_)
    {
        $_params_['handler'] = $this;
        if ($this->exception instanceof ErrorException || !Yii::$app->has('view')) {
            ob_start();
Severity: Minor
Found in framework/web/ErrorHandler.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 $_params_ is not named in camelCase.
Open

    public function renderFile($_file_, $_params_)
    {
        $_params_['handler'] = $this;
        if ($this->exception instanceof ErrorException || !Yii::$app->has('view')) {
            ob_start();
Severity: Minor
Found in framework/web/ErrorHandler.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 $_params_ is not named in camelCase.
Open

    public function renderFile($_file_, $_params_)
    {
        $_params_['handler'] = $this;
        if ($this->exception instanceof ErrorException || !Yii::$app->has('view')) {
            ob_start();
Severity: Minor
Found in framework/web/ErrorHandler.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 $_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

The variable $_events is not named in camelCase.
Open

    public static function trigger($class, $name, $event = null)
    {
        $wildcardEventHandlers = [];
        foreach (self::$_eventWildcards as $nameWildcard => $classHandlers) {
            if (!StringHelper::matchWildcard($nameWildcard, $name)) {
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 $_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 $auth_token is not named in camelCase.
Open

    public function getAuthCredentials()
    {
        $username = isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : null;
        $password = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : null;
        if ($username !== null || $password !== null) {
Severity: Minor
Found in framework/web/Request.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 $_files is not named in camelCase.
Open

    private static function loadFilesRecursive($key, $names, $tempNames, $types, $sizes, $errors)
    {
        if (is_array($names)) {
            foreach ($names as $i => $name) {
                self::loadFilesRecursive($key . '[' . $i . ']', $name, $tempNames[$i], $types[$i], $sizes[$i], $errors[$i]);
Severity: Minor
Found in framework/web/UploadedFile.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 $_file_ is not named in camelCase.
Open

    public function renderFile($_file_, $_params_)
    {
        $_params_['handler'] = $this;
        if ($this->exception instanceof ErrorException || !Yii::$app->has('view')) {
            ob_start();
Severity: Minor
Found in framework/web/ErrorHandler.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

Severity
Category
Status
Source
Language