| 1 | <?php |
||
| 16 | abstract class Loader |
||
| 17 | { |
||
| 18 | use \DraperStudio\ServiceProvider\FilesTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The filesystem instance. |
||
| 22 | * |
||
| 23 | * @var \Illuminate\Filesystem\Filesystem |
||
| 24 | */ |
||
| 25 | protected $files; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The path to the application's packages. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $packagePath; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Create a new publisher instance. |
||
| 36 | * |
||
| 37 | * @param \Illuminate\Filesystem\Filesystem $files |
||
| 38 | * @param string $publishPath |
||
|
|
|||
| 39 | */ |
||
| 40 | public function __construct(Filesystem $files) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Publish files from a given path. |
||
| 47 | * |
||
| 48 | * @param string $package |
||
| 49 | * @param string $source |
||
| 50 | * |
||
| 51 | * @return bool |
||
| 52 | */ |
||
| 53 | public function getFileList($package) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Set the default package path. |
||
| 60 | * |
||
| 61 | * @param string $packagePath |
||
| 62 | */ |
||
| 63 | public function setPackagePath($packagePath) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Get the source directory to publish. |
||
| 70 | * |
||
| 71 | * @param string $packagePath |
||
| 72 | * |
||
| 73 | * @return string |
||
| 74 | * |
||
| 75 | * @throws \InvalidArgumentException |
||
| 76 | */ |
||
| 77 | abstract protected function getSource($packagePath); |
||
| 78 | } |
||
| 79 |
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.