Completed
Push — 7.x-1.x ( 10805a...b17f37 )
by Brian
09:25 queued 02:24
created

bootstrap.php (6 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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
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
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...
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...
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...
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...
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