pluf/exchange

View on GitHub
src/Exchange/Shortcuts.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

function Exchange_Shortcuts_NormalizeItemPerPage($request)
{
    $count = array_key_exists('_px_c', $request->REQUEST) ? intval($request->REQUEST['_px_c']) : 30;
    if ($count > 30)
        $count = 30;
    return $count;
}