Carbon_Pagination_Item_Limiter::render()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
ccs 5
cts 5
cp 1
crap 1
rs 9.4285
1
<?php
2
/**
3
 * The Carbon Pagination limiter class.
4
 * Responsible for the limiter between page links.
5
 *
6
 * @uses Carbon_Pagination_Item
7
 */
8
class Carbon_Pagination_Item_Limiter extends Carbon_Pagination_Item {
9
10
	/**
11
	 * Render the item.
12
	 *
13
	 * @return string $html The HTML of the item.
14
	 */
15 2
	public function render() {
16 2
		$pagination = $this->get_collection()->get_pagination();
17
18 2
		$html = $pagination->get_limiter_html();
19 2
		$html = apply_filters( 'carbon_pagination_limiter', $html, $this );
20
21 2
		return $html;
22
	}
23
24
}