Problem/Motivation

Minor clean up in date_admin. Make static analysers happy.

Steps to reproduce

None.

Proposed resolution

Checks should be a as strict as possible, reduce some complexity, unused variables and unsafe overwriting of function parameters. Address incorrect URL's to php.net.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

steinmb created an issue. See original summary.

steinmb’s picture

DamienMcKenna’s picture

Interesting work, thank you for taking the time to do this.

The last occurrence of "true" needs to be uppercase.

Would it be better to name the form variable $element to match hook_field_formatter_settings_form()?

steinmb’s picture

Thank your for your swift response. Agree, naming it $element is more standard.

DamienMcKenna’s picture

Rerolled. I also simplified the link to php.net.

  • DamienMcKenna committed e397f937 on 7.x-2.x authored by steinmb
    Issue #3219052 by steinmb, DamienMcKenna: Minor clean up in date_admin....

  • DamienMcKenna committed 218c7622 on 7.x-3.x authored by steinmb
    Issue #3219052 by steinmb, DamienMcKenna: Minor clean up in date_admin....
DamienMcKenna’s picture

Status: Needs review » Fixed
Parent issue: » #3301877: Plan for Date 7.x-2.14

Committed. Thanks.

Status: Fixed » Closed (fixed)

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