code/app/Formatters/Order.php
Method formattableColumns
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function formattableColumns($type = null)
{
$ret = [
'name' => (object) [
'name' => _i('Nome Prodotto'),
Avoid too many return
statements within this method. Open
Open
return $ret;
Avoid too many return
statements within this method. Open
Open
return printablePrice($product->getPrice());
Avoid too many return
statements within this method. Open
Open
return printablePrice($summary->variant->unitPrice());
Avoid too many return
statements within this method. Open
Open
return $product->pivot->notes;