original_string: function moveUploadedFile($dest, $fileName = '')
      {
          if ($dest != ''  && substr($dest, -1) != '/') {
              $dest .= '/';
          }
          $fileName = ($fileName != '') ? $fileName : basename($this->_value['name']);
          if (move_uploaded_file($this->_value['tmp_name'], $dest . $fileName)) {
              return true;
          } else {
              return false;
          }
      }
code: function moveUploadedFile($dest, $fileName = '')
      {
          if ($dest != ''  && substr($dest, -1) != '/') {
              $dest .= '/';
          }
          $fileName = ($fileName != '') ? $fileName : basename($this->_value['name']);
          if (move_uploaded_file($this->_value['tmp_name'], $dest . $fileName)) {
              return true;
          } else {
              return false;
          }
      }
code_tokens: function moveUploadedFile ( $ dest , $ fileName = '' ) { if ( $ dest != '' && substr ( $ dest , - 1 ) != '/' ) { $ dest .= '/' ; } $ fileName = ( $ fileName != '' ) ? $ fileName : basename ( $ this -> _value [ 'name' ] ) ; if ( move_uploaded_file ( $ this -> _value [ 'tmp_name' ] , $ dest . $ fileName ) ) { return true ; } else { return false ; } }
docstring: Moves an uploaded file into the destination
  
  @param    string  Destination directory path
  @param    string  New file name
  @access   public
  @return   bool    Whether the file was moved successfully
docstring_tokens: Moves an uploaded file into the destination