mambax7/publisher

View on GitHub

Showing 355 of 3,032 total issues

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

        easeInExpo: 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 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

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

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

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

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

                                easeInOutElastic: function (x, t, b, c, d) {
                        Severity: Minor
                        Found in assets/js/jquery.easing.js - 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 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 __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 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 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

                                    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