original_string: protected function _scopeQuery(Query $query, $bundle = null)
      {
          $this->_initScopes();
          foreach ($this->_queryScopes as $scope) {
              if ($scope instanceof QueryScopeInterface) {
                  $query = $scope->scope($query, $bundle);
              }
          }
  
          return $query;
      }
code: protected function _scopeQuery(Query $query, $bundle = null)
      {
          $this->_initScopes();
          foreach ($this->_queryScopes as $scope) {
              if ($scope instanceof QueryScopeInterface) {
                  $query = $scope->scope($query, $bundle);
              }
          }
  
          return $query;
      }
code_tokens: protected function _scopeQuery ( Query $ query , $ bundle = null ) { $ this -> _initScopes ( ) ; foreach ( $ this -> _queryScopes as $ scope ) { if ( $ scope instanceof QueryScopeInterface ) { $ query = $ scope -> scope ( $ query , $ bundle ) ; } } return $ query ; }
docstring: Look for virtual columns in some query's clauses.
  
  @param \Cake\ORM\Query $query The query to scope
  @param string|null $bundle Consider attributes only for a specific bundle
  @return \Cake\ORM\Query The modified query object
docstring_tokens: Look for virtual columns in some query s clauses .