WordPress/Sniffs/DB/PreparedSQLPlaceholdersSniff.php
protected function analyse_sprintf( $sprintf_params ) {
		$found = 0;

		unset( $sprintf_params[1] );

		foreach ( $sprintf_params as $sprintf_param ) {
			if ( strpos( strtolower( $sprintf_param['raw'] ), 'implode' ) === false ) {
				continue;
			}

			$implode = $this->phpcsFile->findNext(
				Tokens::$emptyTokens,
				$sprintf_param['start'],
				$sprintf_param['end'],
				true
			);
			if ( \T_STRING === $this->tokens[ $implode ]['code']
				&& 'implode' === strtolower( $this->tokens[ $implode ]['content'] )
			) {
				if ( $this->analyse_implode( $implode ) === true ) {
					++$found;
				}
			}
		}

		return $found;
	}
protected function analyse_sprintf( $sprintf_params ) {
		$found = 0;

		unset( $sprintf_params[1] );

		foreach ( $sprintf_params as $sprintf_param ) {
			if ( strpos( strtolower( $sprintf_param['raw'] ), 'implode' ) === false ) {
				continue;
			}

			$implode = $this->phpcsFile->findNext(
				Tokens::$emptyTokens,
				$sprintf_param['start'],
				$sprintf_param['end'],
				true
			);
			if ( \T_STRING === $this->tokens[ $implode ]['code']
				&& 'implode' === strtolower( $this->tokens[ $implode ]['content'] )
			) {
				if ( $this->analyse_implode( $implode ) === true ) {
					++$found;
				}
			}
		}

		return $found;
	}
Analyse a sprintf() query wrapper to see if it contains a specific code pattern
to deal correctly with `IN` queries.

The pattern we are searching for is:
`sprintf( 'query ....', implode( ',', array_fill( 0, count( $something ), '%s' ) ) )`

@since 0.14.0

@param array $sprintf_params Parameters details for the sprintf call.

@return int The number of times the pattern was found in the replacements.