mambax7/publisher

View on GitHub

Showing 355 of 3,032 total issues

Function easeInOutCubic has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        easeInOutCubic: function (x, t, b, c, d) {
Severity: Minor
Found in assets/js/jquery.easing.js - About 35 mins to fix

    Function easeInQuart has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            easeInQuart: function (x, t, b, c, d) {
    Severity: Minor
    Found in assets/js/jquery.easing.js - About 35 mins to fix

      Function easeOutSine has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              easeOutSine: function (x, t, b, c, d) {
      Severity: Minor
      Found in assets/js/jquery.easing.js - About 35 mins to fix

        Function easeInElastic has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                easeInElastic: function (x, t, b, c, d) {
        Severity: Minor
        Found in assets/js/jquery.easing.js - About 35 mins to fix

          Function easeInOutSine has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  easeInOutSine: function (x, t, b, c, d) {
          Severity: Minor
          Found in assets/js/jquery.easing.js - About 35 mins to fix

            Function easeOutQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    easeOutQuad: function (x, t, b, c, d) {
            Severity: Minor
            Found in assets/js/jquery.easing.js - About 35 mins to fix

              Function easeInOutBounce has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      easeInOutBounce: function (x, t, b, c, d) {
              Severity: Minor
              Found in assets/js/jquery.easing.js - About 35 mins to fix

                Function easeOutQuart has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        easeOutQuart: function (x, t, b, c, d) {
                Severity: Minor
                Found in assets/js/jquery.easing.js - About 35 mins to fix

                  Function easeOutExpo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          easeOutExpo: function (x, t, b, c, d) {
                  Severity: Minor
                  Found in assets/js/jquery.easing.js - About 35 mins to fix

                    Function swing has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            swing: function (x, t, b, c, d) {
                    Severity: Minor
                    Found in assets/js/jquery.easing.js - About 35 mins to fix

                      Function easeInQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              easeInQuad: function (x, t, b, c, d) {
                      Severity: Minor
                      Found in assets/js/jquery.easing.js - About 35 mins to fix

                        Function easeOutQuint has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                easeOutQuint: function (x, t, b, c, d) {
                        Severity: Minor
                        Found in assets/js/jquery.easing.js - About 35 mins to fix

                          Method createCategorySelect has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public static function createCategorySelect($selectedId = 0, $parentcategory = 0, $allCatOption = true, $selectname = 'options[1]', $multiple = true)
                          Severity: Minor
                          Found in class/Utility.php - About 35 mins to fix

                            Method truncateHtml has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    string $text,
                                    ?int $length = 100,
                                    string $ending = '...',
                                    bool $exact = false,
                                    bool $considerHtml = true
                            Severity: Minor
                            Found in class/Common/SysUtility.php - About 35 mins to fix

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

                                  public function __construct(array $hiddens, string $action, string $object, string $title = '', string $label = '')
                              Severity: Minor
                              Found in class/Common/Confirm.php - About 35 mins to fix

                                Method openCollapsableBar has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    public static function openCollapsableBar($tablename = '', $iconname = '', $tabletitle = '', $tabledsc = '', $open = true): void
                                Severity: Minor
                                Found in class/Utility.php - About 35 mins to fix

                                  Method checkRight has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      public function checkRight($gpermName, $gpermItemId, $gpermGroupId, $gpermModId = 1, $trueifadmin = true) //checkRight($gpermName, $gpermItemId, $gpermGroupId, $gpermModId = 1)
                                  Severity: Minor
                                  Found in class/GroupPermHandler.php - About 35 mins to fix

                                    Function serveWebshot has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        protected function serveWebshot()
                                        {
                                            $this->debug(3, 'Starting serveWebshot');
                                            $instr = 'Please follow the instructions at https://code.google.com/p/timthumb/ to set your server up for taking website screenshots.';
                                            if (!is_file(WEBSHOT_CUTYCAPT)) {
                                    Severity: Minor
                                    Found in thumb.php - About 35 mins to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Function publisher_pagewrap_upload has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    function publisher_pagewrap_upload(&$errors)
                                    {
                                        //    require_once PUBLISHER_ROOT_PATH . '/class/uploader.php';
                                        xoops_load('XoopsMediaUploader');
                                    
                                    
                                    Severity: Minor
                                    Found in admin/pw_upload_file.php - About 35 mins to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Function toggle has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    function toggle(id) {
                                        if (document.getElementById) {
                                            obj = document.getElementById(id);
                                        }
                                        if (document.all) {
                                    Severity: Minor
                                    Found in assets/js/funcs.js - About 35 mins to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language