mambax7/publisher

View on GitHub

Showing 355 of 3,032 total issues

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 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 easeInCirc has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

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

        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 easeInSine has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

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

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

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

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

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

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

                        easeInQuint: 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 easeInOutQuart has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            easeInOutQuart: 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 easeInOutQuad has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                easeInOutQuad: function (x, t, b, c, d) {
                        Severity: Minor
                        Found in assets/js/jquery.easing.js - 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 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 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 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 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 myXMLHttpRequest has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    function myXMLHttpRequest() {
                                        var xmlhttplocal;
                                        try {
                                            xmlhttplocal = new ActiveXObject("Msxml2.XMLHTTP")
                                        } catch (e) {
                                    Severity: Minor
                                    Found in assets/js/rating.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

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

                                    function loadSampleData(): void
                                    {
                                        global $xoopsConfig;
                                        $moduleDirName      = \basename(\dirname(__DIR__));
                                        $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
                                    Severity: Minor
                                    Found in testdata/index.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

                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language