| 1 | <?php |
||
| 10 | class File extends Field |
||
| 11 | { |
||
| 12 | protected $type = 'upload'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Editor instance. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $editor = 'editor'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $name |
||
| 23 | * @param string $label |
||
| 24 | * @return \Yajra\DataTables\Html\Editor\Fields\Field|static |
||
| 25 | */ |
||
| 26 | public static function make($name, $label = '') |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Set editor instance for file upload. |
||
| 33 | * |
||
| 34 | * @param string $editor |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | public function editor($editor) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Display image upon upload. |
||
| 46 | * |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | public function displayImage() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $label |
||
|
|
|||
| 56 | * @return $this |
||
| 57 | */ |
||
| 58 | public function display($value) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Display the file path. |
||
| 67 | * |
||
| 68 | * @return $this |
||
| 69 | */ |
||
| 70 | public function displayFile() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @param string $value |
||
| 77 | * @return $this |
||
| 78 | */ |
||
| 79 | public function clearText($value = 'Clear') |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @param string $value |
||
| 88 | * @return $this |
||
| 89 | */ |
||
| 90 | public function noImageText($value = 'No image') |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @param bool $state |
||
| 99 | * @return $this |
||
| 100 | */ |
||
| 101 | public function multiple($state = true) |
||
| 109 | } |
||
| 110 |
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.