U4-3088

http://issues.umbraco.org/issue/U4-3088

I have also formated the code of publishingService class.