Fixed variable naming
minor #3775 Fixed variable naming (peterrehm)

This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3775).

Discussion
----------

Fixed variable naming

Changed $app into $this since this is used in the other helpers as well and $app is not available inside a console command.

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets | -

Commits
-------

66581a6 Fixed variable naming