Hygiene: Fix phpcs complaints in hooks

Change-Id: I26a0af5ab03b72b918aa9ed54c260d9aa0f252ca
Merge "Hygiene: Fix phpcs complaints in hooks"