original_string: public static function captureQueries(\Closure $closure)
      {
          DB::enableQueryLog();
          $closure();
          $logs = DB::getQueryLog();
          return array_map(function ($log) {
              return static::inlineBindings($log['query'], $log['bindings']);
          }, $logs);
      }
code: public static function captureQueries(\Closure $closure)
      {
          DB::enableQueryLog();
          $closure();
          $logs = DB::getQueryLog();
          return array_map(function ($log) {
              return static::inlineBindings($log['query'], $log['bindings']);
          }, $logs);
      }
code_tokens: public static function captureQueries ( \ Closure $ closure ) { DB :: enableQueryLog ( ) ; $ closure ( ) ; $ logs = DB :: getQueryLog ( ) ; return array_map ( function ( $ log ) { return static :: inlineBindings ( $ log [ 'query' ] , $ log [ 'bindings' ] ) ; } , $ logs ) ; }
docstring: Capture SQL queries, called via Eloquent inside argument closure
  
  @param \Closure $closure function, that contains DB invocations
  @return array
docstring_tokens: Capture SQL queries called via Eloquent inside argument closure