ImpressCMS/impresscms

View on GitHub
upgrade/check_version.php

Summary

Maintainability
A
0 mins
Test Coverage

Reference to undeclared constant \_NO
Open

            alt="<?php echo $res?_YES:_NO; ?>" /></td>
Severity: Minor
Found in upgrade/check_version.php by phan

Reference to undeclared constant \_NO
Open

        echo '<div class="x2-note"><td><img src="img/no.png" alt="'._NO.'" />' . ERR_NO_PHP5_CONTENT . '<br /></td><br /></div>';
Severity: Minor
Found in upgrade/check_version.php by phan

Reference to undeclared constant \_YES
Open

            alt="<?php echo $res?_YES:_NO; ?>" /></td>
Severity: Minor
Found in upgrade/check_version.php by phan

Space found after opening bracket of FOREACH loop
Open

<?php foreach ( $results as $upd => $res) { ?>
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space found before closing bracket of FOREACH loop
Open

            foreach ( $files as $file ) echo "<li>$file</li>\n";
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space found after opening bracket of FOREACH loop
Open

foreach ( $dirs as $dir) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space found after opening bracket of FOREACH loop
Open

    foreach ( $files as $k => $file) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space found after opening bracket of FOREACH loop
Open

            foreach ( $files as $file ) echo "<li>$file</li>\n";
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            foreach ( $files as $file ) echo "<li>$file</li>\n";
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Inline control structures are not allowed
Open

            foreach ( $files as $file ) echo "<li>$file</li>\n";
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Inline control structures are not allowed
Open

if (!defined('ICMS_ROOT_PATH')) die("ImpressCMS root path not defined");
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        if (is_object( $upgrader )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                    $files = array_merge( $files, $upgrader->usedFiles );
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    if (strpos( $dir, "-to-" )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        if (!empty( $files )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                if (!empty( $upgrader->usedFiles )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        if (is_writable( "../$file" )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if (strpos( $dir, "-to-" )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

if ($needUpgrade && !empty( $files )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

foreach ( $dirs as $dir) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            unset( $files[$k] );
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

$dirs = getDirList( "." );
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Closing brace indented incorrectly; expected 0 spaces, found 4
Open

    <?php } ?>
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        if (is_object( $upgrader )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        if (is_writable( "../$file" )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            unset( $files[$k] );
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        if (!empty( $files )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

    foreach ( $files as $k => $file) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

$dirs = getDirList( "." );
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                if (!empty( $upgrader->usedFiles )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            if (!is_writable(XOOPS_ROOT_PATH."/mainfile.php" )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                    $files = array_merge( $files, $upgrader->usedFiles );
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

if ($needUpgrade && !empty( $files )) {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

            foreach ( $files as $file ) echo "<li>$file</li>\n";
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Closing brace must be on a line by itself
Open

                echo "</ul></div>";} else {
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

<?php foreach ( $results as $upd => $res) { ?>
Severity: Minor
Found in upgrade/check_version.php by phpcodesniffer

Unexpected spaces found.
Open

        '._I_AM_AWARE.'</div>
Severity: Minor
Found in upgrade/check_version.php by editorconfig

Unexpected spaces found.
Open

        <div class="xoform-help">';
Severity: Minor
Found in upgrade/check_version.php by editorconfig

There are no issues that match your filters.

Category
Status