original_string: protected function convertPolicyIdArrayToQueryArray(array $policies)
      {
          $policiesArray = [];
          $policyCounter = 0;
  
          foreach ($policies as $policy) {
              $policiesArray[Constants::CONTROL_POLICY][$policyCounter] = (string) $policy;
              $policyCounter ++;
          }
  
          return $policiesArray;
      }
code: protected function convertPolicyIdArrayToQueryArray(array $policies)
      {
          $policiesArray = [];
          $policyCounter = 0;
  
          foreach ($policies as $policy) {
              $policiesArray[Constants::CONTROL_POLICY][$policyCounter] = (string) $policy;
              $policyCounter ++;
          }
  
          return $policiesArray;
      }
code_tokens: protected function convertPolicyIdArrayToQueryArray ( array $ policies ) { $ policiesArray = [ ] ; $ policyCounter = 0 ; foreach ( $ policies as $ policy ) { $ policiesArray [ Constants :: CONTROL_POLICY ] [ $ policyCounter ] = ( string ) $ policy ; $ policyCounter ++ ; } return $ policiesArray ; }
docstring: Converts a policies array into an array that can be used for the CMIS request
  
  @param string[] $policies A list of policy string representations
  @return array
docstring_tokens: Converts a policies array into an array that can be used for the CMIS request