Phpcodingstyle

Updated php files in core and plugins to better conform to the coding standards i.e. changed `if(` to `if (`, `foreach(` to `foreach (` and `else if` to `elseif`. P.S. my first time contributing code changes to Piwik or any OSS for that matter!