Manage id in update.
PHPCS modifications.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>