fix(code): Correct PHP's notices and strict standards notices (refs #3108)