Refactoring of a few code lines and change of php doc.