Coding standard fixes

Created on 15 June 2020, almost 5 years ago
Updated 28 December 2023, over 1 year ago

Problem/Motivation

FILE: .../modules/contrib/scanner/scanner.module
----------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------
  787 | WARNING | Unused variable $join.
  790 | WARNING | Unused variable $terms_params.
  808 | WARNING | Unused variable $module.
  953 | WARNING | There must be no blank line following an inline
      |         | comment
 1024 | WARNING | Unused variable $fc_changed.
 1428 | WARNING | Variable $field_summary is undefined.
 1449 | WARNING | Variable $language is undefined.
 1451 | WARNING | Variable $language is undefined.
----------------------------------------------------------------------


FILE: .../modules/contrib/scanner/scanner.theme.inc
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 17 | WARNING | Unused variable $allowed_tags.
 56 | WARNING | Unused variable $allowed_tags.
----------------------------------------------------------------------


FILE: .../modules/contrib/scanner/tests/scanner_with_fc_tests.module
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 13 | WARNING | Unused variable $key.
 18 | WARNING | Unused variable $fc_key.
----------------------------------------------------------------------


FILE: .../modules/contrib/scanner/scanner.admin.inc
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 76 | WARNING | Unused variable $allowed_values.
----------------------------------------------------------------------

Steps to reproduce

Run following command

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml scanner/
🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇦🇺Australia VladimirAus Brisbane, Australia

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

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.71.5 2024