Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Config / DatabaseStorage.php
index 1368dfff5d030001a8460cf02d260c6b172274fe..0ac6134c340013822d4c65e9f2df587d2a9bd8fe 100644 (file)
@@ -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) {