Problem/Motivation

use function t()

FILE: ...o/d8-contrib/modules/advagg/advagg_mod/src/Form/SettingsForm.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 49 WARNINGS AFFECTING 49 LINES
----------------------------------------------------------------------
  96 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 101 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 103 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 108 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 110 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 117 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 118 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 122 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 124 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 128 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 130 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 137 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 138 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 142 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 145 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 146 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 147 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 149 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 155 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 160 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 162 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 168 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 170 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 175 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 180 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 182 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 184 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 194 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 196 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 207 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 208 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 212 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 214 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 218 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 220 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 226 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 231 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 234 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 235 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 237 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 243 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 245 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 254 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 256 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 265 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 268 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 269 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 270 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 272 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
----------------------------------------------------------------------

Comments

thalles created an issue. See original summary.

thalles’s picture

Status: Needs work » Needs review
StatusFileSize
new15.05 KB

Follow the patch!

  • thalles committed aeb92ee on 8.x-3.x
    Issue #3028095 by thalles: use function t() on advagg_mod/Form/...
thalles’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.