Showing 3 of 3 total issues
Method __invoke
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __invoke(): Collection
{
$id = 0;
return collect([
Method order
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function order(array $options = null): void
{
$items = Cart::all();
$table = session('table');
$memo = session('memo');
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public string $order_id,//注文ID
public ?array $items,//詳細を含む商品データ
public ?string $table,//テーブル番号
public ?string $memo,//追加メモ
public ?array $options//オプションデータ