XoopsModules25x/apcal

View on GitHub
ro_regonlinehandler.php

Summary

Maintainability
F
1 wk
Test Coverage

File ro_regonlinehandler.php has 1735 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

use Xmf\Request;

require_once __DIR__ . '/../../mainfile.php';
Severity: Major
Found in ro_regonlinehandler.php - About 4 days to fix

    Consider simplifying this complex logical expression.
    Open

                    if (($event_uid == $current_uid && $current_uid > 0) || //current user is event owner
                        ($submitter == $current_uid && $current_uid > 0) || //current user made registration
                        ($cal->isadmin == 1) || //current user is admin
                        ($cal->superedit == 1) || //current user can edit/delete registrations of other persons
                        ($submitter == $current_uid && $current_uid == 0 && $poster_ip == $current_ip)) //current user is guest, but ip is the same as guest who made registration 
    Severity: Critical
    Found in ro_regonlinehandler.php - About 1 hr to fix

      Avoid deeply nested control flow statements.
      Open

                      if ($cal->ro_extrainfo5 !== '') {
                          $retList .= "<td class='$classname'>$romextrainfo5</td>";
                      }
      Severity: Major
      Found in ro_regonlinehandler.php - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                        if ($cal->ro_extrainfo4 !== '') {
                            $retList .= "<td class='$classname'>$romextrainfo4</td>";
                        }
        Severity: Major
        Found in ro_regonlinehandler.php - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                          if ($cal->ro_extrainfo1 !== '') {
                              $retList .= "<td class='$classname'>$romextrainfo1</td>";
                          }
          Severity: Major
          Found in ro_regonlinehandler.php - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                            if ($cal->ro_extrainfo3 !== '') {
                                $retList .= "<td class='$classname'>$romextrainfo3</td>";
                            }
            Severity: Major
            Found in ro_regonlinehandler.php - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                              if ($cal->ro_extrainfo2 !== '') {
                                  $retList .= "<td class='$classname'>$romextrainfo2</td>";
                              }
              Severity: Major
              Found in ro_regonlinehandler.php - About 45 mins to fix

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                if (($event_uid == $uid && $uid > 0) || //current user is event owner
                                    ($cal->isadmin == 1) || //current user is admin
                                    ($cal->ro_superedit == 1)) //current user can edit/delete registrations of other persons
                                {
                                    if ($status == 1) {
                Severity: Major
                Found in ro_regonlinehandler.php and 1 other location - About 1 day to fix
                ro_regonlinehandler.php on lines 1407..1426

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 286.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                        if (($event_uid == $current_uid && $current_uid > 0) || //current user is event owner
                                            ($cal->isadmin == 1) || //current user is admin
                                            ($cal->ro_superedit == 1)) //current user can edit/delete registrations of other persons
                                        {
                                            if ($status == 1) {
                Severity: Major
                Found in ro_regonlinehandler.php and 1 other location - About 1 day to fix
                ro_regonlinehandler.php on lines 728..747

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 286.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                        $query = 'SELECT '
                                 . $GLOBALS['xoopsDB']->prefix('users')
                                 . '.uname, '
                                 . $GLOBALS['xoopsDB']->prefix('apcal_ro_members')
                                 . '.* FROM '
                Severity: Major
                Found in ro_regonlinehandler.php and 1 other location - About 3 hrs to fix
                print.php on lines 102..118

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 155.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 7 locations. Consider refactoring.
                Open

                                    if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/')) {
                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
                                    } else {
                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                                    }
                Severity: Major
                Found in ro_regonlinehandler.php and 6 other locations - About 1 hr to fix
                ro_regonlinehandler.php on lines 1014..1018
                ro_regonlinehandler.php on lines 1095..1099
                ro_regonlinehandler.php on lines 1179..1183
                ro_regonlinehandler.php on lines 1218..1222
                ro_regonlinehandler.php on lines 1890..1894
                ro_regonlinehandler.php on lines 1945..1949

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 120.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 7 locations. Consider refactoring.
                Open

                                    if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/')) {
                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
                                    } else {
                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                                    }
                Severity: Major
                Found in ro_regonlinehandler.php and 6 other locations - About 1 hr to fix
                ro_regonlinehandler.php on lines 974..978
                ro_regonlinehandler.php on lines 1014..1018
                ro_regonlinehandler.php on lines 1095..1099
                ro_regonlinehandler.php on lines 1179..1183
                ro_regonlinehandler.php on lines 1218..1222
                ro_regonlinehandler.php on lines 1945..1949

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 120.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 7 locations. Consider refactoring.
                Open

                                if( file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/')) {
                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/mail_template/');
                                } else {
                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                                }
                Severity: Major
                Found in ro_regonlinehandler.php and 6 other locations - About 1 hr to fix
                ro_regonlinehandler.php on lines 974..978
                ro_regonlinehandler.php on lines 1014..1018
                ro_regonlinehandler.php on lines 1179..1183
                ro_regonlinehandler.php on lines 1218..1222
                ro_regonlinehandler.php on lines 1890..1894
                ro_regonlinehandler.php on lines 1945..1949

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 120.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 7 locations. Consider refactoring.
                Open

                                if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/')) {
                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
                                } else {
                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                                }
                Severity: Major
                Found in ro_regonlinehandler.php and 6 other locations - About 1 hr to fix
                ro_regonlinehandler.php on lines 974..978
                ro_regonlinehandler.php on lines 1095..1099
                ro_regonlinehandler.php on lines 1179..1183
                ro_regonlinehandler.php on lines 1218..1222
                ro_regonlinehandler.php on lines 1890..1894
                ro_regonlinehandler.php on lines 1945..1949

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 120.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 7 locations. Consider refactoring.
                Open

                                    if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/')) {
                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
                                    } else {
                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                                    }
                Severity: Major
                Found in ro_regonlinehandler.php and 6 other locations - About 1 hr to fix
                ro_regonlinehandler.php on lines 974..978
                ro_regonlinehandler.php on lines 1014..1018
                ro_regonlinehandler.php on lines 1095..1099
                ro_regonlinehandler.php on lines 1218..1222
                ro_regonlinehandler.php on lines 1890..1894
                ro_regonlinehandler.php on lines 1945..1949

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 120.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 7 locations. Consider refactoring.
                Open

                                if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/')) {
                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
                                } else {
                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                                }
                Severity: Major
                Found in ro_regonlinehandler.php and 6 other locations - About 1 hr to fix
                ro_regonlinehandler.php on lines 974..978
                ro_regonlinehandler.php on lines 1014..1018
                ro_regonlinehandler.php on lines 1095..1099
                ro_regonlinehandler.php on lines 1179..1183
                ro_regonlinehandler.php on lines 1890..1894
                ro_regonlinehandler.php on lines 1945..1949

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 120.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Identical blocks of code found in 7 locations. Consider refactoring.
                Open

                        if( file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/')) {
                            $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/mail_template/');
                        } else {
                            $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                        }
                Severity: Major
                Found in ro_regonlinehandler.php and 6 other locations - About 1 hr to fix
                ro_regonlinehandler.php on lines 974..978
                ro_regonlinehandler.php on lines 1014..1018
                ro_regonlinehandler.php on lines 1095..1099
                ro_regonlinehandler.php on lines 1179..1183
                ro_regonlinehandler.php on lines 1218..1222
                ro_regonlinehandler.php on lines 1890..1894

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 120.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 4 locations. Consider refactoring.
                Open

                        if ($email5 !== '') {
                            $query = 'Insert into ' . $GLOBALS['xoopsDB']->prefix('apcal_ro_notify') . " (ron_eventid, ron_email, ron_submitter, ron_date_created) values ($eventid, '$email5', $submitter, ". time().")";
                            $res   = $GLOBALS['xoopsDB']->query($query);
                            if (!$res) {
                                redirect_header($eventurl, 3, _APCAL_RO_ERROR_RO_ACTIVATE);
                Severity: Major
                Found in ro_regonlinehandler.php and 3 other locations - About 50 mins to fix
                ro_regonlinehandler.php on lines 331..337
                ro_regonlinehandler.php on lines 338..344
                ro_regonlinehandler.php on lines 345..351

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 97.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 4 locations. Consider refactoring.
                Open

                        if ($email2 !== '') {
                            $query = 'Insert into ' . $GLOBALS['xoopsDB']->prefix('apcal_ro_notify') . " (ron_eventid, ron_email, ron_submitter, ron_date_created) values ($eventid, '$email2', $submitter, ". time().")";
                            $res   = $GLOBALS['xoopsDB']->query($query);
                            if (!$res) {
                                redirect_header($eventurl, 3, _APCAL_RO_ERROR_RO_ACTIVATE);
                Severity: Major
                Found in ro_regonlinehandler.php and 3 other locations - About 50 mins to fix
                ro_regonlinehandler.php on lines 338..344
                ro_regonlinehandler.php on lines 345..351
                ro_regonlinehandler.php on lines 352..358

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 97.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 4 locations. Consider refactoring.
                Open

                        if ($email3 !== '') {
                            $query = 'Insert into ' . $GLOBALS['xoopsDB']->prefix('apcal_ro_notify') . " (ron_eventid, ron_email, ron_submitter, ron_date_created) values ($eventid, '$email3', $submitter, ". time().")";
                            $res   = $GLOBALS['xoopsDB']->query($query);
                            if (!$res) {
                                redirect_header($eventurl, 3, _APCAL_RO_ERROR_RO_ACTIVATE);
                Severity: Major
                Found in ro_regonlinehandler.php and 3 other locations - About 50 mins to fix
                ro_regonlinehandler.php on lines 331..337
                ro_regonlinehandler.php on lines 345..351
                ro_regonlinehandler.php on lines 352..358

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 97.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 4 locations. Consider refactoring.
                Open

                        if ($email4 !== '') {
                            $query = 'Insert into ' . $GLOBALS['xoopsDB']->prefix('apcal_ro_notify') . " (ron_eventid, ron_email, ron_submitter, ron_date_created) values ($eventid, '$email4', $submitter, ". time().")";
                            $res   = $GLOBALS['xoopsDB']->query($query);
                            if (!$res) {
                                redirect_header($eventurl, 3, _APCAL_RO_ERROR_RO_ACTIVATE);
                Severity: Major
                Found in ro_regonlinehandler.php and 3 other locations - About 50 mins to fix
                ro_regonlinehandler.php on lines 331..337
                ro_regonlinehandler.php on lines 338..344
                ro_regonlinehandler.php on lines 352..358

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 97.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Expected 0 spaces before closing bracket; 1 found
                Open

                            if ($status == 0 ) $ret .=" checked='checked'";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Blank line found at start of control structure
                Open

                    if (!empty($_POST['url'])){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 0 spaces before closing bracket; 1 found
                Open

                                if($waitinglist > 0 ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 0 spaces before closing bracket; 1 found
                Open

                        if( ! empty( $_SERVER['HTTPS'] ) ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Blank line found at end of control structure
                Open

                
                
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Blank line found at start of control structure
                Open

                if (isset($_POST['confirm_member']) || isset($_POST['confirm_member_x'])){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Blank line found at end of control structure
                Open

                
                
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Blank line found at end of control structure
                Open

                
                
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 0 spaces before closing bracket; 1 found
                Open

                        if( $num_rows == 0 ) $sender= "" ;
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 0 spaces before closing bracket; 1 found
                Open

                        else while( $member = $GLOBALS['xoopsDB']->fetchObject($res) ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Blank line found at start of control structure
                Open

                    if (!empty($_REQUEST['eventid'])){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Blank line found at start of control structure
                Open

                if (isset($_POST['ro_notify_one']) || isset($_POST['ro_notify_one_x'])) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 127 characters
                Open

                                    <td class='odd'><input type='text' name='location' disabled='disabled' value='$location'  size='80' /></td>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 144 characters
                Open

                                        <div class='odd col-xs-12 col-sm-8'><input type='text' name='extrainfo2' value='$extrainfo2' style='width:100%' /></div>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 144 characters
                Open

                                        <div class='odd col-xs-12 col-sm-8'><input type='text' name='extrainfo3' value='$extrainfo3' style='width:100%' /></div>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 183 characters
                Open

                                        $retList .= "<input type='image' src='$roimagestatusok' name='confirm_member' alt='"._APCAL_RO_STATUS_OK."' title='"._APCAL_RO_STATUS_OK."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 135 characters
                Open

                        $query = "UPDATE `".$GLOBALS['xoopsDB']->prefix("apcal_ro_members")."` SET `rom_status` = '$status' WHERE `rom_id` = $rom_id;";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 145 characters
                Open

                                if( file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 306 characters
                Open

                                $ret .= "<a href='print.php?smode=ro_list&op=exportxls&eventid=$eventid&summary=$summary&date=$date&location=$location' target='_blank'><img src='$roimagedownload' name='download' alt='" . _APCAL_RO_DOWNLOAD . "' title='" . _APCAL_RO_DOWNLOAD . "' style='height:24px;margin:0 10px;'/></a>";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                                            if ($needconfirm ==1) $ret .=" checked='checked'";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 175 characters
                Open

                    $ret .= "<input type='image' src='$roimagedelete' name='deactivate' alt='" . _APCAL_RO_BTN_RO_DEACTIVATE . "' title='" . _APCAL_RO_BTN_RO_DEACTIVATE . "' height='24px'/>";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 131 characters
                Open

                                    <input id='status0' type='radio' value='0' checked='checked' title=" . _APCAL_RO_STATUS_OK . " name='status' />
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 173 characters
                Open

                                                <input type='image' src='$roimageedit' name='form_edit' alt='" . _APCAL_RO_BTN_EDIT . "' title='" . _APCAL_RO_BTN_EDIT . "'  height='24px' />
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 155 characters
                Open

                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 172 characters
                Open

                                                $ret .= "<img src='$roimagestatusok' name='confirm_member' alt='"._APCAL_RO_STATUS_OK."' title='"._APCAL_RO_STATUS_OK."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 213 characters
                Open

                                        <p style='text-align:center;align:center'><input type='image' src='$roimagesend' name='ro_notify_all' alt='" . _APCAL_RO_BTN_SEND . "' title='" . _APCAL_RO_BTN_SEND . "' height='24px'/></p>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 146 characters
                Open

                        $mailtext = _APCAL_RO_EVENT.": $summary\n"._APCAL_RO_DATE.": $date\n"._APCAL_RO_LOCATION.": $location\n"._APCAL_RO_LINK.": $eventurl\n\n";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 162 characters
                Open

                                    <input type='image' src='$roimagecancel' name='cancel' alt='" . _APCAL_RO_BTN_CANCEL . "' title='" . _APCAL_RO_BTN_CANCEL . "' height='24px'/>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                                            if ($needconfirm == 0) $ret .=" checked='checked'";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 206 characters
                Open

                            $query     = 'Insert into ' . $GLOBALS['xoopsDB']->prefix('apcal_ro_notify') . " (ron_eventid, ron_email, ron_submitter, ron_date_created) values ($eventid, '$email1', $submitter, ". time().")";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 180 characters
                Open

                                    <input type='image' src='$roimagesave' name='add_member' alt='" . _APCAL_RO_BTN_CONF_ADD . "' title='" . _APCAL_RO_BTN_CONF_ADD . "' height='24px'/>&nbsp;&nbsp;
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                            if ($poster_ip=='') $poster_ip='x';
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 196 characters
                Open

                                        $retList .= "<img type='image' src='$roimagestatuspending' name='confirm_member' alt='"._APCAL_RO_STATUS_PENDING."' title='"._APCAL_RO_STATUS_PENDING."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 187 characters
                Open

                                                $ret .= "<input type='image' src='$roimagestatusok' name='confirm_member' alt='"._APCAL_RO_STATUS_OK."' title='"._APCAL_RO_STATUS_OK."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 187 characters
                Open

                                                $ret .= "<img src='$roimagestatuspending' name='confirm_member' alt='"._APCAL_RO_STATUS_PENDING."' title='"._APCAL_RO_STATUS_PENDING."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 178 characters
                Open

                                                $ret .= "<img src='$roimagestatuslist' name='confirm_member' alt='"._APCAL_RO_STATUS_LIST."' title='"._APCAL_RO_STATUS_LIST."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 151 characters
                Open

                                            <td class='even' width='200px'>" . _APCAL_RO_MAIL_BODY1 . ":<br><br><font size='1'>" . _APCAL_RO_MAIL_BODY2 . "</font></td>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                        if( $num_rows == 0 ) $sender= "" ;
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                        else while( $member = $GLOBALS['xoopsDB']->fetchObject($res) ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 180 characters
                Open

                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 121 characters
                Open

                require_once XOOPS_ROOT_PATH . '/modules/apcal/language/' . $GLOBALS['xoopsConfig']['language'] . '/apcal_constants.php';
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 207 characters
                Open

                                     . " (roe_submitter, roe_eventid, roe_datelimit, roe_number, roe_needconfirm, roe_waitinglist, roe_date_created) values ($uid, $eventid, $datelimit, $number, $needconfirm, $waitinglist, "
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 202 characters
                Open

                            $query = 'Insert into ' . $GLOBALS['xoopsDB']->prefix('apcal_ro_notify') . " (ron_eventid, ron_email, ron_submitter, ron_date_created) values ($eventid, '$email4', $submitter, ". time().")";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 187 characters
                Open

                                        $retList .= "<img type='image' src='$roimagestatuslist' name='confirm_member' alt='"._APCAL_RO_STATUS_LIST."' title='"._APCAL_RO_STATUS_LIST."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 180 characters
                Open

                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 143 characters
                Open

                        <input type='image' src='$roimagesend' name='ro_notify_one' alt='"._APCAL_RO_BTN_SEND."' title='"._APCAL_RO_BTN_SEND."' height='32px'/>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 171 characters
                Open

                                    <input type='image' src='$roimagesave' name='edit_member' alt='" . _APCAL_RO_BTN_CONF_EDIT . "' title='" . _APCAL_RO_BTN_CONF_EDIT . "' height='24px'/>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 155 characters
                Open

                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 142 characters
                Open

                                        <div class='odd col-xs-12 col-sm-8'><input type='text' name='firstname' value='$firstname' style='width:100%' /></div>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 199 characters
                Open

                                    <input type='image' src='$roimagesavemore' name='add_member_more' alt='" . _APCAL_RO_BTN_CONF_ADD_MORE . "' title='" . _APCAL_RO_BTN_CONF_ADD_MORE . "' height='24px'/>&nbsp;&nbsp;
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 179 characters
                Open

                                    <form class='apcalForm' method='post' id='RegOnlineForm' action='ro_regonlinehandler.php' name='roformeditremovemember_" . $unique_id . "' style='margin:0px;'>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 181 characters
                Open

                                        $retList .= "<img type='image' src='$roimagestatusok' name='confirm_member' alt='"._APCAL_RO_STATUS_OK."' title='"._APCAL_RO_STATUS_OK."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 150 characters
                Open

                            <input type='image' src='$roimagecancel' name='goback' alt='" . _APCAL_RO_BTN_BACK . "' title='" . _APCAL_RO_BTN_BACK . "' height='24px'/>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 138 characters
                Open

                        <input type='image' src='$roimagecancel' name='goback' alt='"._APCAL_RO_BTN_BACK."' title='"._APCAL_RO_BTN_BACK."' height='32px'/>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                            if ($status == 1) $ret .=" checked='checked'";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                        if ($poster_ip=='') $poster_ip='-';
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 180 characters
                Open

                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                        if ($email=='') $email='-';
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 174 characters
                Open

                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 176 characters
                Open

                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 151 characters
                Open

                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 144 characters
                Open

                                        <div class='odd col-xs-12 col-sm-8'><input type='text' name='extrainfo1' value='$extrainfo1' style='width:100%' /></div>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 193 characters
                Open

                                                $ret .= "<input type='image' src='$roimagestatuslist' name='confirm_member' alt='"._APCAL_RO_STATUS_LIST."' title='"._APCAL_RO_STATUS_LIST."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 144 characters
                Open

                                        <div class='odd col-xs-12 col-sm-8'><input type='text' name='extrainfo5' value='$extrainfo5' style='width:100%' /></div>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 166 characters
                Open

                            $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 189 characters
                Open

                                        $retList .= "<input type='image' src='$roimagestatuslist' name='confirm_member' alt='"._APCAL_RO_STATUS_LIST."' title='"._APCAL_RO_STATUS_LIST."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 151 characters
                Open

                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 155 characters
                Open

                                        $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 168 characters
                Open

                                $mailtext = _APCAL_RO_EVENT . ": $summary\n" . _APCAL_RO_DATE . ": $date\n" . _APCAL_RO_LOCATION . ": $location\n" . _APCAL_RO_LINK . ": $eventurl\n\n";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 151 characters
                Open

                                    if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 143 characters
                Open

                            $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 129 characters
                Open

                                    <td class='odd'><input type='text' name='eventdate' disabled='disabled' value='$eventdate'  size='80' /></td>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 147 characters
                Open

                                if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 176 characters
                Open

                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 133 characters
                Open

                                    <form method='post' action='ro_regonlinehandler.php' name='roformlistconfirm_".$unique_id."' style='margin:0px;'>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 175 characters
                Open

                                    ($submitter == $current_uid && $current_uid == 0 && $poster_ip == $current_ip)) //current user is guest, but ip is the same as guest who made registration 
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                            if ($status == 2) $ret .=" checked='checked'";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 152 characters
                Open

                                        <div class='col-xs-12 col-sm-8'><input type='text' name='title' disabled='disabled' value='$summary' style='width:100%' /></div>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 138 characters
                Open

                        <form class='apcalForm' method='post' id='RegOnlineForm' action='ro_regonlinehandler.php' name='roformgoback' style='margin:0px;'>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 291 characters
                Open

                                $ret .= "<a href='print.php?smode=ro_list&eventid=$eventid&summary=$summary&date=$date&location=$location' target='_blank'><img src='$roimageprint' name='print' alt='" . _APCAL_RO_PRINT_LIST . "' title='" . _APCAL_RO_PRINT_LIST . "' style='height:24px;margin:0 10px;'/></a>";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 155 characters
                Open

                                    <form class='apcalForm' method='post' id='RegOnlineForm' action='ro_regonlinehandler.php' name='roformsendmail' accept-charset='UTF-8'>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 140 characters
                Open

                                        <div class='odd col-xs-12 col-sm-8'><input type='text' name='lastname' value='$lastname' style='width:100%' /></div>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 134 characters
                Open

                                            <td class='odd'><input type='text' name='subject' size='70' value='" . _APCAL_RO_MAIL_SUBJ_TEXT . "'></td>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 198 characters
                Open

                                        $retList .= "<input type='image' src='$roimagestatuspending' name='confirm_member' alt='"._APCAL_RO_STATUS_PENDING."' title='"._APCAL_RO_STATUS_PENDING."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 375 characters
                Open

                                 . " (rom_submitter, rom_eventid, rom_firstname, rom_lastname, rom_email, rom_extrainfo1, rom_extrainfo2, rom_extrainfo3, rom_extrainfo4, rom_extrainfo5, rom_poster_ip, rom_status, rom_date_created) values ($uid, $eventid, '$firstname', '$lastname', '$email', '$extrainfo1', '$extrainfo2', '$extrainfo3', '$extrainfo4', '$extrainfo5', '$poster_ip', $status, "
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 151 characters
                Open

                                    if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 147 characters
                Open

                                if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 202 characters
                Open

                                                $ret .= "<input type='image' src='$roimagestatuspending' name='confirm_member' alt='"._APCAL_RO_STATUS_PENDING."' title='"._APCAL_RO_STATUS_PENDING."'  height='22px' />";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                                if ($current_ip=='') $current_ip='-';
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 121 characters
                Open

                                    <td class='odd'><input type='text' name='event' disabled='disabled' value='$event'  size='80' /></td>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 202 characters
                Open

                            $query = 'Insert into ' . $GLOBALS['xoopsDB']->prefix('apcal_ro_notify') . " (ron_eventid, ron_email, ron_submitter, ron_date_created) values ($eventid, '$email3', $submitter, ". time().")";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 158 characters
                Open

                                        <div class='col-xs-12 col-sm-8'><input type='text' name='eventdate' disabled='disabled' value='$eventdate' style='width:100%' /></div>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 144 characters
                Open

                                        <div class='odd col-xs-12 col-sm-8'><input type='text' name='extrainfo4' value='$extrainfo4' style='width:100%' /></div>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 226 characters
                Open

                            $ret .= "<div align='center'><a href='$eventurl' target='_self'><img src='$roimagecancel' name='goback' alt='" . _APCAL_RO_BTN_BACK . "' title='" . _APCAL_RO_BTN_BACK . "' style='height:24px;margin:0 10px;'/></a>";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 140 characters
                Open

                        <form class='apcalForm' method='post' id='RegOnlineForm' action='ro_regonlinehandler.php' name='roformactivate' style='margin:0px;'>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 202 characters
                Open

                            $query = 'Insert into ' . $GLOBALS['xoopsDB']->prefix('apcal_ro_notify') . " (ron_eventid, ron_email, ron_submitter, ron_date_created) values ($eventid, '$email2', $submitter, ". time().")";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 156 characters
                Open

                                        <div class='col-xs-12 col-sm-8'><input type='text' name='location' disabled='disabled' value='$location' style='width:100%' /></div>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 162 characters
                Open

                                    <input type='image' src='$roimagecancel' name='cancel' alt='" . _APCAL_RO_BTN_CANCEL . "' title='" . _APCAL_RO_BTN_CANCEL . "' height='24px'/>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 151 characters
                Open

                                    $xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/english/mail_template/');
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 171 characters
                Open

                                        <form class='apcalForm' method='post' id='RegOnlineForm' action='ro_regonlinehandler.php' name='roformlist_" . $unique_id . "' style='margin:0px;'>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 146 characters
                Open

                            <form class='apcalForm' method='post' id='RegOnlineForm' action='ro_regonlinehandler.php' name='roformeditmember' style='margin:0px;'>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 137 characters
                Open

                        if( file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                                        if ($waitinglist == 0) $ret .=" checked='checked'";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 167 characters
                Open

                        $ret .= "<input type='image' src='$roimagesave' name='activate' alt='" . _APCAL_RO_BTN_CONF_SAVE . "' title='" . _APCAL_RO_BTN_CONF_SAVE . "' height='24px'/>";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 157 characters
                Open

                    $ret .= "<input type='image' src='$roimagecancel' name='cancel' alt='" . _APCAL_RO_BTN_CANCEL . "' title='" . _APCAL_RO_BTN_CANCEL . "' height='24px'/>";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 200 characters
                Open

                $xoopsTpl->assign('xoops_module_header', '<link rel="stylesheet" type="text/css" href="' . XOOPS_URL . '/modules/apcal/assets/css/apcal.css" />' . $xoopsTpl->get_template_vars('xoops_module_header'));
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                                        if ($waitinglist == 1) $ret .=" checked='checked'";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 167 characters
                Open

                        $ret .= "<input type='image' src='$roimagesave' name='activate' alt='" . _APCAL_RO_BTN_CONF_EDIT . "' title='" . _APCAL_RO_BTN_CONF_EDIT . "' height='24px'/>";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 202 characters
                Open

                            $query = 'Insert into ' . $GLOBALS['xoopsDB']->prefix('apcal_ro_notify') . " (ron_eventid, ron_email, ron_submitter, ron_date_created) values ($eventid, '$email5', $submitter, ". time().")";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 123 characters
                Open

                                    <tr><td width='100%' class='itemHead'><span class='itemTitle'>" . _APCAL_RO_TITLE3 . "</span></td></tr>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 177 characters
                Open

                                                    <input type='image' src='$roimageedit' name='form_edit' alt='" . _APCAL_RO_BTN_EDIT . "' title='" . _APCAL_RO_BTN_EDIT . "'  height='22px' />
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 125 characters
                Open

                        <td class='even' width='200px'>"._APCAL_RO_MAIL_BODY1.":<br/><br/><font size='1'>"._APCAL_RO_MAIL_BODY2."</font></td>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 145 characters
                Open

                            <form class='apcalForm' method='post' id='RegOnlineForm' action='ro_regonlinehandler.php' name='roformaddmember' style='margin:0px;'>
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 183 characters
                Open

                                                <input type='image' src='$roimagedelete' name='remove_member' alt='" . _APCAL_RO_BTN_REMOVE . "' title='" . _APCAL_RO_BTN_REMOVE . "'  height='24px' />
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 151 characters
                Open

                                    if (file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/' . $xoopsConfig['language'] . '/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line exceeds 120 characters; contains 187 characters
                Open

                                                    <input type='image' src='$roimagedelete' name='remove_member' alt='" . _APCAL_RO_BTN_REMOVE . "' title='" . _APCAL_RO_BTN_REMOVE . "'  height='22px' />
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Inline control structures are not allowed
                Open

                            if ($status == 0 ) $ret .=" checked='checked'";
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 20 spaces, found 28
                Open

                                            } else {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 0 spaces after opening bracket; 1 found
                Open

                        if( ! empty( $_SERVER['HTTPS'] ) ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after IF keyword; 0 found
                Open

                        if( $num_rows == 0 ) $sender= "" ;
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after IF keyword; 0 found
                Open

                        if( file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Usage of ELSE IF is discouraged; use ELSEIF instead
                Open

                                    } else if ($status == 2){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found " //current user can edit/delete registrations of other persons\n "
                Open

                                            ($cal->ro_superedit == 1)) //current user can edit/delete registrations of other persons
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found " //current user can edit/delete registrations of other persons\n "
                Open

                            ($cal->ro_superedit == 1)) //current user can edit/delete registrations of other persons
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found 0
                Open

                                    } else if ($status == 2){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected at least 12 spaces, found 10
                Open

                          redirect_header($url.$url_redirect, 3, str_replace('%s', $cal->ro_extrainfo3, _APCAL_RO_MISSING_ITEM));
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected at least 12 spaces, found 10
                Open

                          redirect_header($url.$url_redirect, 3, str_replace('%s', $cal->ro_extrainfo4, _APCAL_RO_MISSING_ITEM));
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after IF keyword; 0 found
                Open

                                if($waitinglist > 0 ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 0 spaces after opening bracket; 1 found
                Open

                                if( file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 20 spaces, found 28
                Open

                                            } else if ($status == 2){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found " //current user can edit/delete registrations of other persons\n "
                Open

                            ($cal->ro_superedit == 1)) //current user can edit/delete registrations of other persons
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found " //current user can edit/delete registrations of other persons\n "
                Open

                                ($cal->ro_superedit == 1)) //current user can edit/delete registrations of other persons
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 16 spaces, found 24
                Open

                                        } else {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Usage of ELSE IF is discouraged; use ELSEIF instead
                Open

                                            } else if ($status == 2){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found 0
                Open

                if (isset($_POST['confirm_member']) || isset($_POST['confirm_member_x'])){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found 0
                Open

                    if (!empty($_REQUEST['eventid'])){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 0 spaces before closing bracket; 1 found
                Open

                        if( ! empty( $_SERVER['HTTPS'] ) ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Usage of ELSE IF is discouraged; use ELSEIF instead
                Open

                                    } else if ($status == 2){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected at least 12 spaces, found 10
                Open

                          redirect_header($url.$url_redirect, 3, str_replace('%s', _APCAL_RO_LASTNAME, _APCAL_RO_MISSING_ITEM));
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 20 spaces, found 28
                Open

                                            }
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 20 spaces, found 28
                Open

                                            } else if ($status == 2){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after IF keyword; 0 found
                Open

                        if( ! empty( $_SERVER['HTTPS'] ) ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 0 spaces after opening bracket; 1 found
                Open

                        else while( $member = $GLOBALS['xoopsDB']->fetchObject($res) ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found " //current user can edit/delete registrations of other persons\n "
                Open

                                    ($cal->ro_superedit == 1)) //current user can edit/delete registrations of other persons
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found 0
                Open

                                    } else if ($status == 2){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 20 spaces, found 28
                Open

                                            } else {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after WHILE keyword; 0 found
                Open

                        else while( $member = $GLOBALS['xoopsDB']->fetchObject($res) ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected at least 12 spaces, found 10
                Open

                          redirect_header($url.$url_redirect, 3, str_replace('%s', $cal->ro_extrainfo2, _APCAL_RO_MISSING_ITEM));
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Whitespace found at end of line
                Open

                            redirect_header($url, 3, _APCAL_RO_ERROR_ADD); 
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after IF keyword; 0 found
                Open

                        if(!$res) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Usage of ELSE IF is discouraged; use ELSEIF instead
                Open

                                            } else if ($status == 2){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Closing brace indented incorrectly; expected 16 spaces, found 20
                Open

                                    }
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found 0
                Open

                    if (!empty($_POST['url'])){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Whitespace found at end of line
                Open

                                //set template name 
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 16 spaces, found 24
                Open

                                        if (($event_uid == $current_uid && $current_uid > 0) || //current user is event owner
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 20 spaces, found 28
                Open

                                            }
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found 0
                Open

                                            } else if ($status == 2){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 16 spaces, found 24
                Open

                                        }
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after IF keyword; 0 found
                Open

                                if( file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Space after opening parenthesis of function call prohibited
                Open

                        if( ! empty( $_SERVER['HTTPS'] ) ) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 0 spaces after opening bracket; 1 found
                Open

                        if( $num_rows == 0 ) $sender= "" ;
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Whitespace found at end of line
                Open

                        } 
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Usage of ELSE IF is discouraged; use ELSEIF instead
                Open

                            } else if ($needconfirm > 0) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found 0
                Open

                    if (!empty($_POST['eventid'])){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Whitespace found at end of line
                Open

                                //set sender 
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 20 spaces, found 28
                Open

                                            if ($status == 1) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found " //current user is guest, but ip is the same as guest who made registration \n "
                Open

                                    ($submitter == $current_uid && $current_uid == 0 && $poster_ip == $current_ip)) //current user is guest, but ip is the same as guest who made registration 
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Whitespace found at end of line
                Open

                                    ($submitter == $current_uid && $current_uid == 0 && $poster_ip == $current_ip)) //current user is guest, but ip is the same as guest who made registration 
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 16 spaces, found 20
                Open

                                    }
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found 13
                Open

                               )
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Line indented incorrectly; expected 20 spaces, found 28
                Open

                                            if ($status == 1) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 1 space after closing parenthesis; found 0
                Open

                                            } else if ($status == 2){
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                Expected 0 spaces after opening bracket; 1 found
                Open

                        if( file_exists(XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/language/'. $xoopsConfig['language'] .'/')) {
                Severity: Minor
                Found in ro_regonlinehandler.php by phpcodesniffer

                There are no issues that match your filters.

                Category
                Status