public static function get_tab_width( File $phpcsFile ) {
		$tab_width = 4;

		if ( isset( $phpcsFile->config->tabWidth ) && $phpcsFile->config->tabWidth > 0 ) {
			$tab_width = $phpcsFile->config->tabWidth;
		}

		return $tab_width;
	}
public static function get_tab_width( File $phpcsFile ) {
		$tab_width = 4;

		if ( isset( $phpcsFile->config->tabWidth ) && $phpcsFile->config->tabWidth > 0 ) {
			$tab_width = $phpcsFile->config->tabWidth;
		}

		return $tab_width;
	}
public static function get_tab_width ( File $ phpcsFile ) { $ tab_width = 4 ; if ( isset ( $ phpcsFile -> config -> tabWidth ) && $ phpcsFile -> config -> tabWidth > 0 ) { $ tab_width = $ phpcsFile -> config -> tabWidth ; } return $ tab_width ; }
Get the tab width as passed to PHPCS from the command-line or the ruleset.

@since 0.13.0

@param \PHP_CodeSniffer\Files\File $phpcsFile The file being processed.

@return int Tab width. Defaults to 4.
Get the tab width as passed to PHPCS from the command - line or the ruleset .