MPOS/php-mpos

View on GitHub

Showing 1,089 of 1,089 total issues

Function md5_ff has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    function md5_ff(a, b, c, d, x, s, t) {
Severity: Major
Found in public/site_assets/bootstrap/js/jquery.md5.js - About 50 mins to fix

    Function md5_gg has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        function md5_gg(a, b, c, d, x, s, t) {
    Severity: Major
    Found in public/site_assets/bootstrap/js/jquery.md5.js - About 50 mins to fix

      Method fetch has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function fetch($template = null, $cache_id = null, $compile_id = null, $parent = null, $display = false, $merge_tpl_vars = true, $no_output_filter = false)
      Severity: Major
      Found in include/smarty/libs/sysplugins/smarty_internal_templatebase.php - About 50 mins to fix

        Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function __construct($template_resource, $smarty, $_parent = null, $_cache_id = null, $_compile_id = null, $_caching = null, $_cache_lifetime = null)
        Severity: Major
        Found in include/smarty/libs/sysplugins/smarty_internal_template.php - About 50 mins to fix

          Method getSubTemplate has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public function getSubTemplate($template, $cache_id, $compile_id, $caching, $cache_lifetime, $data, $parent_scope)
          Severity: Major
          Found in include/smarty/libs/sysplugins/smarty_internal_template.php - About 50 mins to fix

            Method fetch has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                protected function fetch($cid, $resource_name = null, $cache_id = null, $compile_id = null, &$content = null, &$timestamp = null, $resource_uid = null)
            Severity: Major
            Found in include/smarty/libs/sysplugins/smarty_cacheresource_keyvaluestore.php - About 50 mins to fix

              Method __construct has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                public function __construct($type, $username, $password, $host, $debug_level, $debug_object, $memcache) {
              Severity: Major
              Found in include/classes/bitcoinwrapper.class.php - About 50 mins to fix

                Method sendMessage3 has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    protected function sendMessage3($response, $username, $password, $timestamp, $client, Swift_Transport_SmtpAgent $agent, $v2 = true)

                  Method createNTLMv2Hash has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      protected function createNTLMv2Hash($password, $username, $domain, $challenge, $targetInfo, $timestamp, $client)

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

                            switch ($mode) {
                                case self::MODE_WRITE:
                                    $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_START);
                                    break;
                                case self::MODE_APPEND:
                    Severity: Minor
                    Found in include/lib/swiftmailer/classes/Swift/KeyCache/DiskKeyCache.php and 1 other location - About 50 mins to fix
                    include/lib/swiftmailer/classes/Swift/KeyCache/DiskKeyCache.php on lines 122..135

                    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

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

                            switch ($mode) {
                                case self::MODE_WRITE:
                                    $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_START);
                                    break;
                                case self::MODE_APPEND:
                    Severity: Minor
                    Found in include/lib/swiftmailer/classes/Swift/KeyCache/DiskKeyCache.php and 1 other location - About 50 mins to fix
                    include/lib/swiftmailer/classes/Swift/KeyCache/DiskKeyCache.php on lines 89..102

                    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 6 locations. Consider refactoring.
                    Open

                    switch($setting->getValue('acl_block_statistics', 1)) {
                    case '0':
                      if ($user->isAuthenticated()) {
                        $smarty->assign("CONTENT", "default.tpl");
                      }
                    Severity: Major
                    Found in include/pages/statistics/blocks.inc.php and 5 other locations - About 45 mins to fix
                    include/pages/about/pool.inc.php on lines 5..18
                    include/pages/statistics/blockfinder.inc.php on lines 18..31
                    include/pages/statistics/graphs.inc.php on lines 14..27
                    include/pages/statistics/pool.inc.php on lines 84..97
                    include/pages/statistics/round.inc.php on lines 51..64

                    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 96.

                    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 2 locations. Consider refactoring.
                    Open

                            foreach ($listHeaders as $hName) {
                                // Check if we need to ignore Header
                                if (! isset($this->_ignoredHeaders[strtolower($hName)])) {
                                    if ($headers->has($hName)) {
                                        $tmp = $headers->getAll($hName);
                    include/lib/swiftmailer/classes/Swift/Signers/DKIMSigner.php on lines 491..504

                    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 96.

                    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 2 locations. Consider refactoring.
                    Open

                            foreach ($listHeaders as $hName) {
                                // Check if we need to ignore Header
                                if (! isset($this->_ignoredHeaders[strtolower($hName)])) {
                                    if ($headers->has($hName)) {
                                        $tmp = $headers->getAll($hName);
                    Severity: Minor
                    Found in include/lib/swiftmailer/classes/Swift/Signers/DKIMSigner.php and 1 other location - About 45 mins to fix
                    include/lib/swiftmailer/classes/Swift/Signers/DomainKeySigner.php on lines 368..381

                    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 96.

                    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 6 locations. Consider refactoring.
                    Open

                    switch($setting->getValue('acl_blockfinder_statistics', 1)) {
                    case '0':
                      if ($user->isAuthenticated()) {
                        $smarty->assign("CONTENT", "default.tpl");
                      }
                    Severity: Major
                    Found in include/pages/statistics/blockfinder.inc.php and 5 other locations - About 45 mins to fix
                    include/pages/about/pool.inc.php on lines 5..18
                    include/pages/statistics/blocks.inc.php on lines 94..107
                    include/pages/statistics/graphs.inc.php on lines 14..27
                    include/pages/statistics/pool.inc.php on lines 84..97
                    include/pages/statistics/round.inc.php on lines 51..64

                    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 96.

                    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 6 locations. Consider refactoring.
                    Open

                    switch($setting->getValue('acl_pool_statistics', 1)) {
                    case '0':
                      if ($user->isAuthenticated()) {
                        $smarty->assign("CONTENT", "default.tpl");
                      }
                    Severity: Major
                    Found in include/pages/statistics/pool.inc.php and 5 other locations - About 45 mins to fix
                    include/pages/about/pool.inc.php on lines 5..18
                    include/pages/statistics/blockfinder.inc.php on lines 18..31
                    include/pages/statistics/blocks.inc.php on lines 94..107
                    include/pages/statistics/graphs.inc.php on lines 14..27
                    include/pages/statistics/round.inc.php on lines 51..64

                    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 96.

                    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 6 locations. Consider refactoring.
                    Open

                    switch($setting->getValue('acl_round_statistics', 1)) {
                    case '0':
                      if ($user->isAuthenticated()) {
                        $smarty->assign("CONTENT", "default.tpl");
                      }
                    Severity: Major
                    Found in include/pages/statistics/round.inc.php and 5 other locations - About 45 mins to fix
                    include/pages/about/pool.inc.php on lines 5..18
                    include/pages/statistics/blockfinder.inc.php on lines 18..31
                    include/pages/statistics/blocks.inc.php on lines 94..107
                    include/pages/statistics/graphs.inc.php on lines 14..27
                    include/pages/statistics/pool.inc.php on lines 84..97

                    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 96.

                    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 6 locations. Consider refactoring.
                    Open

                    switch($setting->getValue('acl_about_page', 1)) {
                    case '0':
                      if ($user->isAuthenticated()) {
                        $smarty->assign("CONTENT", "default.tpl");
                      }
                    Severity: Major
                    Found in include/pages/about/pool.inc.php and 5 other locations - About 45 mins to fix
                    include/pages/statistics/blockfinder.inc.php on lines 18..31
                    include/pages/statistics/blocks.inc.php on lines 94..107
                    include/pages/statistics/graphs.inc.php on lines 14..27
                    include/pages/statistics/pool.inc.php on lines 84..97
                    include/pages/statistics/round.inc.php on lines 51..64

                    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 96.

                    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 6 locations. Consider refactoring.
                    Open

                    switch($setting->getValue('acl_graphs_statistics', 1)) {
                    case '0':
                      if ($user->isAuthenticated()) {
                        $smarty->assign("CONTENT", "default.tpl");
                      }
                    Severity: Major
                    Found in include/pages/statistics/graphs.inc.php and 5 other locations - About 45 mins to fix
                    include/pages/about/pool.inc.php on lines 5..18
                    include/pages/statistics/blockfinder.inc.php on lines 18..31
                    include/pages/statistics/blocks.inc.php on lines 94..107
                    include/pages/statistics/pool.inc.php on lines 84..97
                    include/pages/statistics/round.inc.php on lines 51..64

                    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 96.

                    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

                    Method smarty_function_html_options_optgroup has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function smarty_function_html_options_optgroup($key, $values, $selected, $id, $class, &$idx)
                    Severity: Minor
                    Found in include/smarty/libs/plugins/function.html_options.php - About 45 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language