Skip to content

Commit 66a1eb9

Browse files
committed
docs: Correct spelling error in method name
The commit fixes a spelling error in the method name "proporcional" to "proportional" in the readme.md file. This ensures consistency and readability in the codebase.🔧
1 parent 2171290 commit 66a1eb9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

readme.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
[![Build Status](https://github.com/vaened/swift-cart/actions/workflows/tests.yml/badge.svg)](https://github.com/vaened/swift-cart/actions?query=workflow:Tests)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](license)
55

6-
This library is a powerful tool that allows you to efficiently manage purchases, quotes, accounts, and more. With this library, you can effortlessly handle various aspects of a shopping cart, including adding products, taxes, fees, and discounts, and obtaining a detailed summary of the total amount to pay.
6+
This library is a powerful tool that allows you to efficiently manage purchases, quotes, accounts, and more. With this library, you can
7+
effortlessly handle various aspects of a shopping cart, including adding products, taxes, fees, and discounts, and obtaining a detailed
8+
summary of the total amount to pay.
79

810
> This library is based on [vaened/php-price-engine](https://github.com/vaened/php-price-engine) for price management
911
1012
```php
1113
// initialize cart
1214
$taxes = Taxes::from([
13-
Inclusive::proporcional(18, 'IGV')
15+
Inclusive::proportional(18, 'IGV')
1416
]);
1517

1618
$cart = new ShoppingCart($taxes);
@@ -20,11 +22,11 @@ $mouse = $cart->push(Product::findOrFail(1), quantity: 2);
2022

2123
// assign individual charges and discounts
2224
$mouse->add(
23-
Charge::proporcional(percentage: 5)->named('Delivery'),
25+
Charge::proportional(percentage: 5)->named('Delivery'),
2426
Charge::fixed(amount: 2)->named('Random'),
2527
);
2628
$mouse->apply(
27-
Discount::proporcional(percentage: 10)->named('NewUser')
29+
Discount::proportional(percentage: 10)->named('NewUser')
2830
);
2931

3032
// update quantity
@@ -35,12 +37,13 @@ $cart->addAsGlobal(
3537
Charge::fixed(amount: 2)->named('Express')
3638
);
3739
$cart->applyAsGlobal(
38-
Discount::proporcional(percentage: 1)
40+
Discount::proportional(percentage: 1)
3941
);
4042

4143
// get summary
4244
$cart->summary();
4345
```
46+
4447
## Installation
4548

4649
You can install the library using `composer`.

0 commit comments

Comments
 (0)