original_string: public function convertPolicies(array $policies)
      {
          $result = [];
  
          foreach ($policies as $policy) {
              if ($policy->getId() !== null) {
                  $result[] = $policy->getId();
              }
          }
  
          return $result;
      }
code: public function convertPolicies(array $policies)
      {
          $result = [];
  
          foreach ($policies as $policy) {
              if ($policy->getId() !== null) {
                  $result[] = $policy->getId();
              }
          }
  
          return $result;
      }
code_tokens: public function convertPolicies ( array $ policies ) { $ result = [ ] ; foreach ( $ policies as $ policy ) { if ( $ policy -> getId ( ) !== null ) { $ result [ ] = $ policy -> getId ( ) ; } } return $ result ; }
docstring: Converts a list of Policy objects into a list of there string representations
  
  @param PolicyInterface[] $policies
  @return string[]
docstring_tokens: Converts a list of Policy objects into a list of there string representations