protected function examineList(File $phpcsFile, $opener, $closer)
    {
        $start = $opener;
        while (($start = $this->hasTargetInList($phpcsFile, $start, $closer)) !== false) {
            $phpcsFile->addError(
                'Specifying keys in list constructs is not supported in PHP 7.0 or earlier.',
                $start,
                'Found'
            );
        }
    }
protected function examineList(File $phpcsFile, $opener, $closer)
    {
        $start = $opener;
        while (($start = $this->hasTargetInList($phpcsFile, $start, $closer)) !== false) {
            $phpcsFile->addError(
                'Specifying keys in list constructs is not supported in PHP 7.0 or earlier.',
                $start,
                'Found'
            );
        }
    }
protected function examineList ( File $ phpcsFile , $ opener , $ closer ) { $ start = $ opener ; while ( ( $ start = $ this -> hasTargetInList ( $ phpcsFile , $ start , $ closer ) ) !== false ) { $ phpcsFile -> addError ( 'Specifying keys in list constructs is not supported in PHP 7.0 or earlier.' , $ start , 'Found' ) ; } }
Examine the contents of a list construct to determine whether an error needs to be thrown.

@param \PHP_CodeSniffer_File $phpcsFile The file being scanned.
@param int                   $opener    The position of the list open token.
@param int                   $closer    The position of the list close token.

@return void
Examine the contents of a list construct to determine whether an error needs to be thrown .