Passed
Pull Request — 8.x-2.x (#71)
by Frédéric G.
05:50
created

mongodb_help()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 7
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 8
rs 10
1
<?php
2
3
/**
4
 * @file
5
 * Contains the main module connecting Drupal to MongoDB.
6
 */
7
8
declare(strict_types=1);
9
10
/**
11
 * Implements hook_help().
12
 */
13
function mongodb_help($route) {
14
  switch ($route) {
15
    case 'help.page.mongodb':
16
      return '<p>' . t('The Drupal <a href=":project">MongoDB</a> project implements a generic interface to the <a href=":mongo">MongoDB</a> database server. Read its <a href=":docs">online documentation</a>.', [
0 ignored issues
show
Bug introduced by
The function t was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
      return '<p>' . /** @scrutinizer ignore-call */ t('The Drupal <a href=":project">MongoDB</a> project implements a generic interface to the <a href=":mongo">MongoDB</a> database server. Read its <a href=":docs">online documentation</a>.', [
Loading history...
17
        ':project' => 'https://www.drupal.org/project/mongodb',
18
        ':mongo' => 'https://www.mongodb.com/',
19
        ':docs' => 'https://fgm.github.io/mongodb',
20
      ]) . '</p>';
21
  }
22
}
23