public static function getPagesCount($linesNumber, $divider) {
        if ($linesNumber < 0 || $divider < 0) {
            return -1;
        }
        $pagesCount = intval($linesNumber / $divider);
        if (0 < ($linesNumber % $divider)) {
            ++$pagesCount;
        }
        return $pagesCount;
    }
public static function getPagesCount($linesNumber, $divider) {
        if ($linesNumber < 0 || $divider < 0) {
            return -1;
        }
        $pagesCount = intval($linesNumber / $divider);
        if (0 < ($linesNumber % $divider)) {
            ++$pagesCount;
        }
        return $pagesCount;
    }
public static function getPagesCount ( $ linesNumber , $ divider ) { if ( $ linesNumber < 0 || $ divider < 0 ) { return - 1 ; } $ pagesCount = intval ( $ linesNumber / $ divider ) ; if ( 0 < ( $ linesNumber % $ divider ) ) { ++ $ pagesCount ; } return $ pagesCount ; }
Get a pages count.

@param int $linesNumber The lines number.
@param int $divider The divider.
@return int Returns the pages count in case of success, -1 otherwise.
Get a pages count .