original_string: public function transform()
      {
          $presentation = [];
  
          if( ! $this->transformer) {
              return $presentation;
          }
  
          foreach ($this->resource as $key => $resource) {
              $presentation[$key] = Item::create($resource)->setTransformer($this->transformer)->transform();
          }
  
          return $presentation;
      }
code: public function transform()
      {
          $presentation = [];
  
          if( ! $this->transformer) {
              return $presentation;
          }
  
          foreach ($this->resource as $key => $resource) {
              $presentation[$key] = Item::create($resource)->setTransformer($this->transformer)->transform();
          }
  
          return $presentation;
      }
code_tokens: public function transform ( ) { $ presentation = [ ] ; if ( ! $ this -> transformer ) { return $ presentation ; } foreach ( $ this -> resource as $ key => $ resource ) { $ presentation [ $ key ] = Item :: create ( $ resource ) -> setTransformer ( $ this -> transformer ) -> transform ( ) ; } return $ presentation ; }
docstring: Present each item of the collection using a transformer.
  
  @return array
docstring_tokens: Present each item of the collection using a transformer .