Completed
Pull Request — 8.x-2.x (#24)
by Frédéric G.
02:39
created

example.settings.local.php ➔ configure_mongodb()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 10
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 17
rs 9.4285
1
<?php
2
/**
3
 * @file
4
 * Example settings to connect to MongoDB.
5
 *
6
 * This is the default data to add to your settings.local.php.
7
 */
8
9
/** @var array $settings */
0 ignored issues
show
introduced by
The open comment tag must be the only content on the line
Loading history...
introduced by
Missing short description in doc comment
Loading history...
10
$settings['mongodb'] = [
11
  'clients' => [
12
    // Client alias => constructor parameters.
13
    'default' => [
14
      'uri' => 'mongodb://localhost:27017',
15
      'uriOptions' => [],
16
      'driverOptions' => [],
17
    ],
18
  ],
19
  'databases' => [
20
    // Collection alias => [ client_alias, collection_name ]
21
    'default' => ['default', 'drupal'],
22
    'logger' => ['default', 'logger'],
23
  ],
24
];
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
25