public function render() { if (\Sledgehammer\is_valid_component($this->component)) { $this->component->render(); } }
/** * render($component) is an alias to $component->render() * but render($component) generates a notice when the $component isn't a component compatible object instead of an fatal error. */ function render($component) { if (Sledgehammer\is_valid_component($component)) { $component->render(); } }