Remove some whitespace
Update Controller.php
Add ternary statement to the createInstance method
Merge pull request #5 from markogrady1/master

add a ternary statement to Factory class