original_string: private function filterUniqueValues($values) {
          //Get unique attributes
          $uniqueAttributes = [];
          foreach ($this->configs as $config) {
              if (isset($config['unique']) && $config['unique']) {
                  $uniqueAttributes[] = $config['attribute'];
              }
          }
  
          if (empty($uniqueAttributes)) {
              return $values; //Return all values
          }
  
          //Filter values per unique attributes
          $uniqueValues = [];
          foreach ($values as $value) {
              $hash = ""; //generate hash per 1+ unique parameters
              foreach ($uniqueAttributes as $ua) {
                  $hash .= $value[$ua];
              }
              $uniqueValues[$hash] = $value;
          }
          return $uniqueValues;
      }
code: private function filterUniqueValues($values) {
          //Get unique attributes
          $uniqueAttributes = [];
          foreach ($this->configs as $config) {
              if (isset($config['unique']) && $config['unique']) {
                  $uniqueAttributes[] = $config['attribute'];
              }
          }
  
          if (empty($uniqueAttributes)) {
              return $values; //Return all values
          }
  
          //Filter values per unique attributes
          $uniqueValues = [];
          foreach ($values as $value) {
              $hash = ""; //generate hash per 1+ unique parameters
              foreach ($uniqueAttributes as $ua) {
                  $hash .= $value[$ua];
              }
              $uniqueValues[$hash] = $value;
          }
          return $uniqueValues;
      }
code_tokens: private function filterUniqueValues ( $ values ) { //Get unique attributes $ uniqueAttributes = [ ] ; foreach ( $ this -> configs as $ config ) { if ( isset ( $ config [ 'unique' ] ) && $ config [ 'unique' ] ) { $ uniqueAttributes [ ] = $ config [ 'attribute' ] ; } } if ( empty ( $ uniqueAttributes ) ) { return $ values ; //Return all values } //Filter values per unique attributes $ uniqueValues = [ ] ; foreach ( $ values as $ value ) { $ hash = "" ; //generate hash per 1+ unique parameters foreach ( $ uniqueAttributes as $ ua ) { $ hash .= $ value [ $ ua ] ; } $ uniqueValues [ $ hash ] = $ value ; } return $ uniqueValues ; }
docstring: Will filter values per unique parameters. Config array can receive 1+ unique parameters.
  @param array $values
docstring_tokens: Will filter values per unique parameters . Config array can receive 1 + unique parameters .