original_string: protected function castAttributes($attributes)
      {
          return $this->using
                      ? $this->newPivot()->fill($attributes)->getAttributes()
                      : $attributes;
      }
code: protected function castAttributes($attributes)
      {
          return $this->using
                      ? $this->newPivot()->fill($attributes)->getAttributes()
                      : $attributes;
      }
code_tokens: protected function castAttributes ( $ attributes ) { return $ this -> using ? $ this -> newPivot ( ) -> fill ( $ attributes ) -> getAttributes ( ) : $ attributes ; }
docstring: Cast the given pivot attributes.
  
  @param  array $attributes
  @return array
docstring_tokens: Cast the given pivot attributes .