original_string: public static function clearInput($input)
      {
          if (is_array($input)) {
              foreach ($input as $key => $value) {
                  if (!isset($value) || $value === '') {
                      unset($input[$key]);
                  }
              }
  
              return $input;
          }
  
          return $input;
      }
code: public static function clearInput($input)
      {
          if (is_array($input)) {
              foreach ($input as $key => $value) {
                  if (!isset($value) || $value === '') {
                      unset($input[$key]);
                  }
              }
  
              return $input;
          }
  
          return $input;
      }
code_tokens: public static function clearInput ( $ input ) { if ( is_array ( $ input ) ) { foreach ( $ input as $ key => $ value ) { if ( ! isset ( $ value ) || $ value === '' ) { unset ( $ input [ $ key ] ) ; } } return $ input ; } return $ input ; }
docstring: This will look through the input and remove any unset values.
  
  @param $input
  
  @return mixed
docstring_tokens: This will look through the input and remove any unset values .