original_string: private function _addressDigestPart(KlarnaAddr $address = null)
      {
          if ($address === null) {
              return array();
          }
  
          $keyOrder = array(
              'careof', 'street', 'zip', 'city', 'country', 'fname', 'lname'
          );
  
          $holder = $address->toArray();
          $digest = array();
  
          foreach ($keyOrder as $key) {
              if ($holder[$key] != "") {
                  $digest[] = $holder[$key];
              }
          }
  
          return $digest;
      }
code: private function _addressDigestPart(KlarnaAddr $address = null)
      {
          if ($address === null) {
              return array();
          }
  
          $keyOrder = array(
              'careof', 'street', 'zip', 'city', 'country', 'fname', 'lname'
          );
  
          $holder = $address->toArray();
          $digest = array();
  
          foreach ($keyOrder as $key) {
              if ($holder[$key] != "") {
                  $digest[] = $holder[$key];
              }
          }
  
          return $digest;
      }
code_tokens: private function _addressDigestPart ( KlarnaAddr $ address = null ) { if ( $ address === null ) { return array ( ) ; } $ keyOrder = array ( 'careof' , 'street' , 'zip' , 'city' , 'country' , 'fname' , 'lname' ) ; $ holder = $ address -> toArray ( ) ; $ digest = array ( ) ; foreach ( $ keyOrder as $ key ) { if ( $ holder [ $ key ] != "" ) { $ digest [ ] = $ holder [ $ key ] ; } } return $ digest ; }
docstring: Help function to sort the address for update digest.
  
  @param KlarnaAddr|null $address KlarnaAddr object or null
  
  @return array
docstring_tokens: Help function to sort the address for update digest .