Fix PHP strict standards warnings and add method visibility.