Showing 96 of 127 total issues
Function easeInOutBounce
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInOutBounce: 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 easeOutCirc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeOutCirc: function (x, t, b, c, d) {
- Create a ticketCreate a ticket
Function flexAnimate
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
slider.flexAnimate = function(target, pause, override, withSync, fromNav) {
- Create a ticketCreate a ticket
Function easeInQuad
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
easeInQuad: 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 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
Function handleDataFeed
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function handleDataFeed($encrypted, $decrypted)
{
$orders = new \SimpleXMLElement($decrypted);
// loop over each transaction to find FoxyCart Order ID
- 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 putCategory
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function putCategory($data = [])
{
$client = $this->getClient();
$errors = [];
- 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 getFoxyCartStoreName
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public static function getFoxyCartStoreName()
{
$config = FoxyStripeSetting::current_foxystripe_setting();
if ($config->CustomSSL) {
if ($config->RemoteDomain) {
- 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 getEditForm
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function getEditForm($id = null, $fields = null)
{
$config = FoxyStripeSetting::current_foxystripe_setting();
$fields = $config->getCMSFields();
- 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 onBeforeDelete
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function onBeforeDelete()
{
parent::onBeforeDelete();
//make sure that if we delete this option group, we reassign the group's option items to the 'None' group.
- 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 onBeforeDelete
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public function onBeforeDelete()
{
if ($this->Status != 'Published') {
if ($this->ProductOptions()) {
$options = $this->getComponents('ProductOptions');
- 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"