original_string: public function getPaperSize($paperSize = null)
      {
          $size = $paperSize !== null ? $paperSize : $this->paperSize;
          if (is_array($size)) {
              return $size;
          } else if (isset(Adapter\CPDF::$PAPER_SIZES[mb_strtolower($size)])) {
              return Adapter\CPDF::$PAPER_SIZES[mb_strtolower($size)];
          } else {
              return Adapter\CPDF::$PAPER_SIZES["letter"];
          }
      }
code: public function getPaperSize($paperSize = null)
      {
          $size = $paperSize !== null ? $paperSize : $this->paperSize;
          if (is_array($size)) {
              return $size;
          } else if (isset(Adapter\CPDF::$PAPER_SIZES[mb_strtolower($size)])) {
              return Adapter\CPDF::$PAPER_SIZES[mb_strtolower($size)];
          } else {
              return Adapter\CPDF::$PAPER_SIZES["letter"];
          }
      }
code_tokens: public function getPaperSize ( $ paperSize = null ) { $ size = $ paperSize !== null ? $ paperSize : $ this -> paperSize ; if ( is_array ( $ size ) ) { return $ size ; } else if ( isset ( Adapter \ CPDF :: $ PAPER_SIZES [ mb_strtolower ( $ size ) ] ) ) { return Adapter \ CPDF :: $ PAPER_SIZES [ mb_strtolower ( $ size ) ] ; } else { return Adapter \ CPDF :: $ PAPER_SIZES [ "letter" ] ; } }
docstring: Gets the paper size
  
  @param null|string|array $paperSize
  @return int[] A four-element integer array
docstring_tokens: Gets the paper size