original_string: protected function getTableData()
  	{
  		$data = array();
  		$form_input = $this->getFormInput();
  
  		if( $form_input['table_name'] && $form_input['max_rows'] )
  		{
  			$connection_name = Config::get('laravel-import-export::baseconf.connection_name');
  			$temp_data = DB::connection($connection_name)
  				->table($this->form_input['table_name'])
  				->select("*")
  				->take($this->form_input['max_rows']);
  			if( $temp_data->exists() )
  			{
  				$data = $temp_data->get();
  			}
  			else
  			{
  				throw new NoDataException;
  			}
  		}
  		else
  		{
  			throw new \BadMethodCallException;
  		}
  
  		return $data;
  	}
code: protected function getTableData()
  	{
  		$data = array();
  		$form_input = $this->getFormInput();
  
  		if( $form_input['table_name'] && $form_input['max_rows'] )
  		{
  			$connection_name = Config::get('laravel-import-export::baseconf.connection_name');
  			$temp_data = DB::connection($connection_name)
  				->table($this->form_input['table_name'])
  				->select("*")
  				->take($this->form_input['max_rows']);
  			if( $temp_data->exists() )
  			{
  				$data = $temp_data->get();
  			}
  			else
  			{
  				throw new NoDataException;
  			}
  		}
  		else
  		{
  			throw new \BadMethodCallException;
  		}
  
  		return $data;
  	}
code_tokens: protected function getTableData ( ) { $ data = array ( ) ; $ form_input = $ this -> getFormInput ( ) ; if ( $ form_input [ 'table_name' ] && $ form_input [ 'max_rows' ] ) { $ connection_name = Config :: get ( 'laravel-import-export::baseconf.connection_name' ) ; $ temp_data = DB :: connection ( $ connection_name ) -> table ( $ this -> form_input [ 'table_name' ] ) -> select ( "*" ) -> take ( $ this -> form_input [ 'max_rows' ] ) ; if ( $ temp_data -> exists ( ) ) { $ data = $ temp_data -> get ( ) ; } else { throw new NoDataException ; } } else { throw new \ BadMethodCallException ; } return $ data ; }
docstring: Get the data from the db for the preview
  
  @throws  BadMethodCallException
  @throws  NoDataException
  @return  Array $data
docstring_tokens: Get the data from the db for the preview