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.
use short array syntax as per new coding standard.
Comment | File | Size | Author |
---|---|---|---|
#3 | role_based_theme_switcher_array_search_results.png | 44.94 KB | dhruveshdtripathi |
#2 | Clean_up_the_codebase-2875678-2.patch | 3.23 KB | Munavijayalakshmi |
Comments
Comment #2
Munavijayalakshmi CreditAttribution: Munavijayalakshmi at Valuebound commentedComment #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 there were 17 array declarations, after applying patch there are 4. Those 4 arrays are in_array.
Good work!
Comment #4
harsh.behl CreditAttribution: harsh.behl at TO THE NEW commentedHi Munavijayalakshmi ,
I have committed your code in latest dev branch.
Thanks for contribution.