Skip to content

Commit

Permalink
Fix PSR2.ControlStructures.SwitchDeclaration violations
Browse files Browse the repository at this point in the history
This commit fixes all violations of the PSR2.ControlStructures.SwitchDeclaration sniff automatically using phpcbf.
  • Loading branch information
rodrigoprimo committed Dec 20, 2019
1 parent b574b0b commit 656b39b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions templates/global/wrapper-end.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@
$template = wc_get_theme_slug_for_templates();

switch ( $template ) {
case 'twentyten' :
case 'twentyten':
echo '</div></div>';
break;
case 'twentyeleven' :
case 'twentyeleven':
echo '</div>';
get_sidebar( 'shop' );
echo '</div>';
break;
case 'twentytwelve' :
case 'twentytwelve':
echo '</div></div>';
break;
case 'twentythirteen' :
case 'twentythirteen':
echo '</div></div>';
break;
case 'twentyfourteen' :
case 'twentyfourteen':
echo '</div></div></div>';
get_sidebar( 'content' );
break;
case 'twentyfifteen' :
case 'twentyfifteen':
echo '</div></div>';
break;
case 'twentysixteen' :
case 'twentysixteen':
echo '</main></div>';
break;
default :
default:
echo '</main></div>';
break;
}
16 changes: 8 additions & 8 deletions templates/global/wrapper-start.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,28 @@
$template = wc_get_theme_slug_for_templates();

switch ( $template ) {
case 'twentyten' :
case 'twentyten':
echo '<div id="container"><div id="content" role="main">';
break;
case 'twentyeleven' :
case 'twentyeleven':
echo '<div id="primary"><div id="content" role="main" class="twentyeleven">';
break;
case 'twentytwelve' :
case 'twentytwelve':
echo '<div id="primary" class="site-content"><div id="content" role="main" class="twentytwelve">';
break;
case 'twentythirteen' :
case 'twentythirteen':
echo '<div id="primary" class="site-content"><div id="content" role="main" class="entry-content twentythirteen">';
break;
case 'twentyfourteen' :
case 'twentyfourteen':
echo '<div id="primary" class="content-area"><div id="content" role="main" class="site-content twentyfourteen"><div class="tfwc">';
break;
case 'twentyfifteen' :
case 'twentyfifteen':
echo '<div id="primary" role="main" class="content-area twentyfifteen"><div id="main" class="site-main t15wc">';
break;
case 'twentysixteen' :
case 'twentysixteen':
echo '<div id="primary" class="content-area twentysixteen"><main id="main" class="site-main" role="main">';
break;
default :
default:
echo '<div id="primary" class="content-area"><main id="main" class="site-main" role="main">';
break;
}

0 comments on commit 656b39b

Please sign in to comment.