Fixed php error and formatting 
2 files changed