VSVverkeerskunde/gvq-api

View on GitHub

Showing 1,426 of 1,426 total issues

The class StatisticsService has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13.
Open

class StatisticsService
{
    /**
     * @var StartedQuizRepository
     */

CouplingBetweenObjects

Since: 1.1.0

A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

Example

class Foo {
    /**
     * @var \foo\bar\X
     */
    private $x = null;

    /**
     * @var \foo\bar\Y
     */
    private $y = null;

    /**
     * @var \foo\bar\Z
     */
    private $z = null;

    public function setFoo(\Foo $foo) {}
    public function setBar(\Bar $bar) {}
    public function setBaz(\Baz $baz) {}

    /**
     * @return \SplObjectStorage
     * @throws \OutOfRangeException
     * @throws \InvalidArgumentException
     * @throws \ErrorException
     */
    public function process(\Iterator $it) {}

    // ...
}

Source https://phpmd.org/rules/design.html#couplingbetweenobjects

The class EditContactFormType has a coupling between objects value of 13. Consider to reduce the number of dependencies under 13.
Open

class EditContactFormType extends AbstractType
{
    /**
     * @var User
     */

CouplingBetweenObjects

Since: 1.1.0

A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

Example

class Foo {
    /**
     * @var \foo\bar\X
     */
    private $x = null;

    /**
     * @var \foo\bar\Y
     */
    private $y = null;

    /**
     * @var \foo\bar\Z
     */
    private $z = null;

    public function setFoo(\Foo $foo) {}
    public function setBar(\Bar $bar) {}
    public function setBaz(\Baz $baz) {}

    /**
     * @return \SplObjectStorage
     * @throws \OutOfRangeException
     * @throws \InvalidArgumentException
     * @throws \ErrorException
     */
    public function process(\Iterator $it) {}

    // ...
}

Source https://phpmd.org/rules/design.html#couplingbetweenobjects

The class UserViewController has a coupling between objects value of 18. Consider to reduce the number of dependencies under 13.
Open

class UserViewController extends AbstractController
{
    /**
     * @var UuidFactoryInterface
     */

CouplingBetweenObjects

Since: 1.1.0

A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

Example

class Foo {
    /**
     * @var \foo\bar\X
     */
    private $x = null;

    /**
     * @var \foo\bar\Y
     */
    private $y = null;

    /**
     * @var \foo\bar\Z
     */
    private $z = null;

    public function setFoo(\Foo $foo) {}
    public function setBar(\Bar $bar) {}
    public function setBaz(\Baz $baz) {}

    /**
     * @return \SplObjectStorage
     * @throws \OutOfRangeException
     * @throws \InvalidArgumentException
     * @throws \ErrorException
     */
    public function process(\Iterator $it) {}

    // ...
}

Source https://phpmd.org/rules/design.html#couplingbetweenobjects

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

    var ClassName = {
      CAROUSEL: 'carousel',
      ACTIVE: 'active',
      SLIDE: 'slide',
      RIGHT: 'carousel-item-right',
Severity: Minor
Found in public/js/bootstrap.js and 2 other locations - About 40 mins to fix
public/js/bootstrap.js on lines 1444..1453
public/js/bootstrap.js on lines 1461..1470

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

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

    var AttachmentMap = {
      TOP: 'top-start',
      TOPEND: 'top-end',
      BOTTOM: 'bottom-start',
      BOTTOMEND: 'bottom-end',
Severity: Minor
Found in public/js/bootstrap.js and 2 other locations - About 40 mins to fix
public/js/bootstrap.js on lines 596..605
public/js/bootstrap.js on lines 1444..1453

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

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

                for ( i = 0, l = srcElements.length; i < l; i++ ) {
                    cloneCopyEvent( srcElements[ i ], destElements[ i ] );
                }
Severity: Minor
Found in public/js/jquery.js and 1 other location - About 40 mins to fix
public/js/jquery.js on lines 5812..5814

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

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

    var ClassName = {
      DISABLED: 'disabled',
      SHOW: 'show',
      DROPUP: 'dropup',
      DROPRIGHT: 'dropright',
Severity: Minor
Found in public/js/bootstrap.js and 2 other locations - About 40 mins to fix
public/js/bootstrap.js on lines 596..605
public/js/bootstrap.js on lines 1461..1470

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

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

            for ( i = 0, l = srcElements.length; i < l; i++ ) {
                fixInput( srcElements[ i ], destElements[ i ] );
            }
Severity: Minor
Found in public/js/jquery.js and 1 other location - About 40 mins to fix
public/js/jquery.js on lines 5823..5825

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

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

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

    add: function( elem, types, handler, data, selector ) {
Severity: Minor
Found in public/js/jquery.js - About 35 mins to fix

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

        remove: function( elem, types, handler, selector, mappedTypes ) {
    Severity: Minor
    Found in public/js/jquery.js - About 35 mins to fix

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

              "CHILD": function( type, what, argument, first, last ) {
      Severity: Minor
      Found in public/js/jquery.js - About 35 mins to fix

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

                this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
        Severity: Minor
        Found in public/js/jquery.dataTables.js - About 35 mins to fix

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

                  number: function ( thousands, decimal, precision, prefix, postfix ) {
          Severity: Minor
          Found in public/js/jquery.dataTables.js - About 35 mins to fix

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

                var __columnData = function ( settings, column, r1, r2, rows ) {
            Severity: Minor
            Found in public/js/jquery.dataTables.js - About 35 mins to fix

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

              function condense( unmatched, map, filter, context, xml ) {
              Severity: Minor
              Found in public/js/jquery.js - About 35 mins to fix

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

                        superMatcher = function( seed, context, xml, results, outermost ) {
                Severity: Minor
                Found in public/js/jquery.js - About 35 mins to fix

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

                  function Tween( elem, options, prop, end, easing ) {
                  Severity: Minor
                  Found in public/js/jquery.js - About 35 mins to fix

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

                        var _selector_run = function ( type, selector, selectFn, settings, opts )
                    Severity: Minor
                    Found in public/js/jquery.dataTables.js - About 35 mins to fix

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

                      function buildFragment( elems, context, scripts, selection, ignored ) {
                      Severity: Minor
                      Found in public/js/jquery.js - About 35 mins to fix

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

                                    function progress(val, label, css_class, bar, cont) {
                        Severity: Minor
                        Found in public/js/quiz.js - About 35 mins to fix
                          Severity
                          Category
                          Status
                          Source
                          Language