Lower nesting level

Nesting level was too deep.
I keep to one or two hierarchy nesting level.
Add settings for PHP