Checks if the types of the passed arguments in a function/method call are compatible.
1 | <?php |
||
2 | /** |
||
3 | * Render an excerpt of the description |
||
4 | * |
||
5 | * @uses $vars['item'] The item being rendered |
||
6 | * @uses $vars['item_vars'] Vars received from the page/components/table view |
||
7 | * @uses $vars['type'] The item type or "" |
||
8 | * @uses $vars['length'] The excerpt length |
||
9 | */ |
||
10 | |||
11 | $item = $vars['item']; |
||
12 | /* @var ElggEntity $item */ |
||
13 | |||
14 | $length = elgg_extract('length', $vars, 250); |
||
15 | |||
16 | $description = $item->description; |
||
17 | |||
18 | echo elgg_get_excerpt($description, $excerpt_length); |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
19 |