The module should be converted to short arrays as per new coding standard

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pavan B S created an issue. See original summary.

Pavan B S’s picture

Status: Active » Needs review
FileSize
16.16 KB

Applying the patch, please review

dhruveshdtripathi’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
144.97 KB

Patch applied cleanly. All the arrays converted to short array syntax. Checked it manually. As you can see in the attached png file, earlier here were 39 array declarations, after applying patch there are 9. Those 9 array declarations are in_array and is_array.

Good work!

  • bucefal91 committed 7df8d73 on 8.x-1.x
    Issue #2877885 by Pavan B S, bucefal91: Improving coding style.
    
bucefal91’s picture

Status: Reviewed & tested by the community » Fixed

With the latest commit there was another additional occurrence that I also fixed.

P.S. You can do grep -r "array(" . | grep -v "in_array" | grep -v "is_array" | wc -l to exclude the 2 false positives :)

Status: Fixed » Closed (fixed)

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

devad’s picture

Version: 8.x-1.x-dev » 2.0.x-dev