Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| Signed_With_Blog_Token | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| verify | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Automattic\Jetpack_Boost\REST_API\Permissions; |
| 4 | |
| 5 | use Automattic\Jetpack\Connection\Rest_Authentication; |
| 6 | use Automattic\Jetpack_Boost\REST_API\Contracts\Permission; |
| 7 | |
| 8 | class Signed_With_Blog_Token implements Permission { |
| 9 | |
| 10 | // $request is required to adhere to the contract. |
| 11 | //phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 12 | public function verify( $request ) { |
| 13 | |
| 14 | /** |
| 15 | * Filters the signed with blog token verification. |
| 16 | * |
| 17 | * @param bool $is_signed True if the request is signed with the blog token, false otherwise. |
| 18 | * |
| 19 | * @since 1.0.0 |
| 20 | */ |
| 21 | return apply_filters( |
| 22 | 'jetpack_boost_signed_with_blog_token_verify', |
| 23 | Rest_Authentication::is_signed_with_blog_token() |
| 24 | ); |
| 25 | } |
| 26 | } |