original_string: public function applyAllScopesToQuery($query)
      {
          $this->defineFilterScopes();
  
          foreach ($this->allScopes as $scope) {
              $this->applyScopeToQuery($scope, $query);
          }
  
          return $query;
      }
code: public function applyAllScopesToQuery($query)
      {
          $this->defineFilterScopes();
  
          foreach ($this->allScopes as $scope) {
              $this->applyScopeToQuery($scope, $query);
          }
  
          return $query;
      }
code_tokens: public function applyAllScopesToQuery ( $ query ) { $ this -> defineFilterScopes ( ) ; foreach ( $ this -> allScopes as $ scope ) { $ this -> applyScopeToQuery ( $ scope , $ query ) ; } return $ query ; }
docstring: Applies all scopes to a DB query.
  @param  Builder $query
  @return Builder
docstring_tokens: Applies all scopes to a DB query .