original_string: protected function prepareListAccountAddress(array $addresses)
      {
          $prepared = array();
  
          foreach ($addresses as $address_id => $items) {
              $prepared[$address_id]['items'] = $items;
              $prepared[$address_id]['locked'] = !$this->address->canDelete($address_id);
          }
  
          return $prepared;
      }
code: protected function prepareListAccountAddress(array $addresses)
      {
          $prepared = array();
  
          foreach ($addresses as $address_id => $items) {
              $prepared[$address_id]['items'] = $items;
              $prepared[$address_id]['locked'] = !$this->address->canDelete($address_id);
          }
  
          return $prepared;
      }
code_tokens: protected function prepareListAccountAddress ( array $ addresses ) { $ prepared = array ( ) ; foreach ( $ addresses as $ address_id => $ items ) { $ prepared [ $ address_id ] [ 'items' ] = $ items ; $ prepared [ $ address_id ] [ 'locked' ] = ! $ this -> address -> canDelete ( $ address_id ) ; } return $ prepared ; }
docstring: Prepares an array of user addresses
  @param array $addresses
  @return array
docstring_tokens: Prepares an array of user addresses