public function renderHeader()

in workshop/05_Refactoring/09_Extract_Variable.php [18:30]


    public function renderHeader()
    {
        // 1. Place the caret on blogSubtitle.
        //    Extract the "{$this->blogName} - {$this->blogSubtitle}" string into a variable called $title.
        //    Note the IDE asks us which expression should be extracted. Select the entire string.
        echo '<title>';
        echo "{$this->blogName} - {$this->blogSubtitle}";
        echo '</title>';

        echo '<h1>';
        echo "{$this->blogName} - {$this->blogSubtitle}";
        echo '</h1>';
    }