original_string: protected function bindClosureToInstance($closure, $instance)
      {
          if ($closure instanceof \Closure) {
              $closure = $closure->bind($closure, $instance, get_class($instance));
          }
  
          return $closure;
      }
code: protected function bindClosureToInstance($closure, $instance)
      {
          if ($closure instanceof \Closure) {
              $closure = $closure->bind($closure, $instance, get_class($instance));
          }
  
          return $closure;
      }
code_tokens: protected function bindClosureToInstance ( $ closure , $ instance ) { if ( $ closure instanceof \ Closure ) { $ closure = $ closure -> bind ( $ closure , $ instance , get_class ( $ instance ) ) ; } return $ closure ; }
docstring: Bind any closure to application instance
  
  @param $closure
  @param $instance
  
  @return mixed
docstring_tokens: Bind any closure to application instance