src/Standards/BestIt/Sniffs/Functions/FluentSetterSniff.php
protected function processTokenWithinScope(
        File $file,
        $functionPos,
        $classPos
    ): void {
        $this->file = new FileDecorator($file);
        $this->stackPos = $functionPos;

        $isSuppressed = $this->isSniffSuppressed(static::CODE_NO_RETURN_FOUND);

        if (!$isSuppressed && $this->checkIfSetterFunction($classPos, $file, $functionPos)) {
            $this->checkForFluentSetterErrors($file, $functionPos, $classPos);
        }
    }
protected function processTokenWithinScope(
        File $file,
        $functionPos,
        $classPos
    ): void {
        $this->file = new FileDecorator($file);
        $this->stackPos = $functionPos;

        $isSuppressed = $this->isSniffSuppressed(static::CODE_NO_RETURN_FOUND);

        if (!$isSuppressed && $this->checkIfSetterFunction($classPos, $file, $functionPos)) {
            $this->checkForFluentSetterErrors($file, $functionPos, $classPos);
        }
    }
protected function processTokenWithinScope ( File $ file , $ functionPos , $ classPos ) : void { $ this -> file = new FileDecorator ( $ file ) ; $ this -> stackPos = $ functionPos ; $ isSuppressed = $ this -> isSniffSuppressed ( static :: CODE_NO_RETURN_FOUND ) ; if ( ! $ isSuppressed && $ this -> checkIfSetterFunction ( $ classPos , $ file , $ functionPos ) ) { $ this -> checkForFluentSetterErrors ( $ file , $ functionPos , $ classPos ) ; } }
Processes the tokens that this test is listening for.

@phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint

@param File $file The file where this token was found.
@param int $functionPos The position in the stack where this token was found.
@param int $classPos The position in the tokens array that opened the scope that this test is listening for.

@return void
Processes the tokens that this test is listening for .