| Conditions | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 12 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | const ApiService = Shopware.Classes.ApiService; |
||
| 17 | generateCodeFixed() { |
||
| 18 | const headers = this.getBasicHeaders(); |
||
| 19 | |||
| 20 | return this.httpClient.get( |
||
| 21 | `/_action/${this.getApiBasePath()}/codes/generate-fixed`, |
||
| 22 | { |
||
| 23 | headers |
||
| 24 | } |
||
| 25 | ).then((response) => { |
||
| 26 | return ApiService.handleResponse(response); |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.