Skip to content

Commit 9f36b02

Browse files
authored
Fix whitespaces (#9780)
1 parent 87c1dc3 commit 9f36b02

38 files changed

+102
-99
lines changed

artisan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ Sometimes, you may need more manual control over how a progress bar is advanced.
649649

650650
$bar->finish();
651651

652-
> [!NOTE]
652+
> [!NOTE]
653653
> For more advanced options, check out the [Symfony Progress Bar component documentation](https://symfony.com/doc/7.0/components/console/helpers/progressbar.html).
654654
655655
<a name="registering-commands"></a>

authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ For complex query conditions, you may provide a closure in your array of credent
280280
use Illuminate\Database\Eloquent\Builder;
281281

282282
if (Auth::attempt([
283-
'email' => $email,
284-
'password' => $password,
283+
'email' => $email,
284+
'password' => $password,
285285
fn (Builder $query) => $query->has('activeSubscription'),
286286
])) {
287287
// Authentication was successful...

billing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Offering product and subscription billing via your application can be intimidati
251251
To charge customers for non-recurring, single-charge products, we'll utilize Cashier to direct customers to Stripe Checkout, where they will provide their payment details and confirm their purchase. Once the payment has been made via Checkout, the customer will be redirected to a success URL of your choosing within your application:
252252

253253
use Illuminate\Http\Request;
254-
254+
255255
Route::get('/checkout', function (Request $request) {
256256
$stripePriceId = 'price_deluxe_album';
257257

@@ -276,11 +276,11 @@ If necessary, the `checkout` method will automatically create a customer in Stri
276276
When selling products, it's common to keep track of completed orders and purchased products via `Cart` and `Order` models defined by your own application. When redirecting customers to Stripe Checkout to complete a purchase, you may need to provide an existing order identifier so that you can associate the completed purchase with the corresponding order when the customer is redirected back to your application.
277277

278278
To accomplish this, you may provide an array of `metadata` to the `checkout` method. Let's imagine that a pending `Order` is created within our application when a user begins the checkout process. Remember, the `Cart` and `Order` models in this example are illustrative and not provided by Cashier. You are free to implement these concepts based on the needs of your own application:
279-
279+
280280
use App\Models\Cart;
281281
use App\Models\Order;
282282
use Illuminate\Http\Request;
283-
283+
284284
Route::get('/cart/{cart}/checkout', function (Request $request, Cart $cart) {
285285
$order = Order::create([
286286
'cart_id' => $cart->id,
@@ -340,7 +340,7 @@ To learn how to sell subscriptions using Cashier and Stripe Checkout, let's cons
340340
First, let's discover how a customer can subscribe to our services. Of course, you can imagine the customer might click a "subscribe" button for the Basic plan on our application's pricing page. This button or link should direct the user to a Laravel route which creates the Stripe Checkout session for their chosen plan:
341341

342342
use Illuminate\Http\Request;
343-
343+
344344
Route::get('/subscription-checkout', function (Request $request) {
345345
return $request->user()
346346
->newSubscription('default', 'price_basic_monthly')
@@ -2215,7 +2215,7 @@ Some payment methods require additional data in order to confirm payments. For e
22152215
$subscription->withPaymentConfirmationOptions([
22162216
'mandate_data' => '...',
22172217
])->swap('price_xxx');
2218-
2218+
22192219
You may consult the [Stripe API documentation](https://stripe.com/docs/api/payment_intents/confirm) to review all of the options accepted when confirming payments.
22202220

22212221
<a name="strong-customer-authentication"></a>

cashier-paddle.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ After defining your model, you may instruct Cashier to use your custom model via
201201
<a name="quickstart-selling-products"></a>
202202
### Selling Products
203203

204-
> [!NOTE]
204+
> [!NOTE]
205205
> Before utilizing Paddle Checkout, you should define Products with fixed prices in your Paddle dashboard. In addition, you should [configure Paddle's webhook handling](#handling-paddle-webhooks).
206206
207207
Offering product and subscription billing via your application can be intimidating. However, thanks to Cashier and [Paddle's Checkout Overlay](https://www.paddle.com/billing/checkout), you can easily build modern, robust payment integrations.
@@ -235,11 +235,11 @@ In the `buy` view, we will include a button to display the Checkout Overlay. The
235235
When selling products, it's common to keep track of completed orders and purchased products via `Cart` and `Order` models defined by your own application. When redirecting customers to Paddle's Checkout Overlay to complete a purchase, you may need to provide an existing order identifier so that you can associate the completed purchase with the corresponding order when the customer is redirected back to your application.
236236

237237
To accomplish this, you may provide an array of custom data to the `checkout` method. Let's imagine that a pending `Order` is created within our application when a user begins the checkout process. Remember, the `Cart` and `Order` models in this example are illustrative and not provided by Cashier. You are free to implement these concepts based on the needs of your own application:
238-
238+
239239
use App\Models\Cart;
240240
use App\Models\Order;
241241
use Illuminate\Http\Request;
242-
242+
243243
Route::get('/cart/{cart}/checkout', function (Request $request, Cart $cart) {
244244
$order = Order::create([
245245
'cart_id' => $cart->id,

collections.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ As mentioned above, the `collect` helper returns a new `Illuminate\Support\Colle
3131

3232
$collection = collect([1, 2, 3]);
3333

34-
> [!NOTE]
34+
> [!NOTE]
3535
> The results of [Eloquent](/docs/{{version}}/eloquent) queries are always returned as `Collection` instances.
3636
3737
<a name="extending-collections"></a>
@@ -432,7 +432,7 @@ The `collect` method is primarily useful for converting [lazy collections](#lazy
432432

433433
// [1, 2, 3]
434434

435-
> [!NOTE]
435+
> [!NOTE]
436436
> The `collect` method is especially useful when you have an instance of `Enumerable` and need a non-lazy collection instance. Since `collect()` is part of the `Enumerable` contract, you can safely use it to get a `Collection` instance.
437437
438438
<a name="method-combine"></a>
@@ -525,7 +525,7 @@ The `containsOneItem` method determines whether the collection contains a single
525525

526526
This method has the same signature as the [`contains`](#method-contains) method; however, all values are compared using "strict" comparisons.
527527

528-
> [!NOTE]
528+
> [!NOTE]
529529
> This method's behavior is modified when using [Eloquent Collections](/docs/{{version}}/eloquent-collections#method-contains).
530530
531531
<a name="method-count"></a>
@@ -636,7 +636,7 @@ The `diff` method compares the collection against another collection or a plain
636636

637637
// [1, 3, 5]
638638

639-
> [!NOTE]
639+
> [!NOTE]
640640
> This method's behavior is modified when using [Eloquent Collections](/docs/{{version}}/eloquent-collections#method-diff).
641641
642642
<a name="method-diffassoc"></a>
@@ -856,7 +856,7 @@ Primitive types such as `string`, `int`, `float`, `bool`, and `array` may also b
856856

857857
return $collection->ensure('int');
858858

859-
> [!WARNING]
859+
> [!WARNING]
860860
> The `ensure` method does not guarantee that elements of different types will not be added to the collection at a later time.
861861
862862
<a name="method-every"></a>
@@ -895,7 +895,7 @@ The `except` method returns all items in the collection except for those with th
895895

896896
For the inverse of `except`, see the [only](#method-only) method.
897897

898-
> [!NOTE]
898+
> [!NOTE]
899899
> This method's behavior is modified when using [Eloquent Collections](/docs/{{version}}/eloquent-collections#method-except).
900900
901901
<a name="method-filter"></a>
@@ -1078,7 +1078,7 @@ The `forget` method removes an item from the collection by its key:
10781078

10791079
// ['framework' => 'laravel']
10801080

1081-
> [!WARNING]
1081+
> [!WARNING]
10821082
> Unlike most other collection methods, `forget` does not return a new modified collection; it modifies the collection it is called on.
10831083
10841084
<a name="method-forpage"></a>
@@ -1281,7 +1281,7 @@ The `intersect` method removes any values from the original collection that are
12811281

12821282
// [0 => 'Desk', 2 => 'Chair']
12831283

1284-
> [!NOTE]
1284+
> [!NOTE]
12851285
> This method's behavior is modified when using [Eloquent Collections](/docs/{{version}}/eloquent-collections#method-intersect).
12861286
12871287
<a name="method-intersectAssoc"></a>
@@ -1470,7 +1470,7 @@ The `map` method iterates through the collection and passes each value to the gi
14701470

14711471
// [2, 4, 6, 8, 10]
14721472

1473-
> [!WARNING]
1473+
> [!WARNING]
14741474
> Like most other collection methods, `map` returns a new collection instance; it does not modify the collection it is called on. If you want to transform the original collection, use the [`transform`](#method-transform) method.
14751475
14761476
<a name="method-mapinto"></a>
@@ -1750,7 +1750,7 @@ The `only` method returns the items in the collection with the specified keys:
17501750

17511751
For the inverse of `only`, see the [except](#method-except) method.
17521752

1753-
> [!NOTE]
1753+
> [!NOTE]
17541754
> This method's behavior is modified when using [Eloquent Collections](/docs/{{version}}/eloquent-collections#method-only).
17551755
17561756
<a name="method-pad"></a>
@@ -2322,7 +2322,7 @@ You may also pass a simple value to the `skipUntil` method to skip all items unt
23222322

23232323
// [3, 4]
23242324

2325-
> [!WARNING]
2325+
> [!WARNING]
23262326
> If the given value is not found or the callback never returns `true`, the `skipUntil` method will return an empty collection.
23272327
23282328
<a name="method-skipwhile"></a>
@@ -2340,7 +2340,7 @@ The `skipWhile` method skips over items from the collection while the given call
23402340

23412341
// [4]
23422342

2343-
> [!WARNING]
2343+
> [!WARNING]
23442344
> If the callback never returns `false`, the `skipWhile` method will return an empty collection.
23452345
23462346
<a name="method-slice"></a>
@@ -2449,7 +2449,7 @@ The `sort` method sorts the collection. The sorted collection keeps the original
24492449

24502450
If your sorting needs are more advanced, you may pass a callback to `sort` with your own algorithm. Refer to the PHP documentation on [`uasort`](https://secure.php.net/manual/en/function.uasort.php#refsect1-function.uasort-parameters), which is what the collection's `sort` method calls utilizes internally.
24512451

2452-
> [!NOTE]
2452+
> [!NOTE]
24532453
> If you need to sort a collection of nested arrays or objects, see the [`sortBy`](#method-sortby) and [`sortByDesc`](#method-sortbydesc) methods.
24542454
24552455
<a name="method-sortby"></a>
@@ -2793,7 +2793,7 @@ You may also pass a simple value to the `takeUntil` method to get the items unti
27932793

27942794
// [1, 2]
27952795

2796-
> [!WARNING]
2796+
> [!WARNING]
27972797
> If the given value is not found or the callback never returns `true`, the `takeUntil` method will return all items in the collection.
27982798
27992799
<a name="method-takewhile"></a>
@@ -2811,7 +2811,7 @@ The `takeWhile` method returns items in the collection until the given callback
28112811

28122812
// [1, 2]
28132813

2814-
> [!WARNING]
2814+
> [!WARNING]
28152815
> If the callback never returns `false`, the `takeWhile` method will return all items in the collection.
28162816
28172817
<a name="method-tap"></a>
@@ -2856,7 +2856,7 @@ The `toArray` method converts the collection into a plain PHP `array`. If the co
28562856
]
28572857
*/
28582858

2859-
> [!WARNING]
2859+
> [!WARNING]
28602860
> `toArray` also converts all of the collection's nested objects that are an instance of `Arrayable` to an array. If you want to get the raw array underlying the collection, use the [`all`](#method-all) method instead.
28612861
28622862
<a name="method-tojson"></a>
@@ -2885,7 +2885,7 @@ The `transform` method iterates over the collection and calls the given callback
28852885

28862886
// [2, 4, 6, 8, 10]
28872887

2888-
> [!WARNING]
2888+
> [!WARNING]
28892889
> Unlike most other collection methods, `transform` modifies the collection itself. If you wish to create a new collection instead, use the [`map`](#method-map) method.
28902890
28912891
<a name="method-undot"></a>
@@ -2989,7 +2989,7 @@ Finally, you may also pass your own closure to the `unique` method to specify wh
29892989

29902990
The `unique` method uses "loose" comparisons when checking item values, meaning a string with an integer value will be considered equal to an integer of the same value. Use the [`uniqueStrict`](#method-uniquestrict) method to filter using "strict" comparisons.
29912991

2992-
> [!NOTE]
2992+
> [!NOTE]
29932993
> This method's behavior is modified when using [Eloquent Collections](/docs/{{version}}/eloquent-collections#method-unique).
29942994
29952995
<a name="method-uniquestrict"></a>
@@ -3498,7 +3498,7 @@ Likewise, we can use the `sum` higher order message to gather the total number o
34983498
<a name="lazy-collection-introduction"></a>
34993499
### Introduction
35003500

3501-
> [!WARNING]
3501+
> [!WARNING]
35023502
> Before learning more about Laravel's lazy collections, take some time to familiarize yourself with [PHP generators](https://www.php.net/manual/en/language.generators.overview.php).
35033503
35043504
To supplement the already powerful `Collection` class, the `LazyCollection` class leverages PHP's [generators](https://www.php.net/manual/en/language.generators.overview.php) to allow you to work with very large datasets while keeping memory usage low.
@@ -3689,7 +3689,7 @@ Almost all methods available on the `Collection` class are also available on the
36893689

36903690
</div>
36913691

3692-
> [!WARNING]
3692+
> [!WARNING]
36933693
> Methods that mutate the collection (such as `shift`, `pop`, `prepend` etc.) are **not** available on the `LazyCollection` class.
36943694
36953695
<a name="lazy-collection-methods"></a>

configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Laravel's default `.env` file contains some common configuration values that may
5151

5252
If you are developing with a team, you may wish to continue including and updating the `.env.example` file with your application. By putting placeholder values in the example configuration file, other developers on your team can clearly see which environment variables are needed to run your application.
5353

54-
> [!NOTE]
54+
> [!NOTE]
5555
> Any variable in your `.env` file can be overridden by external environment variables such as server-level or system-level environment variables.
5656
5757
<a name="environment-file-security"></a>

container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Sometimes you may have two classes that utilize the same interface, but you wish
231231
Sometimes you may have a class that receives some injected classes, but also needs an injected primitive value such as an integer. You may easily use contextual binding to inject any value your class may need:
232232

233233
use App\Http\Controllers\UserController;
234-
234+
235235
$this->app->when(UserController::class)
236236
->needs('$variableName')
237237
->give($value);

context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public function boot(): void
318318
}
319319
```
320320

321-
> [!NOTE]
321+
> [!NOTE]
322322
> You should not use the `Context` facade within the `dehydrating` callback, as that will change the context of the current process. Ensure you only make changes to the repository passed to the callback.
323323
324324
<a name="hydrated"></a>
@@ -346,5 +346,5 @@ public function boot(): void
346346
}
347347
```
348348

349-
> [!NOTE]
349+
> [!NOTE]
350350
> You should not use the `Context` facade within the `hydrated` callback and instead ensure you only make changes to the repository passed to the callback.

controllers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Let's take a look at an example of a basic controller. A controller may have any
3838
<?php
3939

4040
namespace App\Http\Controllers;
41-
41+
4242
use App\Models\User;
4343
use Illuminate\View\View;
4444

database-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Assert that a table in the database does not contain records matching the given
220220
The `assertSoftDeleted` method may be used to assert a given Eloquent model has been "soft deleted":
221221

222222
$this->assertSoftDeleted($user);
223-
223+
224224
<a name="assert-not-deleted"></a>
225225
#### assertNotSoftDeleted
226226

database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ By default, foreign key constraints are enabled for SQLite connections. If you w
5050
DB_FOREIGN_KEYS=false
5151
```
5252

53-
> [!NOTE]
53+
> [!NOTE]
5454
> If you use the [Laravel installer](/docs/{{version}}/installation#creating-a-laravel-project) to create your Laravel application and select SQLite as your database, Laravel will automatically create a `database/database.sqlite` file and run the default [database migrations](/docs/{{version}}/migrations) for you.
5555
5656
<a name="mssql-configuration"></a>

0 commit comments

Comments
 (0)