app/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/OneInterfacePerFileSniff.php
/**
     * Processes this sniff, when one of its tokens is encountered.
     *
     * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
     * @param int                         $stackPtr  The position of the current token in
     *                                               the stack passed in $tokens.
     *
     * @return void
     */
Processes this sniff, when one of its tokens is encountered.
@param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
@param int                         $stackPtr  The position of the current token in
the stack passed in $tokens.

@return void
Processes this sniff when one of its tokens is encountered . @param \ PHP_CodeSniffer \ Files \ File $phpcsFile The file being scanned . @param int $stackPtr The position of the current token in the stack passed in $tokens . @return void
public function process(File $phpcsFile, $stackPtr)
    {
        $nextInterface = $phpcsFile->findNext($this->register(), ($stackPtr + 1));
        if ($nextInterface !== false) {
            $error = 'Only one interface is allowed in a file';
            $phpcsFile->addError($error, $nextInterface, 'MultipleFound');
        }
    }
public function process ( File $ phpcsFile , $ stackPtr ) { $ nextInterface = $ phpcsFile -> findNext ( $ this -> register ( ) , ( $ stackPtr + 1 ) ) ; if ( $ nextInterface !== false ) { $ error = 'Only one interface is allowed in a file' ; $ phpcsFile -> addError ( $ error , $ nextInterface , 'MultipleFound' ) ; } }
Processes this sniff, when one of its tokens is encountered.
Processes this sniff when one of its tokens is encountered .