Showing 428 of 1,426 total issues
Function keys
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Object.keys = (function() {
var hasOwnProperty = Object.prototype.hasOwnProperty,
hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'),
dontEnums = [
'toString',
Function hide
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_proto.hide = function hide(event) {
var _this2 = this;
if (event) {
event.preventDefault();
Function _showElement
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_proto._showElement = function _showElement(relatedTarget) {
var _this3 = this;
var transition = $$$1(this._element).hasClass(ClassName.FADE);
Method statistics
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function statistics(): Response
{
$startedCounts = $this->statisticsService->getStartedQuizCounts();
$finishedCounts = $this->statisticsService->getFinishedQuizCounts();
$passedCounts = $this->statisticsService->getPassedQuizCounts();
Method edit
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit(Request $request, string $id): Response
{
$companies = $this->getCompaniesForUser();
$company = $this->getActiveCompany($companies, $id);
Function speed
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jQuery.speed = function( speed, easing, fn ) {
var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
complete: fn || !fn && easing ||
isFunction( speed ) && speed,
duration: speed,
Function removeClass
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
removeClass: function( value ) {
var classes, elem, cur, curValue, clazz, j, finalValue,
i = 0;
if ( isFunction( value ) ) {
Function _fnSortAria
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnSortAria ( settings )
{
var label;
var nextSort;
var columns = settings.aoColumns;
Function _toSettings
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var _toSettings = function ( mixed )
{
var idx, jq;
var settings = DataTable.settings;
var tables = $.map( settings, function (el, i) {
Function renderQuestion
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderQuestion (data) {
let imageLocation = quizConfig.imageDirectory + data.question.imageFileName;
let questionImage = new Image();
setViewValue('questionText', data.question.text);
Function attr
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
attr: function( elem, name, value ) {
var ret, hooks,
nType = elem.nodeType;
// Don't get/set attributes on text, comment and attribute nodes
Function _fnFilterComplete
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnFilterComplete ( oSettings, oInput, iForce )
{
var oPrevSearch = oSettings.oPreviousSearch;
var aoPrevSearch = oSettings.aoPreSearchCols;
var fnSaveFilter = function ( oFilter ) {
Function _fnFilter
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fnFilter( settings, input, force, regex, smart, caseInsensitive )
{
var rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );
var prevSearch = settings.oPreviousSearch.sSearch;
var displayMaster = settings.aiDisplayMaster;
Function refresh
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_proto.refresh = function refresh() {
var _this2 = this;
var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;
var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
Method guardChannel
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function guardChannel(QuizChannel $channel, ?Company $company, ?Partner $partner, ?Team $team): void
{
switch ($channel->toNative()) {
case QuizChannel::INDIVIDUAL:
case QuizChannel::LEAGUE:
Method buildForm
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildForm(FormBuilderInterface $builder, array $options)
{
/** @var TranslatorInterface $translator */
$translator = $options['translator'];
Method rankTeamScores
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function rankTeamScores(Teams $teams): TeamScores
{
/** @var WeightedTeam[] $weightedTeams */
$weightedTeams = [];
Method login
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function login(Request $request): Response
{
$form = $this->createLoginForm();
$form->handleRequest($request);
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
UuidInterface $id,
Language $language,
Year $year,
Category $category,
NotEmptyString $text,
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
UuidInterface $id,
QuizChannel $channel,
?Company $company,
?Partner $partner,
?Team $team,