scholarslab/ivanhoe

View on GitHub
single-ivanhoe_game.php

Summary

Maintainability
A
2 hrs
Test Coverage

Avoid deeply nested control flow statements.
Open

                <?php if ( $characters->have_posts() ) : ?>
                    <ul class='character_list'>
                        <?php while ( $characters->have_posts() ) : $characters->the_post();
                            if ($post->ID == $role->ID) continue; ?>
                                <li class='role'>
Severity: Major
Found in single-ivanhoe_game.php - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        <?php while ( $characters->have_posts() ) : $characters->the_post(); ?>
                            <li class='role'>
                                <a href="<?php echo get_permalink( $post->ID ); ?>" class="image-container"><?php echo get_the_post_thumbnail($post->ID, 'medium'); ?></a>
                                <a href="<?php echo get_permalink( $post->ID ); ?>"><?php echo $post->post_title; ?></a>
                            </li>
    Severity: Major
    Found in single-ivanhoe_game.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                      if ( $role !== FALSE ) :
      
                      ?>
                      <?php $ivanhoe_post_id=$post->ID; ?>
                      <span class="new_source btn" data-title="<?php echo get_the_title($ivanhoe_post_id); ?>" data-value="<?php echo $ivanhoe_post_id; ?>">Add to Moves</span>
      Severity: Major
      Found in single-ivanhoe_game.php - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status