add return value to setAgentWithComputerid

This method can be tested correctly (in unit tests or from other part of
code)
clean space in line endings
Merge remote-tracking branch 'origin/master' into master+phpunit_tools