bootstrap.php ➔ drupal_get_hash_salt()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace OPCache;
4
5
require_once 'vendor/autoload.php';
6
7
define('REQUEST_TIME', time());
8
define('DRUPAL_ROOT', '/');
9
define('WATCHDOG_ERROR', 3);
10
11
global $base_url;
12
$base_url = 'http://www.example.com';
13
14
function drupal_get_private_key() {
15
  return '7Y1bi4529QyGWmlj7poveFLNx6iT5qx51ig8duEXwAo';
16
}
17
18
function drupal_get_hash_salt() {
19
  return '7Y1bi4529QyGWmlj7poveFLNx6iT5qx51ig8duEXwAo';
20
}
21
22
function drupal_hmac_base64($data, $key) {
23
  $hmac = base64_encode(hash_hmac('sha256', (string) $data, (string) $key, TRUE));
24
  return strtr($hmac, array('+' => '-', '/' => '_', '=' => ''));
25
}
26
27
function variable_get($variable, $default = NULL) {
0 ignored issues
show
Unused Code introduced by
The parameter $default is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
  switch ($variable) {
29
    case 'opcache_backends':
30
      return array(
31
        'fcgi://192.168.1.1',
32
        '192.168.1.7',
33
        '127.0.0.1',
34
      );
35
  }
36
}
37
38
function watchdog($type, $message, $variables = array(), $severity = WATCHDOG_NOTICE, $link = NULL) {
0 ignored issues
show
Unused Code introduced by
The parameter $type is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $variables is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $severity is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $link is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
39
}
40