File: Pager.php Lines 68 to 87
68 *     {if $pager->isLast()}
69 *         最後
70 *     {else}
71 *         <a href="{$lastPage.url}">最後</a>
72 *     {/if}
73 *
74 * @author y.kushida
75 * @version 0.1 R54
76 */
Type Class Description
pmd ExcessiveClassComplexity The class Pager has an overall complexity of 52 which is very high. The configured complexity threshold is 50.
77
Type Class Description
pmd ExcessiveClassComplexity The class Pager has an overall complexity of 52 which is very high. The configured complexity threshold is 50.
class Pager
78{
79    /**
80     * カレントページ
81     * @var integer
82     */
83    private $currentPageNo;
84    
85    /**
86     * ページ内件数
87     * @var integer
 
File: Pager.php Lines 209 to 228
209        
210        return (int)$totalPages;
211    }
212    
213    /**
214     * ページリストを返す
215     * @param int $visiblePages ページングナビのページ番号の数
216     * @return Page[]
217     */
Type Class Description
pmd CyclomaticComplexity The method getPages() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10.
pmd NPathComplexity The method getPages() has an NPath complexity of 7776. The configured NPath complexity threshold is 200.
218
Type Class Description
pmd CyclomaticComplexity The method getPages() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10.
pmd NPathComplexity The method getPages() has an NPath complexity of 7776. The configured NPath complexity threshold is 200.
    public function getPages($visiblePages=null) {
219        if(!isset($visiblePages)) {
220            $visiblePages = $this->visiblePages;
221        }
222        $totalPages = $this->getTotalPageNums();
223        $currentPageNo = $this->currentPageNo;
224        // カレントページのチェック
225        if($currentPageNo > $totalPages) {
226            $currentPageNo = $this->currentPageNo = $totalPages;
227        }
228