| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 30.76% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Metaboxes |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @param int $postId |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | 1 | public function saveAssignedToMetabox( $postId ) |
|
| 15 | { |
||
| 16 | 1 | if( !wp_verify_nonce( glsr( Helper::class )->filterInput( '_nonce-assigned-to' ), 'assigned_to' ))return; |
|
| 17 | $assignedTo = strval( glsr( Helper::class )->filterInput( 'assigned_to' )); |
||
| 18 | if( get_post_meta( $postId, 'assigned_to', true ) != $assignedTo ) { |
||
| 19 | $review = glsr( ReviewManager::class )->single( get_post( $postId )); |
||
|
|
|||
| 20 | glsr( CountsManager::class )->decreasePostCounts( $review ); |
||
| 21 | } |
||
| 22 | update_post_meta( $postId, 'assigned_to', $assignedTo ); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param int $postId |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | 1 | public function saveResponseMetabox( $postId ) |
|
| 37 | ]))); |
||
| 38 | } |
||
| 40 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths