Skip to content

Commit

Permalink
Add missing trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
u01jmg3 committed Jul 2, 2020
1 parent dd9e875 commit 5b20c87
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ The `diffAssoc` method compares the collection against another collection or a p
$collection = collect([
'color' => 'orange',
'type' => 'fruit',
'remain' => 6
'remain' => 6,
]);

$diff = $collection->diffAssoc([
Expand Down Expand Up @@ -765,7 +765,7 @@ You may optionally pass the function a "depth" argument:
['name' => 'iPhone 6S', 'brand' => 'Apple'],
],
'Samsung' => [
['name' => 'Galaxy S7', 'brand' => 'Samsung']
['name' => 'Galaxy S7', 'brand' => 'Samsung'],
],
]);

Expand Down Expand Up @@ -998,11 +998,11 @@ The `intersect` method removes any values from the original collection that are
The `intersectByKeys` method removes any keys from the original collection that are not present in the given `array` or collection:

$collection = collect([
'serial' => 'UX301', 'type' => 'screen', 'year' => 2009
'serial' => 'UX301', 'type' => 'screen', 'year' => 2009,
]);

$intersect = $collection->intersectByKeys([
'reference' => 'UX404', 'type' => 'tab', 'year' => 2011
'reference' => 'UX404', 'type' => 'tab', 'year' => 2011,
]);

$intersect->all();
Expand Down Expand Up @@ -1224,12 +1224,12 @@ The `mapWithKeys` method iterates through the collection and passes each value t
[
'name' => 'John',
'department' => 'Sales',
'email' => 'john@example.com'
'email' => 'john@example.com',
],
[
'name' => 'Jane',
'department' => 'Marketing',
'email' => 'jane@example.com'
'email' => 'jane@example.com',
]
]);

Expand Down Expand Up @@ -2268,7 +2268,7 @@ The `values` method returns a new collection with the keys reset to consecutive

$collection = collect([
10 => ['product' => 'Desk', 'price' => 200],
11 => ['product' => 'Desk', 'price' => 200]
11 => ['product' => 'Desk', 'price' => 200],
]);

$values = $collection->values();
Expand Down
4 changes: 2 additions & 2 deletions controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ You may register many resource controllers at once by passing an array to the `r

Route::resources([
'photos' => 'PhotoController',
'posts' => 'PostController'
'posts' => 'PostController',
]);

#### Actions Handled By Resource Controller
Expand Down Expand Up @@ -210,7 +210,7 @@ You may register many API resource controllers at once by passing an array to th

Route::apiResources([
'photos' => 'PhotoController',
'posts' => 'PostController'
'posts' => 'PostController',
]);

To quickly generate an API resource controller that does not include the `create` or `edit` methods, use the `--api` switch when executing the `make:controller` command:
Expand Down
2 changes: 1 addition & 1 deletion hashing.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You may hash a password by calling the `make` method on the `Hash` facade:
If you are using the Bcrypt algorithm, the `make` method allows you to manage the work factor of the algorithm using the `rounds` option; however, the default is acceptable for most applications:

$hashed = Hash::make('password', [
'rounds' => 12
'rounds' => 12,
]);

#### Adjusting The Argon2 Work Factor
Expand Down
2 changes: 1 addition & 1 deletion homestead.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ In order to use Minio you will need to adjust the S3 disk configuration in your
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'endpoint' => env('AWS_URL'),
'use_path_style_endpoint' => true
'use_path_style_endpoint' => true,
]

Finally, ensure your `.env` file has the following options:
Expand Down
4 changes: 2 additions & 2 deletions localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ All language files return an array of keyed strings. For example:
<?php

return [
'welcome' => 'Welcome to our application'
'welcome' => 'Welcome to our application',
];

> {note} For languages that differ by territory, you should name the language directories according to the ISO 15897. For example, "en_GB" should be used for British English rather than "en-gb".
Expand Down Expand Up @@ -83,7 +83,7 @@ All language files return an array of keyed strings. For example:
// resources/lang/en/messages.php

return [
'welcome' => 'Welcome to our application'
'welcome' => 'Welcome to our application',
];

<a name="using-translation-strings-as-keys"></a>
Expand Down
4 changes: 2 additions & 2 deletions queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -677,14 +677,14 @@ You may even insert several records into the table with a single call to `insert

DB::table('users')->insert([
['email' => 'taylor@example.com', 'votes' => 0],
['email' => 'dayle@example.com', 'votes' => 0]
['email' => 'dayle@example.com', 'votes' => 0],
]);

The `insertOrIgnore` method will ignore duplicate record errors while inserting records into the database:

DB::table('users')->insertOrIgnore([
['id' => 1, 'email' => 'taylor@example.com'],
['id' => 2, 'email' => 'dayle@example.com']
['id' => 2, 'email' => 'dayle@example.com'],
]);

#### Auto-Incrementing IDs
Expand Down
2 changes: 1 addition & 1 deletion responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ The `json` method will automatically set the `Content-Type` header to `applicati

return response()->json([
'name' => 'Abigail',
'state' => 'CA'
'state' => 'CA',
]);

If you would like to create a JSONP response, you may use the `json` method in combination with the `withCallback` method:
Expand Down
2 changes: 1 addition & 1 deletion sanctum.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ To get started, create a route that accepts the user's email / username, passwor
$request->validate([
'email' => 'required|email',
'password' => 'required',
'device_name' => 'required'
'device_name' => 'required',
]);

$user = User::where('email', $request->email)->first();
Expand Down

0 comments on commit 5b20c87

Please sign in to comment.