kawax/self-ordering

View on GitHub

Showing 3 of 3 total issues

Method __invoke has 83 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __invoke(): Collection
    {
        $id = 0;

        return collect([
Severity: Major
Found in src/Menu/SampleMenu.php - About 3 hrs to fix

    Method order has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function order(array $options = null): void
        {
            $items = Cart::all();
            $table = session('table');
            $memo = session('memo');
    Severity: Minor
    Found in src/Actions/OrderAction.php - About 1 hr to fix

      Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              public string $order_id,//注文ID
              public ?array $items,//詳細を含む商品データ
              public ?string $table,//テーブル番号
              public ?string $memo,//追加メモ
              public ?array $options//オプションデータ
      Severity: Minor
      Found in src/Events/OrderEntry.php - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language