reformatted code with phpstorm's template