app/Report/AbstractReport.php
public function setup(): void
    {
        $this->rtl = I18N::direction() === 'rtl';

        $this->rkeywords = '';

        // I18N: This is a report footer. %s is the name of the application.
        $this->generated_by = I18N::translate('Generated by %s', Webtrees::NAME . ' ' . Webtrees::VERSION);

        // Paper size - defaults to A4 if the report fails to define a size.
        [$this->page_width, $this->page_height] = self::PAPER_SIZES[$this->page_format] ?? self::PAPER_SIZES['A4'];
    }
public function setup(): void
    {
        $this->rtl = I18N::direction() === 'rtl';

        $this->rkeywords = '';

        // I18N: This is a report footer. %s is the name of the application.
        $this->generated_by = I18N::translate('Generated by %s', Webtrees::NAME . ' ' . Webtrees::VERSION);

        // Paper size - defaults to A4 if the report fails to define a size.
        [$this->page_width, $this->page_height] = self::PAPER_SIZES[$this->page_format] ?? self::PAPER_SIZES['A4'];
    }
public function setup ( ) : void { $ this -> rtl = I18N :: direction ( ) === 'rtl' ; $ this -> rkeywords = '' ; // I18N: This is a report footer. %s is the name of the application. $ this -> generated_by = I18N :: translate ( 'Generated by %s' , Webtrees :: NAME . ' ' . Webtrees :: VERSION ) ; // Paper size - defaults to A4 if the report fails to define a size. [ $ this -> page_width , $ this -> page_height ] = self :: PAPER_SIZES [ $ this -> page_format ] ?? self :: PAPER_SIZES [ 'A4' ] ; }
Initial Setup
Setting up document wide defaults that will be inherited of the report modules
As DEFAULT A4 and Portrait will be used if not set

@return void
Initial Setup Setting up document wide defaults that will be inherited of the report modules As DEFAULT A4 and Portrait will be used if not set