Showing 428 of 1,426 total issues
Function fnUpdate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
Function number
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
number: function ( thousands, decimal, precision, prefix, postfix ) {
Function superMatcher
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
superMatcher = function( seed, context, xml, results, outermost ) {
Function buildFragment
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function buildFragment( elems, context, scripts, selection, ignored ) {
Function Tween
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function Tween( elem, options, prop, end, easing ) {
Function _selector_run
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var _selector_run = function ( type, selector, selectFn, settings, opts )
Function add
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
add: function( elem, types, handler, data, selector ) {
Function __columnData
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var __columnData = function ( settings, column, r1, r2, rows ) {
Function CHILD
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
"CHILD": function( type, what, argument, first, last ) {
Function condense
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function condense( unmatched, map, filter, context, xml ) {
Function remove
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
Function progress
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function progress(val, label, css_class, bar, cont) {
Function renderView
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function renderView (viewName, quizId, questionNr, answerId, scroll) {
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
CompanyQuestionDifficultyRepositoryFactory $questionDifficultyRepositoryFactory,
CompanyQuestionCounterRepositoryFactory $questionAnsweredCorrectRepositoryFactory,
CompanyQuestionCounterRepositoryFactory $questionAnsweredInCorrectRepositoryFactory,
QuizRepository $quizRepository,
EmployeeParticipationRepository $employeeParticipationRepository
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
\Redis $redis,
QuestionCounterRepository $answeredCorrectRepository,
QuestionCounterRepository $answeredInCorrectRepository,
QuestionRepository $questionRepository,
NotEmptyString $keyPrefix = null
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
UuidFactoryInterface $uuidFactory,
UserRepository $userRepository,
SerializerInterface $serializer,
TranslatorInterface $translator,
ResponseFactory $responseFactory
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
iterable $companies,
CompanyPlayedQuizzesRepository $companyPlayedQuizzesRepository,
EmployeeParticipationRepository $employeeParticipationRepository,
TopScoreRepository $topScoreRepository,
NormalizerInterface $normalizer
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
UuidFactoryInterface $uuidFactory,
QuestionRepository $questionRepository,
CategoryRepository $categoryRepository,
ImageController $imageController,
TranslatorInterface $translator
Method getTraversableDomainMessages
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
array $types = [],
int $firstId = null,
int $lastId = null,
callable $eventEntityFeedback = null,
string $uuidStart = null
Function canPlayQuiz
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
private function canPlayQuiz(): bool
{
if ($this->allowAnonymous) {
return true;
} else {
- Read upRead up
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"