X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FConfig%2FDatabaseStorage.php;h=0ac6134c340013822d4c65e9f2df587d2a9bd8fe;hb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;hp=1368dfff5d030001a8460cf02d260c6b172274fe;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Config/DatabaseStorage.php b/web/core/lib/Drupal/Core/Config/DatabaseStorage.php index 1368dfff5..0ac6134c3 100644 --- a/web/core/lib/Drupal/Core/Config/DatabaseStorage.php +++ b/web/core/lib/Drupal/Core/Config/DatabaseStorage.php @@ -159,7 +159,7 @@ class DatabaseStorage implements StorageInterface { * @throws \Drupal\Core\Config\StorageException * If a database error occurs. */ - protected function ensureTableExists() { + protected function ensureTableExists() { try { if (!$this->connection->schema()->tableExists($this->table)) { $this->connection->schema()->createTable($this->table, static::schemaDefinition()); @@ -180,6 +180,8 @@ class DatabaseStorage implements StorageInterface { /** * Defines the schema for the configuration table. + * + * @internal */ protected static function schemaDefinition() { $schema = [ @@ -318,7 +320,8 @@ class DatabaseStorage implements StorageInterface { public function getAllCollectionNames() { try { return $this->connection->query('SELECT DISTINCT collection FROM {' . $this->connection->escapeTable($this->table) . '} WHERE collection <> :collection ORDER by collection', [ - ':collection' => StorageInterface::DEFAULT_COLLECTION] + ':collection' => StorageInterface::DEFAULT_COLLECTION, + ] )->fetchCol(); } catch (\Exception $e) {