ObjectCalisthenics\AbstractIdentifierLengthSniff::isShortContentAllowed PHP 메소드

isShortContentAllowed() 개인적인 메소드

private isShortContentAllowed ( string $content ) : boolean
$content string
리턴 boolean
    private function isShortContentAllowed(string $content) : bool
    {
        if ($this->register() === [T_VARIABLE] && in_array($content, $this->allowedShortVariables)) {
            return true;
        }
        return false;
    }