| 1 | <?php |
||
| 11 | class LobController extends Controller |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * LOB API KEY |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $apikey; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Instance of Lob |
||
| 21 | * @var object |
||
| 22 | */ |
||
| 23 | protected $lob; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Initialize Lob |
||
| 27 | */ |
||
| 28 | public function __construct() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get all delivery routes for this zip code |
||
| 36 | * @param string $zipcdode |
||
|
|
|||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | private function getRoutes($zipcode) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Return all data to the Lob API dashboard |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | public function getPage() |
||
| 56 | } |
||
| 57 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.