private function handleMinContentLength(string $content) { $length = mb_strlen($content); if ($length >= $this->minLength) { return; } $error = sprintf('Your %s is too short (currently %d chars, must be more or equals than %d chars)', $this->tokenString, $length, $this->minLength); $this->phpcsFile->addError($error, $this->stackPtr, sprintf('%sTooShort', ucfirst($this->tokenString))); }