| 1 | <?php |
||
| 10 | class File extends Field |
||
| 11 | { |
||
| 12 | protected $type = 'upload'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $name |
||
| 16 | * @param string $label |
||
| 17 | * @return \Yajra\DataTables\Html\Editor\Fields\Field|static |
||
| 18 | */ |
||
| 19 | public static function make($name, $label = '') |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Display image upon upload. |
||
| 26 | * |
||
| 27 | * @return $this |
||
| 28 | */ |
||
| 29 | public function displayImage() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $label |
||
|
|
|||
| 36 | * @return $this |
||
| 37 | */ |
||
| 38 | public function display($value) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Display the file path. |
||
| 47 | * |
||
| 48 | * @return $this |
||
| 49 | */ |
||
| 50 | public function displayFile() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param string $value |
||
| 57 | * @return $this |
||
| 58 | */ |
||
| 59 | public function clearText($value = 'Clear') |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @param string $value |
||
| 68 | * @return $this |
||
| 69 | */ |
||
| 70 | public function noImageText($value = 'No image') |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @param bool $state |
||
| 79 | * @return $this |
||
| 80 | */ |
||
| 81 | public function multiple($state = true) |
||
| 89 | } |
||
| 90 |
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.