original_string: public function getAll()
      {
          $fields = implode(', ', $this->fields);
          $sql = 'SELECT ' . $fields . ' FROM ' . $this->table;
          $query = $this->pdo->prepare($sql);
          $query->execute();
  
          return $query->fetchAll(PDO::FETCH_ASSOC);
      }
code: public function getAll()
      {
          $fields = implode(', ', $this->fields);
          $sql = 'SELECT ' . $fields . ' FROM ' . $this->table;
          $query = $this->pdo->prepare($sql);
          $query->execute();
  
          return $query->fetchAll(PDO::FETCH_ASSOC);
      }
code_tokens: public function getAll ( ) { $ fields = implode ( ', ' , $ this -> fields ) ; $ sql = 'SELECT ' . $ fields . ' FROM ' . $ this -> table ; $ query = $ this -> pdo -> prepare ( $ sql ) ; $ query -> execute ( ) ; return $ query -> fetchAll ( PDO :: FETCH_ASSOC ) ; }
docstring: Run a SELECT all query
  @return array Query result
  @since 1.1.4
docstring_tokens: Run a SELECT all query