Code Duplication    Length = 3-3 lines in 3 locations

application/views/TitleHistory.php 1 location

@@ 39-41 (lines=3) @@
36
			</a>
37
		</li>
38
39
		<?php foreach(range(1, $totalPages) as $page) { ?>
40
		<li class="page-item <?=($currentPage == $page ? 'active' : '')?>"><a class="page-link" href="<?=base_url("user/history/{$page}")?>"><?=$page?></a></li>
41
		<?php } ?>
42
43
		<li class="page-item <?=(($currentPage == 1 || $currentPage == $totalPages) ? 'disabled' : '')?>">
44
			<a class="page-link" href="<?=base_url("user/history/".($currentPage + 1))?>" aria-label="Next">

application/views/User/History.php 1 location

@@ 48-50 (lines=3) @@
45
			</a>
46
		</li>
47
48
		<?php foreach(range(1, $totalPages) as $page) { ?>
49
		<li class="page-item <?=($currentPage == $page ? 'active' : '')?>"><a class="page-link" href="<?=base_url("user/history/{$page}")?>"><?=$page?></a></li>
50
		<?php } ?>
51
52
		<li class="page-item <?=(($currentPage == 1 || $currentPage == $totalPages) ? 'disabled' : '')?>">
53
			<a class="page-link" href="<?=base_url("user/history/".($currentPage + 1))?>" aria-label="Next">

application/views/User/Favourites.php 1 location

@@ 48-50 (lines=3) @@
45
				<span class="sr-only">Previous</span>
46
			</a>
47
		</li>
48
		<?php foreach(range(1, $totalPages) as $page) { ?>
49
		<li class="page-item <?=($currentPage == $page ? 'active' : '')?>"><a class="page-link" href="<?=base_url("user/favourites/{$page}")?>"><?=$page?></a></li>
50
		<?php } ?>
51
		<li class="page-item <?=($currentPage == $totalPages ? 'disabled' : '')?>">
52
			<a class="page-link" href="#" aria-label="Next">
53
				<span aria-hidden="true">&raquo;</span>