original_string: protected function cleanup(array &$data)
      {
          foreach ($data as &$value) {
              if (\is_array($value)) {
                  $this->cleanup($value);
              }
          }
  
          $data = array_filter($data, function ($value) {
              return null !== $value;
          });
      }
code: protected function cleanup(array &$data)
      {
          foreach ($data as &$value) {
              if (\is_array($value)) {
                  $this->cleanup($value);
              }
          }
  
          $data = array_filter($data, function ($value) {
              return null !== $value;
          });
      }
code_tokens: protected function cleanup ( array & $ data ) { foreach ( $ data as & $ value ) { if ( \ is_array ( $ value ) ) { $ this -> cleanup ( $ value ) ; } } $ data = array_filter ( $ data , function ( $ value ) { return null !== $ value ; } ) ; }
docstring: Recursively filter an array, removing null and empty string values.
  
  @param array &$data The data to filter.
docstring_tokens: Recursively filter an array removing null and empty string values .