public function rotate($value) { if (ctype_digit($value)) { return parent::rotateImageNDegrees($value); } else { return parent::rotateImage($value); } }