1.2.x to 1.3.x migration script converted to pure php script.

Coding standards
Merge branch 'replace-update' of https://github.com/phaidon/core into replace-update