Refactor UserProfileImage class and fix coding standards
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #2999732. -->
Reported by: [voleger](https://www.drupal.org/user/3260314)
>>>
<p>Method <code>generateProfileImageURL</code> does not follow the naming convention and should be refactored before the stable release.<br>
Also, the body of the method can be simplified.<br>
Added comments, updated expected arguments type to expect an instance of \Drupal\user\UserInterface instead of an instance of Drupal\user\Entity\User only.</p>
issue