chemiker/e.nigma-2015

View on GitHub
src/theme/index.php

Summary

Maintainability
A
0 mins
Test Coverage

Each PHP statement must be on a line by itself
Open

        <?php previous_posts_link(); \enigma\Content::Pagebar(); next_posts_link();    ?> </div>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used for alignment; tabs are not allowed
Open

        <?php
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( $wp_query->max_num_pages > 1 ) :
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used for alignment; tabs are not allowed
Open

    endif;
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used for alignment; tabs are not allowed
Open

        <?php previous_posts_link(); \enigma\Content::Pagebar(); next_posts_link();    ?> </div>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                <?php echo $post_vars['meta'];  if ( comments_open() ) : ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Each PHP statement must be on a line by itself
Open

        <?php previous_posts_link(); \enigma\Content::Pagebar(); next_posts_link();    ?> </div>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    <?php while(have_posts()): the_post(); ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            <?php echo $post_vars['thumbnail'] ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    <article <?php post_class($post_vars['class']); ?>  <?php echo $post_vars['css'] ?>>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            <?php echo apply_filters( 'the_content', $post_vars['content'] ); ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $format = get_post_format();
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $post_vars = \enigma\Content::get_post_vars( $format );
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    <?php
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            <?php echo $post_vars['headline']; ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        <span class="category enigma-icon" data-icon="<?php echo $post_vars['category_symbol']; ?>"></span>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        <div class="modifyme">
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                <?php endif; ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    if ( $wp_query->max_num_pages > 1 ) :
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            <div class="post-meta">
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    <article <?php post_class(); ?>>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        <span class="category pagebar-category enigma-icon" data-icon="&#62256;"></span><div class="pagebar">
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                <?php echo $post_vars['meta'];  if ( comments_open() ) : ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        <span class="category enigma-icon" data-icon="&#61817;" aria-hidden="true"></span>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        </div>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    </article>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                    <span class="post-meta-comments"><?php comments_popup_link(); ?></span>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            </div>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        <div class="modifyme">
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    global $wp_query;
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        </div>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    </article>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    <?php endwhile; ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            <h2><?php esc_html_e('Couldn\'t find any articles!', 'e.nigma-2015'); ?></h2>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        <?php previous_posts_link(); \enigma\Content::Pagebar(); next_posts_link();    ?> </div>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Newline required after opening brace
Open

    <?php while(have_posts()): the_post(); ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 0
Open

<?php if (have_posts()): ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $post_vars = \enigma\Content::get_post_vars( $format );
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $post_vars = \enigma\Content::get_post_vars( $format );
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 0
Open

    <?php while(have_posts()): the_post(); ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Expected 1 space after WHILE keyword; 0 found
Open

    <?php while(have_posts()): the_post(); ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            <?php echo apply_filters( 'the_content', $post_vars['content'] ); ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            <?php echo apply_filters( 'the_content', $post_vars['content'] ); ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Line indented incorrectly; expected 0 spaces, found 4
Open

    if ( $wp_query->max_num_pages > 1 ) :
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

                <?php echo $post_vars['meta'];  if ( comments_open() ) : ?>
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

    if ( $wp_query->max_num_pages > 1 ) :
Severity: Minor
Found in src/theme/index.php by phpcodesniffer

There are no issues that match your filters.

Category
Status