Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The module should be converted to short arrays as per new coding standard
Comment | File | Size | Author |
---|---|---|---|
#3 | synonyms_array_search_results.png | 144.97 KB | dhruveshdtripathi |
#2 | 2877885-2.patch | 16.16 KB | Pavan B S |
Comments
Comment #2
Pavan B S CreditAttribution: Pavan B S at Valuebound commentedApplying the patch, please review
Comment #3
dhruveshdtripathi CreditAttribution: dhruveshdtripathi at DevsAdda commentedPatch 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!
Comment #5
bucefal91 CreditAttribution: bucefal91 at Websolutions Agency commentedWith 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 :)Comment #7
devad CreditAttribution: devad as a volunteer commented