Clean some phpcs errors in Preferences.php

Change-Id: I315e562c5f85e464a8ca61be6a47e2a468156a55
Merge "Clean some phpcs errors in Preferences.php"