Refactor index.php
Changes:
- Chained Function Call