original_string: public static function times($number, callable $callback = null)
      {
          if ($number < 1) {
              return new static;
          }
  
          if (is_null($callback)) {
              return new static(range(1, $number));
          }
  
          return (new static(range(1, $number)))->map($callback);
      }
code: public static function times($number, callable $callback = null)
      {
          if ($number < 1) {
              return new static;
          }
  
          if (is_null($callback)) {
              return new static(range(1, $number));
          }
  
          return (new static(range(1, $number)))->map($callback);
      }
code_tokens: public static function times ( $ number , callable $ callback = null ) { if ( $ number < 1 ) { return new static ; } if ( is_null ( $ callback ) ) { return new static ( range ( 1 , $ number ) ) ; } return ( new static ( range ( 1 , $ number ) ) ) -> map ( $ callback ) ; }
docstring: Create a new collection by invoking the callback a given amount of times.
  
  @param  int  $number
  @param  callable  $callback
  @return static
docstring_tokens: Create a new collection by invoking the callback a given amount of times .