| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | function extgalleryNotifyIteminfo($category, $item_id) |
||
|
|
|||
| 27 | { |
||
| 28 | /** @var Extgallery\PublicPhotoHandler $photoHandler */ |
||
| 29 | /** @var Extgallery\Photo $photo */ |
||
| 30 | |||
| 31 | $photoHandler = Extgallery\Helper::getInstance()->getHandler('PublicPhoto'); |
||
| 32 | $photo = $photoHandler->getPhoto($item_id); |
||
| 33 | $item['name'] = $photo->getVar('photo_desc'); |
||
| 34 | $item['url'] = XOOPS_URL . '/modules/extgallery/public-album.php?id=' . $photo->getVar('photo_id'); |
||
| 35 | |||
| 36 | return $item; |
||
| 37 | } |
||
| 38 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.