src/Standards/BestIt/Sniffs/TypeHints/ReturnTypeDeclarationSniff.php
protected function setUp(): void
    {
        parent::setUp();

        if ($this->hasReturnType()) {
            $this->getFile()->recordMetric($this->stackPos, 'Has return type', 'yes');
        }
    }
protected function setUp(): void
    {
        parent::setUp();

        if ($this->hasReturnType()) {
            $this->getFile()->recordMetric($this->stackPos, 'Has return type', 'yes');
        }
    }
protected function setUp ( ) : void { parent :: setUp ( ) ; if ( $ this -> hasReturnType ( ) ) { $ this -> getFile ( ) -> recordMetric ( $ this -> stackPos , 'Has return type' , 'yes' ) ; } }
Sets up the test.

@return void
Sets up the test .