src/CanvasPest.php
private function preprocessData($data)
    {
        if (is_array($data) && !array_key_exists(self::PARAM_PER_PAGE, $data)) {
            $data[self::PARAM_PER_PAGE] = CanvasArray::MAXIMUM_PER_PAGE;
        }
        return $data;
    }
private function preprocessData($data)
    {
        if (is_array($data) && !array_key_exists(self::PARAM_PER_PAGE, $data)) {
            $data[self::PARAM_PER_PAGE] = CanvasArray::MAXIMUM_PER_PAGE;
        }
        return $data;
    }
Preprocess API call parameters before use

Force maximum response page size, if not already defined.

@param string[] $data Array of parameters for the next API call

@return string[] Updated array of parameters

@see CanvasArray::MAXIMUM_PER_PAGE Maximum number of responses per page
@see CanvasPest::PARAM_PER_PAGE Page size parameter