original_string: public function getCode($set = true)
      {
          $list = $this->getList();
          $code = $this->getFromUrl();
  
          if (empty($code)) {
              $code = $this->getFromCookie();
          }
  
          if (empty($list[$code]['status'])) {
              $code = $this->getDefault();
          }
  
          if ($set) {
              $this->setCookie($code);
          }
  
          return $code;
      }
code: public function getCode($set = true)
      {
          $list = $this->getList();
          $code = $this->getFromUrl();
  
          if (empty($code)) {
              $code = $this->getFromCookie();
          }
  
          if (empty($list[$code]['status'])) {
              $code = $this->getDefault();
          }
  
          if ($set) {
              $this->setCookie($code);
          }
  
          return $code;
      }
code_tokens: public function getCode ( $ set = true ) { $ list = $ this -> getList ( ) ; $ code = $ this -> getFromUrl ( ) ; if ( empty ( $ code ) ) { $ code = $ this -> getFromCookie ( ) ; } if ( empty ( $ list [ $ code ] [ 'status' ] ) ) { $ code = $ this -> getDefault ( ) ; } if ( $ set ) { $ this -> setCookie ( $ code ) ; } return $ code ; }
docstring: Returns the current currency code
  @param bool $set
  @return string
docstring_tokens: Returns the current currency code