| Total Complexity | 2 |
| Complexity/F | 2 |
| Lines of Code | 28 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import template from './sw-extension-review.html.twig'; |
||
| 2 | import './sw-extension-review.scss'; |
||
| 3 | |||
| 4 | const { date } = Shopware.Utils.format; |
||
|
|
|||
| 5 | |||
| 6 | const { Component } = Shopware; |
||
| 7 | |||
| 8 | Component.register('sw-extension-review', { |
||
| 9 | template, |
||
| 10 | |||
| 11 | props: { |
||
| 12 | review: { |
||
| 13 | type: Object, |
||
| 14 | required: true |
||
| 15 | }, |
||
| 16 | |||
| 17 | producerName: { |
||
| 18 | type: String, |
||
| 19 | required: true |
||
| 20 | } |
||
| 21 | }, |
||
| 22 | |||
| 23 | computed: { |
||
| 24 | lastChangeDate() { |
||
| 25 | return this.review.lastChangeDate !== null ? date(this.review.lastChangeDate) : null; |
||
| 26 | } |
||
| 27 | } |
||
| 28 | }); |
||
| 29 |
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.