Apply the Laravel code style

This commit is contained in:
Shift
2025-08-29 02:54:54 +00:00
parent 2b099b3156
commit 921ac28ba7
2 changed files with 5 additions and 6 deletions
+3 -3
View File
@@ -21,9 +21,9 @@ class HoldingController extends Controller
$query->where('transactions.symbol', $symbol); $query->where('transactions.symbol', $symbol);
}, },
]) ])
->symbol($symbol) ->symbol($symbol)
->portfolio($portfolio->id) ->portfolio($portfolio->id)
->firstOrFail(); ->firstOrFail();
$formattedTransactions = $holding->getFormattedTransactions(); $formattedTransactions = $holding->getFormattedTransactions();
+2 -3
View File
@@ -5,9 +5,8 @@ declare(strict_types=1);
namespace App\Rules; namespace App\Rules;
use App\Models\Portfolio; use App\Models\Portfolio;
use App\Models\Transaction;
use Illuminate\Support\Carbon;
use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Support\Carbon;
class QuantityValidationRule implements ValidationRule class QuantityValidationRule implements ValidationRule
{ {
@@ -21,7 +20,7 @@ class QuantityValidationRule implements ValidationRule
protected ?string $symbol, protected ?string $symbol,
protected ?string $transactionType, protected ?string $transactionType,
protected string|Carbon|null $date protected string|Carbon|null $date
) { } ) {}
/** /**
* Validate the attribute. * Validate the attribute.