config->tabWidth ) && $phpcsFile->config->tabWidth > 0 ) { $tab_width = $phpcsFile->config->tabWidth; } return $tab_width; } /** * Check whether the `--ignore-annotations` option has been used. * * @since 0.13.0 * * @param \PHP_CodeSniffer\Files\File $phpcsFile Optional. The current file being processed. * * @return bool True if annotations should be ignored, false otherwise. */ public static function ignore_annotations( File $phpcsFile = null ) { if ( isset( $phpcsFile, $phpcsFile->config->annotations ) ) { return ! $phpcsFile->config->annotations; } else { $annotations = Config::getConfigData( 'annotations' ); if ( isset( $annotations ) ) { return ! $annotations; } } } }