| 1 | <?php |
||
| 5 | class Cursor |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Move the cursor up in the terminal x number of lines. |
||
| 9 | * |
||
| 10 | * @param int $lines |
||
| 11 | * |
||
| 12 | * @return string |
||
| 13 | */ |
||
| 14 | 120 | public function up($lines = 1) |
|
| 18 | |||
| 19 | /** |
||
| 20 | * Move the cursor down in the terminal x number of lines. |
||
| 21 | * |
||
| 22 | * @param int $lines |
||
| 23 | * |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | 16 | public function down($lines = 1) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Move the cursor right in the terminal x number of columns. |
||
| 33 | * |
||
| 34 | * @param int $cols |
||
|
|
|||
| 35 | * |
||
| 36 | 120 | * @return string |
|
| 37 | */ |
||
| 38 | 120 | public function right($columns = 1) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Move the cursor left in the terminal x number of columns. |
||
| 45 | * |
||
| 46 | 104 | * @param int $cols |
|
| 47 | * |
||
| 48 | 104 | * @return string |
|
| 49 | */ |
||
| 50 | public function left($cols = 1) |
||
| 54 | |||
| 55 | /** |
||
| 56 | 16 | * Move cursor to the beginning of the current line. |
|
| 57 | * |
||
| 58 | 16 | * @return string |
|
| 59 | */ |
||
| 60 | public function startOfCurrentLine() |
||
| 64 | |||
| 65 | /** |
||
| 66 | 16 | * Delete the current line to the end. |
|
| 67 | * |
||
| 68 | 16 | * @return string |
|
| 69 | */ |
||
| 70 | public function deleteCurrentLine() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Get the style for hiding the cursor |
||
| 77 | * |
||
| 78 | * @return string |
||
| 79 | */ |
||
| 80 | public function hide() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Get the style for returning the cursor to its default |
||
| 87 | * |
||
| 88 | * @return string |
||
| 89 | */ |
||
| 90 | public function defaultStyle() |
||
| 94 | } |
||
| 95 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.