original_string: public function scopeWithType(Builder $query, $type)
      {
          // We do this for querying, searching and sorting with source attributes
          $this->setNodeTypeName($type);
  
          return $this->scopeWhereTranslation($query, 'source_type', $type, null);
      }
code: public function scopeWithType(Builder $query, $type)
      {
          // We do this for querying, searching and sorting with source attributes
          $this->setNodeTypeName($type);
  
          return $this->scopeWhereTranslation($query, 'source_type', $type, null);
      }
code_tokens: public function scopeWithType ( Builder $ query , $ type ) { // We do this for querying, searching and sorting with source attributes $ this -> setNodeTypeName ( $ type ) ; return $ this -> scopeWhereTranslation ( $ query , 'source_type' , $ type , null ) ; }
docstring: Scope for selecting with type
  
  @param Builder $query
  @param string $type
  @return Builder
docstring_tokens: Scope for selecting with type