original_string: protected function _initSelect()
      {
          $request = $this->_objectManager->get('Magento\Framework\App\RequestInterface');
          $this->getSelect()->from(['main_table' => $this->getMainTable()]);
  
          if(!empty($customerId = $request->getParam('id'))) {
              $this->getSelect()->where('customer_id = ?', $customerId);
          }
  
          return $this;
      }
code: protected function _initSelect()
      {
          $request = $this->_objectManager->get('Magento\Framework\App\RequestInterface');
          $this->getSelect()->from(['main_table' => $this->getMainTable()]);
  
          if(!empty($customerId = $request->getParam('id'))) {
              $this->getSelect()->where('customer_id = ?', $customerId);
          }
  
          return $this;
      }
code_tokens: protected function _initSelect ( ) { $ request = $ this -> _objectManager -> get ( 'Magento\Framework\App\RequestInterface' ) ; $ this -> getSelect ( ) -> from ( [ 'main_table' => $ this -> getMainTable ( ) ] ) ; if ( ! empty ( $ customerId = $ request -> getParam ( 'id' ) ) ) { $ this -> getSelect ( ) -> where ( 'customer_id = ?' , $ customerId ) ; } return $ this ; }
docstring: Init collection select
  
  @return $this
docstring_tokens: Init collection select