1 | <?php |
||
15 | class ImageHandler extends FileHandler |
||
16 | { |
||
17 | /** |
||
18 | * @deprecated This property is deprecated since KunstmaanMediaBundle 5.7 and will be removed in KunstmaanMediaBundle 6.0. The aviary service is discontinued. |
||
19 | */ |
||
20 | protected $aviaryApiKey; |
||
21 | |||
22 | /** |
||
23 | * @param int $priority |
||
24 | * @param MimeTypeGuesserFactoryInterface|MimeTypesInterface $mimeTypeGuesserFactory |
||
|
|||
25 | * @param ExtensionGuesserFactoryInterface|null $extensionGuesserFactoryInterface |
||
26 | * @param string $aviaryApiKey |
||
27 | */ |
||
28 | 1 | public function __construct($priority, $mimeTypeGuesser, $extensionGuesser, $aviaryApiKey = null) |
|
29 | { |
||
30 | 1 | parent::__construct($priority, $mimeTypeGuesser, $extensionGuesser); |
|
31 | |||
32 | 1 | if (null !== $aviaryApiKey) { |
|
33 | @trigger_error(sprintf('Passing a value for the "$aviaryApiKey" constructor parameter of "%s" is deprecated since KunstmaanMediaBundle 5.7 and will be removed in KunstmaanMediaBundle 6.0. The aviary service is discontinued.', __CLASS__), E_USER_DEPRECATED); |
||
34 | } |
||
35 | 1 | $this->aviaryApiKey = $aviaryApiKey; |
|
36 | 1 | } |
|
37 | |||
38 | /** |
||
39 | * @deprecated This method is deprecated since KunstmaanMediaBundle 5.7 and will be removed in KunstmaanMediaBundle 6.0. The aviary service is discontinued. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getAviaryApiKey() |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getName() |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getType() |
||
65 | |||
66 | /** |
||
67 | * @param mixed $object |
||
68 | * |
||
69 | * @return bool |
||
70 | */ |
||
71 | public function canHandle($object) |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function getShowTemplate(Media $media) |
||
87 | |||
88 | /** |
||
89 | * @param Media $media The media entity |
||
90 | * @param string $basepath The base path |
||
91 | * |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getImageUrl(Media $media, $basepath) |
||
98 | |||
99 | /** |
||
100 | * @param Media $media |
||
101 | */ |
||
102 | 1 | public function prepareMedia(Media $media) |
|
119 | } |
||
120 |
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.