| 1 | <?php |
||
| 13 | class File extends Handler |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Returns the files contents |
||
| 17 | * |
||
| 18 | * @return string |
||
| 19 | */ |
||
| 20 | 1 | public function getContents() |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Appends data to a file |
||
| 27 | * |
||
| 28 | * @param string $data |
||
| 29 | * |
||
| 30 | * @return boolean |
||
| 31 | */ |
||
| 32 | 1 | public function append($data) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Updates a file |
||
| 41 | * |
||
| 42 | * @param string $data |
||
| 43 | * |
||
| 44 | * @return boolean |
||
| 45 | */ |
||
| 46 | 1 | public function update($data) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * Copies a file |
||
| 55 | * |
||
| 56 | * @param string $destination |
||
| 57 | * |
||
| 58 | * @return boolean |
||
| 59 | */ |
||
| 60 | 1 | public function copyTo($destination) |
|
| 64 | |||
| 65 | /** |
||
| 66 | * Returns the file size |
||
| 67 | * |
||
| 68 | * @param string $destination |
||
|
|
|||
| 69 | * |
||
| 70 | * @return boolean |
||
| 71 | */ |
||
| 72 | 1 | public function getSize() |
|
| 76 | |||
| 77 | /** |
||
| 78 | * Returns the mime-type |
||
| 79 | * |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | 1 | public function getMimeType() |
|
| 90 | } |
||
| 91 |
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.