original_string: public function fetch($query)
      {
          $db = $this->connection();
  
          if(method_exists($result = $db->query(rtrim(preg_replace('/\s\s/', ' ', $query), ' ')), 'rowCount')) {
  
              if($result->rowCount() && $result->setFetchMode($db::FETCH_ASSOC)) {
  
                  return $result->fetchAll();
              }
  
              return false;
          }
      }
code: public function fetch($query)
      {
          $db = $this->connection();
  
          if(method_exists($result = $db->query(rtrim(preg_replace('/\s\s/', ' ', $query), ' ')), 'rowCount')) {
  
              if($result->rowCount() && $result->setFetchMode($db::FETCH_ASSOC)) {
  
                  return $result->fetchAll();
              }
  
              return false;
          }
      }
code_tokens: public function fetch ( $ query ) { $ db = $ this -> connection ( ) ; if ( method_exists ( $ result = $ db -> query ( rtrim ( preg_replace ( '/\s\s/' , ' ' , $ query ) , ' ' ) ) , 'rowCount' ) ) { if ( $ result -> rowCount ( ) && $ result -> setFetchMode ( $ db :: FETCH_ASSOC ) ) { return $ result -> fetchAll ( ) ; } return false ; } }
docstring: Get Data from the table
  
  @param $query String
docstring_tokens: Get Data from the table