original_string: protected function parseErrors($provider)
      {
          if ($provider instanceof MessageBag) {
              return $provider;
          } else if ($provider instanceof MessageProviderInterface) {
              return $provider->getMessageBag();
          }
  
          return new MessageBag((array) $provider);
      }
code: protected function parseErrors($provider)
      {
          if ($provider instanceof MessageBag) {
              return $provider;
          } else if ($provider instanceof MessageProviderInterface) {
              return $provider->getMessageBag();
          }
  
          return new MessageBag((array) $provider);
      }
code_tokens: protected function parseErrors ( $ provider ) { if ( $ provider instanceof MessageBag ) { return $ provider ; } else if ( $ provider instanceof MessageProviderInterface ) { return $ provider -> getMessageBag ( ) ; } return new MessageBag ( ( array ) $ provider ) ; }
docstring: Parse the given errors into an appropriate value.
  
  @param  \Nova\Support\Contracts\MessageProviderInterface|array  $provider
  @return \Nova\Support\MessageBag
docstring_tokens: Parse the given errors into an appropriate value .