Convert theme to use short array syntax according to new coding standards.

Comments

Vidushi Mehta created an issue. See original summary.

Vidushi Mehta’s picture

Status: Active » Needs review
StatusFileSize
new5.2 KB

Adding a patch with the conversion.

akash.addweb’s picture

StatusFileSize
new331.53 KB

@Vidushi Mehta, Thanks for solving this errors, Now all the errors related to short array index are resolved as per pareview.sh report. PFA

akash.addweb’s picture

Status: Needs review » Reviewed & tested by the community
gauravvvv’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

Patch is no longer applying to D8.1

Osls-Air:business osl$ git apply -v 2961383.patch
Checking patch business.theme...
error: while searching for:
  }
  $show_slideshow = theme_get_setting('slideshow_display', 'business');
  if ($vars['is_front'] && $show_slideshow) {
    $vars['slider'] = array();
    for ($i = 1; $i <= SLIDESHOW_COUNT; $i++) {
      $fid = theme_get_setting("slide_image_{$i}", "business");
      $file = \Drupal\file\Entity\File::load($fid[0]);

error: patch failed: business.theme:41
error: business.theme: patch does not apply
ankithashetty’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new5.25 KB
new1.14 KB

Re-rolled the patch in #2, thanks!

  • Gauravmahlawat committed 84902fb on 8.x-1.x
    Issue #2961383 by ankithashetty, Vidushi Mehta, akash.addweb,...
gauravvvv’s picture

Status: Needs review » Fixed

Thanks, Fixed and committed 84902fb on 8.x-1.x

Status: Fixed » Closed (fixed)

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