joeldg / bowhead

PHP trading bot framework
Apache License 2.0
801 stars 288 forks source link

Create PHPStorm Codestyle setting file for common CodeStyles #39

Open kremsy opened 7 years ago

kremsy commented 7 years ago

Would be great if there could be a common Codestyle that all looks the same, and phpstorm autostyle will not mess whole files which are commited later.

rxmg-joeldg commented 7 years ago

good idea, my phpstorm file is kind of nuts for a lot of people because I used vim keybindings

kremsy commented 7 years ago

I have a quite good one (https://github.com/ManiaControl/ManiaControl/blob/master/.idea/codeStyleSettings.xml) , but I guess I need to modify it according to get it with most of the projects code in accordance, for example I generally use opening Brackets in same line:

public function bowhead_rsi_macd($pair, $data, $return_full=false){

instead of

    public function bowhead_rsi_macd($pair, $data, $return_full=false)
{

Will take a look into changing these minor things, and than I can provide the codestylesetting file.