Need to fix coding standard issues in Speech recognition search module.

Created on 9 June 2022, about 2 years ago
Updated 27 April 2023, about 1 year ago

Problem/Motivation

Steps to reproduce

Run the code through phpcs with drupal and drupal practice standards.
will get follow errors:
1. Whitespace found at the end of the line.
2. t() calls should be avoided in classes use $this->t() instead.
3. Expected 1 space before "?"; 0 found.
4. TRUE, FALSE, and NULL must be uppercase; found "false".
5. A comma should follow the last multiline array item, fount: true
6. \Drupal calls should be avoided in classes, use dependency injection instead.
7. The closing brace for the class must have an empty line before it.
8. Whitespace found at end of the line.
9. Line exceeds 80 characters.
10. Concat operator must be surrounded by a single space.
11. Functions must not contain multiple empty lines in a row.
12. Doc comment short description must end with a full stop.
13. Remove "version" from the info file, it will be added by drupal.org packaging automatically.

Proposed resolution

Run the code through phpcbf with drupal and drupal practice standards.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇮🇳India akshaydalvi212

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024