``$return_ary[$type] = $this->get_algorithm('$' . $type . '$');`` 

spacing/newline:
https://github.com/phpbb/phpbb3/pull/1716/files#diff-d99862fc15e15db8c42167690768916bR108
https://github.com/phpbb/phpbb3/pull/1716/files#diff-c5fb996d6c902c0ff884a66ddfe302bfR171
rest is fine. 
But passwords can't longer than ~50-60 signs in a few algos. I hope this not accept wrong passwords, if the user enter too long passwords.