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 210 to 229
210        
211        return (int)$totalPages;
212    }
213    
214    /**
215     * ページをHashで返す
216     * @param int $visiblePages ページングナビのページ番号の数
217     * @return hash[] ページのhash表現を配列で
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.
219
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) {
220        if(!isset($visiblePages)) {
221            $visiblePages = $this->visiblePages;
222        }
223        $totalPages = $this->getTotalPageNums();
224        $currentPageNo = $this->currentPageNo;
225        // カレントページのチェック
226        if($currentPageNo > $totalPages) {
227            $currentPageNo = $this->currentPageNo = $totalPages;
228        }
229