Showing 428 of 1,426 total issues
Function controller
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: function (quizId, questionNr, answerId) {
let deferredRender = $.Deferred();
function renderAnsweredQuestion (data) {
let answerResult = 'wrong';
Function setData
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var setData = function (data, val, src) {
var a = _fnSplitObjNotation( src ), b;
var aLast = a[a.length-1];
var arrayNotation, funcNotation, o, innerSrc;
Function _fnBuildHead
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnBuildHead( oSettings )
{
var i, ien, cell, row, column;
var thead = oSettings.nTHead;
var tfoot = oSettings.nTFoot;
Function show
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_proto.show = function show() {
var _this = this;
if (this._isTransitioning || $$$1(this._element).hasClass(ClassName.SHOW)) {
return;
Method denormalize
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function denormalize($data, $class, $format = null, array $context = []): Quiz
{
$questions = array_map(
function (array $question) use ($format, $context) {
return $this->questionDenormalizer->denormalize(
Method showQuiz
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function showQuiz(ContainerInterface $container, Request $request): Response
{
$language = $request->get('language');
if ($request->query->get('channel') === 'company') {
Function addCombinator
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addCombinator( matcher, combinator, base ) {
var dir = combinator.dir,
skip = combinator.next,
key = skip || dir,
checkNonElements = base && key === "parentNode",
Function select
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
select = Sizzle.select = function( selector, context, results, seed ) {
var i, tokens, token, type, find,
compiled = typeof selector === "function" && selector,
match = !seed && tokenize( (selector = compiled.selector || selector) );
Function tokenize
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
var matched, match, tokens, type,
soFar, groups, preFilters,
cached = tokenCache[ selector + " " ];
Function matcherFromTokens
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function matcherFromTokens( tokens ) {
var checkContext, matcher, j,
len = tokens.length,
leadingRelative = Expr.relative[ tokens[0].type ],
implicitRelative = leadingRelative || Expr.relative[" "],
Function _fnDetectHeader
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnDetectHeader ( aLayout, nThead )
{
var nTrs = $(nThead).children('tr');
var nTr, nCell;
var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
Function val
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
val: function( value ) {
var hooks, ret, valueIsFunction,
elem = this[ 0 ];
if ( !arguments.length ) {
Function run
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var run = function ( s ) {
var fnSelector = typeof s === 'function';
if ( s === null || s === undefined || fnSelector ) {
// All cells and function selectors
Function show
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_proto.show = function show() {
var _this = this;
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $$$1(this._element).hasClass(ClassName.ACTIVE) || $$$1(this._element).hasClass(ClassName.DISABLED)) {
return;
Function controller
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: function () {
let startButton = view.find('button.gvq-start-button');
let teamSelect = view.find('select[name="choose-team"]');
Method editContact
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function editContact(Request $request, ?string $id): Response
{
if ($id === null) {
$user = $this->userRepository->getByEmail(new Email($this->getUser()->getUsername()));
} elseif ($this->get('security.authorization_checker')->isGranted('ROLE_CONTACT')) {
Method edit
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit(Request $request, string $id): Response
{
$user = $this->userRepository->getById(
$this->uuidFactory->fromString($id)
);
Function data
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
data: function( key, value ) {
var i, name, data,
elem = this[ 0 ],
attrs = elem && elem.attributes;
Method handle
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(DomainMessage $domainMessage)
{
$payload = $domainMessage->getPayload();
if ($payload instanceof QuestionAsked) {
Method getTraversableDomainMessages
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getTraversableDomainMessages(
array $types = [],
int $firstId = null,
int $lastId = null,
callable $eventEntityFeedback = null,