| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | interface StatisticsInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Add a step and measure the input size. |
||
| 9 | * |
||
| 10 | * @param string $inputSize |
||
| 11 | * @param string $keyname |
||
|
|
|||
| 12 | * |
||
| 13 | * @return array |
||
| 14 | */ |
||
| 15 | public function createReferencePoint($inputSize, $keyname = null); |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Get all the steps which are measured. |
||
| 19 | * |
||
| 20 | * @return array |
||
| 21 | */ |
||
| 22 | public function getReferencePoints(); |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get the total saved bytes in bytes. |
||
| 26 | * |
||
| 27 | * @return int |
||
| 28 | */ |
||
| 29 | public function getTotalSavedBytes(); |
||
| 30 | } |
||
| 31 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.