| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function getFormattedDescription() |
||
| 44 | { |
||
| 45 | $bad_descr = array( |
||
| 46 | 'GenuineIntel:', |
||
| 47 | 'AuthenticAMD:', |
||
| 48 | 'Intel(R)', |
||
| 49 | 'CPU', |
||
| 50 | '(R)', |
||
| 51 | '(tm)', |
||
| 52 | ); |
||
| 53 | |||
| 54 | $descr = str_replace($bad_descr, '', $this->processor_descr); |
||
|
|
|||
| 55 | |||
| 56 | // reduce extra spaces |
||
| 57 | $descr = str_replace(' ', ' ', $descr); |
||
| 58 | |||
| 59 | return $descr; |
||
| 60 | } |
||
| 61 | |||
| 80 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.