Indentation in PHPStorm

Setting indentation for a file type

Select Preferences menu and search for code style

Fixing indentation for a file

To then change the indention of a current file:

- place the caret at a line with the wrong insertation
- on a mac press ^⌥I (ctrl+alt+letter I)