1 | <?php |
||
15 | class ImageHandler extends FileHandler |
||
16 | { |
||
17 | protected $aviaryApiKey; |
||
18 | |||
19 | /** |
||
20 | * @param int $priority |
||
21 | * @param MimeTypeGuesserFactoryInterface|MimeTypesInterface $mimeTypeGuesserFactory |
||
|
|||
22 | * @param ExtensionGuesserFactoryInterface|null $extensionGuesserFactoryInterface |
||
23 | * @param string $aviaryApiKey |
||
24 | */ |
||
25 | 1 | public function __construct($priority, $mimeTypeGuesser, $extensionGuesser, $aviaryApiKey) |
|
30 | |||
31 | /** |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getAviaryApiKey() |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getName() |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getType() |
||
54 | |||
55 | /** |
||
56 | * @param mixed $object |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function canHandle($object) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function getShowTemplate(Media $media) |
||
76 | |||
77 | /** |
||
78 | * @param Media $media The media entity |
||
79 | * @param string $basepath The base path |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getImageUrl(Media $media, $basepath) |
||
87 | |||
88 | /** |
||
89 | * @param Media $media |
||
90 | */ |
||
91 | 1 | public function prepareMedia(Media $media) |
|
108 | } |
||
109 |
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
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.