hoaproject/Router — pull request #9 by vonglasow (2013-10-17 11:59:32+00:00)
Title: Add explicit value for method (set|get)DefaultPort()

As a new developer for some project written with Hoa.
When I read a code already written by someone
Then I would like to understand all arguments of method without going to read again the documentation

So I prefer to see something like

$httpRouter->setDefaultPort(443, Hoa\Router::SECURE);
$httpRouter->setDefaultPort(80, Hoa\Router::UNSECURE);

than

$httpRouter->setDefaultPort(443, true);
$httpRouter->setDefaultPort(80, false);

So in general way, it should be better to have explicit arguments than abstruse arguments