Some fixes

- Fix Undefined offset issue on parseSemanticsOptions
- Reformatting to fit code conventions
- Fix issue if we try to install a extension for a not active php version