Skip to content

Commit 34eb006

Browse files
authored
Trim trailing whitespace (laravel#7558)
1 parent c719d3b commit 34eb006

15 files changed

+31
-31
lines changed

billing.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ For this feature to work properly, your customer's billing details, such as the
195195
Cashier allows you to specify the log channel to be used when logging fatal Stripe errors. You may specify the log channel by defining the `CASHIER_LOGGER` environment variable within your application's `.env` file:
196196

197197
CASHIER_LOGGER=stack
198-
198+
199199
Exceptions that are generated by API calls to Stripe will be logged through your application's default log channel.
200200

201201
<a name="using-custom-models"></a>
@@ -276,7 +276,7 @@ To credit a customer's balance, you may provide a negative value to the `applyBa
276276
$user->applyBalance(-500, 'Premium customer top-up.');
277277

278278
Providing a positive value to the `applyBalance` method will debit the customer's balance:
279-
279+
280280
$user->applyBalance(300, 'Bad usage penalty.');
281281

282282
The `applyBalance` method will create new customer balance transactions for the customer. You may retrieve these transaction records using the `balanceTransactions` method, which may be useful in order to provide a log of credits and debits for the customer to review:
@@ -297,7 +297,7 @@ The `applyBalance` method will create new customer balance transactions for the
297297

298298
Cashier offers an easy way to manage a customer's tax IDs. For example, the `taxIds` method may be used to retrieve all of the [tax IDs](https://stripe.com/docs/api/customer_tax_ids/object) that are assigned to a customer as a collection:
299299

300-
$taxIds = $user->taxIds();
300+
$taxIds = $user->taxIds();
301301

302302
You can also retrieve a specific tax ID for a customer by its identifier:
303303

@@ -1201,7 +1201,7 @@ If you wish to cancel a subscription immediately, call the `cancelNow` method on
12011201
If you wish to cancel a subscription immediately and invoice any remaining un-invoiced metered usage or new / pending proration invoice items, call the `cancelNowAndInvoice` method on the user's subscription:
12021202

12031203
$user->subscription('default')->cancelNowAndInvoice();
1204-
1204+
12051205
You may also choose to cancel the subscription at a specific moment in time:
12061206

12071207
$user->subscription('default')->cancelAt(
@@ -1850,7 +1850,7 @@ You may also use the `updateStripeSubscription` method to update a Stripe subscr
18501850
You may invoke the `stripe` method on the `Cashier` class if you would like to use the `Stripe\StripeClient` client directly. For example, you could use this method to access the `StripeClient` instance and retrieve a list of prices from your Stripe account:
18511851

18521852
use Laravel\Cashier\Cashier;
1853-
1853+
18541854
$prices = Cashier::stripe()->prices->all();
18551855

18561856
<a name="testing"></a>

blade.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ You may specify which attributes should be considered data variables using the `
10411041
Given the component definition above, we may render the component like so:
10421042

10431043
<x-alert type="error" :message="$message" class="mb-4"/>
1044-
1044+
10451045
<a name="accessing-parent-data"></a>
10461046
#### Accessing Parent Data
10471047

@@ -1051,7 +1051,7 @@ Sometimes you may want to access data from a parent component inside a child com
10511051
<x-menu.item>...</x-menu.item>
10521052
<x-menu.item>...</x-menu.item>
10531053
</x-menu>
1054-
1054+
10551055
The `<x-menu>` component may have an implementation like the following:
10561056

10571057
<!-- /resources/views/components/menu/index.blade.php -->

broadcasting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ Alternatively, you may specify the event's broadcast connection by calling the `
677677
class OrderShipmentStatusUpdated implements ShouldBroadcast
678678
{
679679
use InteractsWithBroadcasting;
680-
680+
681681
/**
682682
* Create a new event instance.
683683
*

cashier-paddle.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ Since Paddle webhooks need to bypass Laravel's [CSRF protection](/docs/{{version
935935
protected $except = [
936936
'paddle/*',
937937
];
938-
938+
939939
<a name="webhooks-local-development"></a>
940940
#### Webhooks & Local Development
941941

collections.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2082,9 +2082,9 @@ You may also pass a key / value pair to the `sole` method, which will return the
20822082
['product' => 'Desk', 'price' => 200],
20832083
['product' => 'Chair', 'price' => 100],
20842084
]);
2085-
2085+
20862086
$collection->sole('product', 'Chair');
2087-
2087+
20882088
// ['product' => 'Chair', 'price' => 100]
20892089

20902090
Alternatively, you may also call the `sole` method with no argument to get the first element in the collection if there is only one element:
@@ -2094,10 +2094,10 @@ Alternatively, you may also call the `sole` method with no argument to get the f
20942094
]);
20952095

20962096
$collection->sole();
2097-
2097+
20982098
// ['product' => 'Desk', 'price' => 200]
20992099

2100-
If there are no elements in the collection that should be returned by the `sole` method, an `\Illuminate\Collections\ItemNotFoundException` exception will be thrown. If there is more than one element that should be returned, an `\Illuminate\Collections\MultipleItemsFoundException` will be thrown.
2100+
If there are no elements in the collection that should be returned by the `sole` method, an `\Illuminate\Collections\ItemNotFoundException` exception will be thrown. If there is more than one element that should be returned, an `\Illuminate\Collections\MultipleItemsFoundException` will be thrown.
21012101

21022102
<a name="method-some"></a>
21032103
#### `some()` {.collection-method}

eloquent-resources.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ When the `preserveKeys` property is set to `true`, collection keys will be prese
166166
<a name="customizing-the-underlying-resource-class"></a>
167167
#### Customizing The Underlying Resource Class
168168

169-
Typically, the `$this->collection` property of a resource collection is automatically populated with the result of mapping each item of the collection to its singular resource class. The singular resource class is assumed to be the collection's class name without the trailing `Collection` portion of the class name. In addition, depending on your personal preference, the singular resource class may or may not be suffixed with `Resource`.
169+
Typically, the `$this->collection` property of a resource collection is automatically populated with the result of mapping each item of the collection to its singular resource class. The singular resource class is assumed to be the collection's class name without the trailing `Collection` portion of the class name. In addition, depending on your personal preference, the singular resource class may or may not be suffixed with `Resource`.
170170

171171
For example, `UserCollection` will attempt to map the given user instances into the `UserResource` resource. To customize this behavior, you may override the `$collects` property of your resource collection:
172172

eloquent.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ Flight::where('departed', true)
388388
->each->update(['departed' => false]);
389389
```
390390

391-
You may filter the results based on the descending order of the `id` using the `lazyByIdDesc` method.
391+
You may filter the results based on the descending order of the `id` using the `lazyByIdDesc` method.
392392

393393
<a name="cursors"></a>
394394
### Cursors

facades.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ All of Laravel's facades are defined in the `Illuminate\Support\Facades` namespa
1919

2020
use Illuminate\Support\Facades\Cache;
2121
use Illuminate\Support\Facades\Route;
22-
22+
2323
Route::get('/cache', function () {
2424
return Cache::get('key');
2525
});

http-tests.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ Sometimes, JSON responses returned by your application may contain arrays of obj
864864
"name": "Steve Schoger",
865865
"age": 55,
866866
"location": "Earth"
867-
},
867+
},
868868
{
869869
"name": "Mary Schoger",
870870
"age": 60,
@@ -1132,7 +1132,7 @@ You may also assert that a given key has a particular validation error message.
11321132
Assert that the response view contains given a piece of data:
11331133

11341134
$response->assertViewHas($key, $value = null);
1135-
1135+
11361136
Passing a closure as the second argument to the `assertViewHas` method will allow you to inspect and make assertions against a particular piece of view data:
11371137

11381138
$response->assertViewHas('user', function (User $user) {

mail.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ The `withSwiftMessage` method of the `Mailable` base class allows you to registe
475475
'Custom-Header', 'Header Value'
476476
);
477477
});
478-
478+
479479
return $this;
480480
}
481481

migrations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ The `tinyIncrements` method creates an auto-incrementing `UNSIGNED TINYINT` equi
778778
The `tinyInteger` method creates a `TINYINT` equivalent column:
779779

780780
$table->tinyInteger('votes');
781-
781+
782782
<a name="column-method-tinyText"></a>
783783
#### `tinyText()` {.collection-method}
784784

octane.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Finally, build your Sail images:
131131
Swoole supports a few additional configuration options that you may add to your `octane` configuration file if necessary. Because they rarely need to be modified, these options are not included in the default configuration file:
132132

133133
```php
134-
'swoole' => [
134+
'swoole' => [
135135
'options' => [
136136
'log_file' => storage_path('logs/swoole_http.log'),
137137
'package_max_length' => 10 * 1024 * 1024,

rate-limiting.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ The `Illuminate\Support\Facades\RateLimiter` facade may be used to interact with
3030
The `attempt` method returns `false` when the callback has no remaining attempts available; otherwise, the `attempt` method will return the callback's result or `true`. The first argument accepted by the `attempt` method is a rate limiter "key", which may be any string of your choosing that represents the action being rate limited:
3131

3232
use Illuminate\Support\Facades\RateLimiter;
33-
33+
3434
$executed = RateLimiter::attempt(
3535
'send-message:'.$user->id,
3636
$perMinute = 5,
3737
function() {
3838
// Send message...
3939
}
4040
);
41-
41+
4242
if (! $executed) {
4343
return 'Too many messages sent!';
4444
}
@@ -49,15 +49,15 @@ The `attempt` method returns `false` when the callback has no remaining attempts
4949
If you would like to manually interact with the rate limiter, a variety of other methods are available. For example, you may invoke the `tooManyAttempts` method to determine if a given rate limiter key has exceeded its maximum number of allowed attempts per minute:
5050

5151
use Illuminate\Support\Facades\RateLimiter;
52-
52+
5353
if (RateLimiter::tooManyAttempts('send-message:'.$user->id, $perMinute = 5)) {
5454
return 'Too many attempts!';
5555
}
5656

5757
Alternatively, you may use the `remaining` method to retrieve the number of attempts remaining for a given key. If a given key has retries remaining, you may invoke the `hit` method to increment the number of total attempts:
5858

5959
use Illuminate\Support\Facades\RateLimiter;
60-
60+
6161
if (RateLimiter::remaining('send-message:'.$user->id, $perMinute = 5)) {
6262
RateLimiter::hit('send-message:'.$user->id);
6363

@@ -94,8 +94,8 @@ You may reset the number of attempts for a given rate limiter key using the `cle
9494
public function read(Message $message)
9595
{
9696
$message->markAsRead();
97-
97+
9898
RateLimiter::clear('send-message:'.$message->user_id);
99-
99+
100100
return $message;
101101
}

scout.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ Then, set the `SCOUT_DRIVER` environment variable as well as your MeiliSearch `h
8282
MEILISEARCH_HOST=http://127.0.0.1:7700
8383
MEILISEARCH_KEY=masterKey
8484

85-
For more information regarding MeiliSearch, please consult the [MeiliSearch documentation](https://docs.meilisearch.com/learn/getting_started/quick_start.html).
85+
For more information regarding MeiliSearch, please consult the [MeiliSearch documentation](https://docs.meilisearch.com/learn/getting_started/quick_start.html).
8686

87-
In addition, you should ensure that you install a version of `meilisearch/meilisearch-php` that is compatible with your MeiliSearch binary version by reviewing [MeiliSearch's documentation regarding binary compatibility](https://github.com/meilisearch/meilisearch-php#-compatibility-with-meilisearch).
87+
In addition, you should ensure that you install a version of `meilisearch/meilisearch-php` that is compatible with your MeiliSearch binary version by reviewing [MeiliSearch's documentation regarding binary compatibility](https://github.com/meilisearch/meilisearch-php#-compatibility-with-meilisearch).
8888

8989
> {note} When upgrading Scout on an application that utilizes MeiliSearch, you should always [review any additional breaking changes](https://github.com/meilisearch/MeiliSearch/releases) to the MeiliSearch service itself.
9090
@@ -400,7 +400,7 @@ You may use the `whereIn` method to constrain results against a given set of val
400400
$orders = Order::search('Star Trek')->whereIn(
401401
'status', ['paid', 'open']
402402
)->get();
403-
403+
404404
Since a search index is not a relational database, more advanced "where" clauses are not currently supported.
405405

406406
<a name="pagination"></a>

urls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Once you have registered the middleware in your kernel, you may attach it to a r
138138
Route::post('/unsubscribe/{user}', function (Request $request) {
139139
// ...
140140
})->name('unsubscribe')->middleware('signed');
141-
141+
142142
<a name="responding-to-invalid-signed-routes"></a>
143143
#### Responding To Invalid Signed Routes
144144

0 commit comments

Comments
 (0)