Checks if the types of the passed arguments in a function/method call are compatible.
1 | <?php |
||
2 | /** |
||
3 | * New bookmarks river entry |
||
4 | * |
||
5 | * @package Bookmarks |
||
6 | */ |
||
7 | |||
8 | $item = elgg_extract('item', $vars); |
||
9 | if (!$item instanceof ElggRiverItem) { |
||
10 | return; |
||
11 | } |
||
12 | |||
13 | $object = $item->getObjectEntity(); |
||
14 | $vars['message'] = elgg_get_excerpt($object->description); |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
15 | $vars['attachments'] = elgg_view('output/url', ['href' => $object->address]); |
||
16 | |||
17 | echo elgg_view('river/elements/layout', $vars); |
||
18 |