original_string: protected function filterModelEventResults($result)
      {
          if (is_array($result)) {
              $result = array_filter($result, function ($response) {
                  return ! is_null($response);
              });
          }
  
          return $result;
      }
code: protected function filterModelEventResults($result)
      {
          if (is_array($result)) {
              $result = array_filter($result, function ($response) {
                  return ! is_null($response);
              });
          }
  
          return $result;
      }
code_tokens: protected function filterModelEventResults ( $ result ) { if ( is_array ( $ result ) ) { $ result = array_filter ( $ result , function ( $ response ) { return ! is_null ( $ response ) ; } ) ; } return $ result ; }
docstring: Filter the model event results.
  
  @param  mixed  $result
  @return mixed
docstring_tokens: Filter the model event results .