$ phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml optional_date/
FILE: C:\xampp\htdocs\contribution\web\modules\contrib\optional_date\src\Plugin\Field\FieldType\OptionalDateItem.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
90 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\contribution\web\modules\contrib\optional_date\src\Plugin\Field\FieldType\OptionalDateRangeItem.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------
112 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
118 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
Time: 1.56 secs; Memory: 6MB
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | t-calls-should-be-avoided-3294213-2.patch | 2.24 KB | rakhi soni |
Comments
Comment #2
rakhi soni commentedKindly review patch,,
Comment #3
asishsajeev commented#2 Patcha applied successfully. LGTM
Comment #4
asishsajeev commentedComment #5
captainjak commented