Skip to content

Commit a5a8486

Browse files
committed
Add trailing commas to array elements to maintain consistency and make for prettier commits on users end
Trailing commas for array elements have become an standard because they allow other elements to be appended to the array and make for prettier (and more practical) diff messages. Trailing commas where already used on other place for the documentation.
1 parent 4f7547a commit a5a8486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/getting-started/laravel-5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this line to the `aliases` array:
2121

2222
Add the following line to your `app/Http/Kernel.php` file in the `$middleware` array
2323
```php
24-
\LucaDegasperi\OAuth2Server\Middleware\OAuthExceptionHandlerMiddleware::class
24+
\LucaDegasperi\OAuth2Server\Middleware\OAuthExceptionHandlerMiddleware::class,
2525
```
2626
This will catch any OAuth error and respond appropriately.
2727

@@ -30,7 +30,7 @@ Then add
3030
'oauth' => \LucaDegasperi\OAuth2Server\Middleware\OAuthMiddleware::class,
3131
'oauth-user' => \LucaDegasperi\OAuth2Server\Middleware\OAuthUserOwnerMiddleware::class,
3232
'oauth-client' => \LucaDegasperi\OAuth2Server\Middleware\OAuthClientOwnerMiddleware::class,
33-
'check-authorization-params' => \LucaDegasperi\OAuth2Server\Middleware\CheckAuthCodeRequestMiddleware::class
33+
'check-authorization-params' => \LucaDegasperi\OAuth2Server\Middleware\CheckAuthCodeRequestMiddleware::class,
3434
```
3535
to the `$routeMiddleware` array.
3636

0 commit comments

Comments
 (0)