Showing 127 of 127 total issues
Function easeInCubic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInCubic: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function swing
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
swing: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeInOutQuart
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutQuart: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeOutSine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeOutSine: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeInOutSine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutSine: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeInOutElastic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutElastic: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeInOutBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutBounce: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeOutQuint
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeOutQuint: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function queryNewValue
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
queryNewValue = function (code, newValue, link, id, clicked) {
- Create a ticketCreate a ticket
Function easeInExpo
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInExpo: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeInOutCirc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutCirc: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeOutBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeOutBounce: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeInQuint
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInQuint: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeInBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInBounce: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeOutQuart
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeOutQuart: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function easeInElastic
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInElastic: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function getAPIRequest
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private static function getAPIRequest($foxyData = array())
{
if (self::getStoreKey() && self::getFoxyCartStoreName()) {
$config = FoxyStripeSetting::current_foxystripe_setting();
if ($config->CustomSSL) {
- 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
Function modifyOrderDetailPrice
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
public function modifyOrderDetailPrice($OrderProduct, $OrderDetail, $product)
{
if (!$OrderProduct) {
return;
}
- 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
Function updateConfig
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
private function updateConfig()
{
$data = static::config()->get('data');
$transactionDate = $data['TransactionDate'];
static::config()->merge('data', [
- 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
Avoid too many return
statements within this method. Open
return 'none';
- Create a ticketCreate a ticket