| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | protected function getAdminGraphQLEndpoint(): string |
||
| 20 | { |
||
| 21 | $endpoint = parent::getAdminGraphQLEndpoint(); |
||
| 22 | if ($persistedQueryID = EditorHelpers::getEditingPostID()) { |
||
| 23 | $endpoint = \add_query_arg( |
||
| 24 | RequestParams::PERSISTED_QUERY_ID, |
||
| 25 | $persistedQueryID, |
||
| 26 | $endpoint |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | return $endpoint; |
||
| 30 | } |
||
| 32 |