src/DocumentationRepository.php
protected function prepareTitle()
    {
        $this->title = (new Crawler($this->content))->filterXPath('//h1');
        $this->title = count($this->title) ? $this->title->text() : null;

        return $this;
    }
protected function prepareTitle()
    {
        $this->title = (new Crawler($this->content))->filterXPath('//h1');
        $this->title = count($this->title) ? $this->title->text() : null;

        return $this;
    }
protected function prepareTitle ( ) { $ this -> title = ( new Crawler ( $ this -> content ) ) -> filterXPath ( '//h1' ) ; $ this -> title = count ( $ this -> title ) ? $ this -> title -> text ( ) : null ; return $ this ; }
Prepare the page title from the first h1 found.

@return $this
Prepare the page title from the first h1 found .