original_string: protected function alreadyInParameters($class, array $parameters)
      {
          $result = Arr::first($parameters, function ($key, $value) use ($class)
          {
              return ($value instanceof $class);
          });
  
          return ! is_null($result);
      }
code: protected function alreadyInParameters($class, array $parameters)
      {
          $result = Arr::first($parameters, function ($key, $value) use ($class)
          {
              return ($value instanceof $class);
          });
  
          return ! is_null($result);
      }
code_tokens: protected function alreadyInParameters ( $ class , array $ parameters ) { $ result = Arr :: first ( $ parameters , function ( $ key , $ value ) use ( $ class ) { return ( $ value instanceof $ class ) ; } ) ; return ! is_null ( $ result ) ; }
docstring: Determine if an object of the given class is in a list of parameters.
  
  @param  string  $class
  @param  array  $parameters
  @return bool
docstring_tokens: Determine if an object of the given class is in a list of parameters .