original_string: public function transform(\Closure $callback)
      {
          $this->photos = array_map($callback, $this->photos);
  
          return $this;
      }
code: public function transform(\Closure $callback)
      {
          $this->photos = array_map($callback, $this->photos);
  
          return $this;
      }
code_tokens: public function transform ( \ Closure $ callback ) { $ this -> photos = array_map ( $ callback , $ this -> photos ) ; return $ this ; }
docstring: Executes a callback on each photo in the collection
  Setting each item to the result from the callback.
  
  @param callable $callback
  
  @return PhotoCollection
docstring_tokens: Executes a callback on each photo in the collection Setting each item to the result from the callback .