Skip to content

Commit

Permalink
Minor linting fixes for the docs
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Feb 6, 2024
1 parent a702bed commit c685ef5
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/book/v1/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ Two versions exist:

You can manually decorate callable middleware using these decorators, or simply
let `MiddlewarePipe` do the work for you. To let `MiddlewarePipe` handle this,
however, you _must_ compose a response prototype prior to piping middleware
however, you *must* compose a response prototype prior to piping middleware
using the legacy middleware signature.

## Delegates
Expand Down
4 changes: 2 additions & 2 deletions docs/book/v1/executing-middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ $app = new MiddlewarePipe(); // Middleware representing the application
$app->pipe('/api', $api); // API middleware attached to the path "/api"
```

<!-- markdownlint-disable-next-line header-increment -->
> ### Request path changes when path matched
<!-- markdownlint-disable-next-line heading-increment -->
> ## Request path changes when path matched
>
> When you pipe middleware using a path (other than '' or '/'), the middleware
> is dispatched with a request that strips the matched segment(s) from the start
Expand Down
2 changes: 1 addition & 1 deletion docs/book/v1/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ this point, a "final handler" is composed by default to report 404 status.
So, concisely put, _middleware are PHP callables that accept a request and
response object, and do something with it_.

<!-- markdownlint-disable-next-line header-increment -->
<!-- markdownlint-disable-next-line heading-increment -->
> ### http-interop middleware
>
> The above example demonstrates the legacy (pre-1.3.0) signature for
Expand Down
2 changes: 1 addition & 1 deletion docs/book/v2/executing-middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $app = new MiddlewarePipe(); // Middleware representing the application
$app->pipe('/api', $api); // API middleware attached to the path "/api"
```

<!-- markdownlint-disable-next-line header-increment -->
<!-- markdownlint-disable-next-line heading-increment -->
> ### Request path changes when path matched
>
> When you pipe middleware using a path (other than '' or '/'), the middleware
Expand Down
2 changes: 1 addition & 1 deletion docs/book/v2/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ this point, a "final handler" is composed by default to report 404 status.
So, concisely put, _middleware are PHP callables that accept a request object,
and do something with it_.

<!-- markdownlint-disable-next-line header-increment -->
<!-- markdownlint-disable-next-line heading-increment -->
> ### http-interop middleware
>
> The above example demonstrates the using the interfaces from the http-interop
Expand Down
2 changes: 1 addition & 1 deletion docs/book/v2/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ class PingMiddleware implements ServerMiddlewareInterface

> ### Implementing http-interop between Stratigility 1.3 and 2.0
>
> While you _can_ write your middleware to implement the
> While you *can* write your middleware to implement the
> http-interop/http-middleware middleware interface, please be aware that if you
> do so, you will need to take additional steps when upgrading from 1.3 to 2.0.
>
Expand Down
2 changes: 1 addition & 1 deletion docs/book/v3/executing-middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $app = new MiddlewarePipe(); // Middleware representing the application
$app->pipe(new PathMiddlewareDecorator('/api', $api)); // API middleware attached to the path "/api"
```

<!-- markdownlint-disable-next-line header-increment -->
<!-- markdownlint-disable-next-line heading-increment -->
> ### Request path changes when path matched
>
> When you use the `PathMiddlewareDecorator` using a path (other than '' or
Expand Down
2 changes: 1 addition & 1 deletion docs/book/v3/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Middleware is code that exists between the request and response, and which can
take the incoming request, perform actions based on it, and either complete the
response or pass delegation on to the next middleware in the queue.

<!-- markdownlint-disable-next-line header-increment -->
<!-- markdownlint-disable-next-line heading-increment -->
> ### Installation requirements
>
> The following example depends on the [laminas-httphandlerrunner](http://docs.laminas.dev/laminas-httphandlerrunner)
Expand Down
2 changes: 2 additions & 0 deletions docs/book/v3/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
In this document, we outline the backwards breaking changes with version 3.0,
and provide guidance on how to upgrade your application to be compatible.

<!-- markdownlint-disable link-fragments -->
- [PHP support](#php-support)
- [PSR-15](#psr-15)
- [Pipeline (`MiddlewarePipe`)](#pipeline-middlewarepipe)
Expand All @@ -12,6 +13,7 @@ and provide guidance on how to upgrade your application to be compatible.
- [Removed classes and exceptions](#removed-classes-and-exceptions)
- [Removed methods](#removed-methods)
- [Function additions](#function-additions)
<!-- markdownlint-enable link-fragments -->

## PHP support

Expand Down
2 changes: 1 addition & 1 deletion docs/book/v3/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Usage

<!-- markdownlint-disable-next-line header-increment -->
<!-- markdownlint-disable-next-line heading-increment -->
> ### Installation requirements
>
> The following example depends on the [laminas-httphandlerrunner](http://docs.laminas.dev/laminas-httphandlerrunner)
Expand Down

0 comments on commit c685ef5

Please sign in to comment.