src/Decorator/Style.php
protected function validateCode($code)
    {
        if (is_integer($code)) {
            return true;
        }

        // Plug it back in and see what we get
        if (is_string($code)) {
            return $this->set($code);
        }

        if (is_array($code)) {
            return $this->validateCodeArray($code);
        }

        return false;
    }
protected function validateCode($code)
    {
        if (is_integer($code)) {
            return true;
        }

        // Plug it back in and see what we get
        if (is_string($code)) {
            return $this->set($code);
        }

        if (is_array($code)) {
            return $this->validateCodeArray($code);
        }

        return false;
    }
protected function validateCode ( $ code ) { if ( is_integer ( $ code ) ) { return true ; } // Plug it back in and see what we get if ( is_string ( $ code ) ) { return $ this -> set ( $ code ) ; } if ( is_array ( $ code ) ) { return $ this -> validateCodeArray ( $ code ) ; } return false ; }
Make sure that the code is an integer, if not let's try and get it there

@param mixed $code

@return boolean
Make sure that the code is an integer if not let s try and get it there