original_string: public static function cleanUpArray(array $parameters)
      {
          $cleanup = [];
  
          foreach ($parameters as $name => $value) {
              if (array_key_exists($name, self::CONFIRMATION_PROPERTIES)) {
                  $cleanup[$name] = $value;
              }
          }
  
          return $cleanup;
      }
code: public static function cleanUpArray(array $parameters)
      {
          $cleanup = [];
  
          foreach ($parameters as $name => $value) {
              if (array_key_exists($name, self::CONFIRMATION_PROPERTIES)) {
                  $cleanup[$name] = $value;
              }
          }
  
          return $cleanup;
      }
code_tokens: public static function cleanUpArray ( array $ parameters ) { $ cleanup = [ ] ; foreach ( $ parameters as $ name => $ value ) { if ( array_key_exists ( $ name , self :: CONFIRMATION_PROPERTIES ) ) { $ cleanup [ $ name ] = $ value ; } } return $ cleanup ; }
docstring: Set the parameters of the Confirmation object
  
  @param array $parameters cleanUp the given Array to only the once valid property names, see CONFIRMATION_PROPERTIES
  
  @return array
docstring_tokens: Set the parameters of the Confirmation object