Refactoring index parameter handling to have the same code style as others
Refactoring index parameter handling to have the same code style as others

ingoclaro/phantomas,macbre/phantomas,william-p/phantomas,gmetais/phantomas,ingoclaro/phantomas,gmetais/phantomas,william-p/phantomas,william-p/phantomas,ingoclaro/phantomas,macbre/phantomas,macbre/phantomas,gmetais/phantomas