Showing 244 of 2,792 total issues
File jquery.js
has 6685 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery JavaScript Library v3.3.1
* https://jquery.com/
*
* Includes Sizzle.js
- Create a ticketCreate a ticket
File bootstrap.bundle.js
has 4025 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Bootstrap v4.1.3 (https://getbootstrap.com/)
* Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
- Create a ticketCreate a ticket
File bootstrap.js
has 2830 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* Bootstrap v4.1.3 (https://getbootstrap.com/)
* Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
- Create a ticketCreate a ticket
Function Sizzle
has 1452 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
(function( window ) {
var i,
support,
Expr,
- Create a ticketCreate a ticket
Function sync
has a Cognitive Complexity of 118 (exceeds 20 allowed). Consider refactoring. Open
Open
public function sync()
{
$settings = TableRegistry::get('Settings');
$users = TableRegistry::get('Users');
$atts = TableRegistry::get('Attendees');
- Read upRead up
- Create a ticketCreate a ticket
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
File AttendeesTableTest.php
has 853 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace App\Test\TestCase\Model\Table;
use App\Model\Entity\Attendees;
use App\Model\Table\AttendeesTable;
- Create a ticketCreate a ticket
Function Tooltip
has 515 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
var Tooltip = function ($$$1) {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
- Create a ticketCreate a ticket
Function Tooltip
has 515 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
var Tooltip = function ($$$1) {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
- Create a ticketCreate a ticket
Function Tooltip
has 432 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
function () {
function Tooltip(element, config) {
/**
* Check for Popper dependency
* Popper - https://popper.js.org
- Create a ticketCreate a ticket
Function Tooltip
has 432 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
function () {
function Tooltip(element, config) {
/**
* Check for Popper dependency
* Popper - https://popper.js.org
- Create a ticketCreate a ticket
Function Modal
has 414 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
var Modal = function ($$$1) {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
- Create a ticketCreate a ticket
Function Modal
has 414 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
var Modal = function ($$$1) {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
- Create a ticketCreate a ticket
Function Carousel
has 368 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
var Carousel = function ($$$1) {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
- Create a ticketCreate a ticket
Function Carousel
has 368 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
var Carousel = function ($$$1) {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
- Create a ticketCreate a ticket
File NotificationsController.php
has 566 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace App\Controller\Admin;
use Cake\I18n\Time;
use Cake\Mailer\Email;
- Create a ticketCreate a ticket
File ApplicationsController.php
has 530 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace App\Controller;
use App\Form\CancellationForm;
use App\Form\SyncBookForm;
- Create a ticketCreate a ticket
Method getExpected
has 340 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
public function getExpected()
{
$startNow = FrozenTime::now();
$nowDate = new FrozenDate('2016-12-26');
- Create a ticketCreate a ticket
Function Modal
has 335 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
function () {
function Modal(element, config) {
this._config = this._getConfig(config);
this._element = element;
this._dialog = element.querySelector(Selector.DIALOG);
- Create a ticketCreate a ticket
Function Modal
has 335 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
function () {
function Modal(element, config) {
this._config = this._getConfig(config);
this._element = element;
this._dialog = element.querySelector(Selector.DIALOG);
- Create a ticketCreate a ticket
Function Dropdown
has 335 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
var Dropdown = function ($$$1) {
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
- Create a ticketCreate a ticket