Passed
Push — master ( f2885c...024fc2 )
by Morris
11:42 queued 10s
created
lib/private/RedisFactory.php 1 patch
Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -25,92 +25,92 @@
 block discarded – undo
25 25
 namespace OC;
26 26
 
27 27
 class RedisFactory {
28
-	/** @var  \Redis */
29
-	private $instance;
28
+    /** @var  \Redis */
29
+    private $instance;
30 30
 
31
-	/** @var  SystemConfig */
32
-	private $config;
31
+    /** @var  SystemConfig */
32
+    private $config;
33 33
 
34
-	/**
35
-	 * RedisFactory constructor.
36
-	 *
37
-	 * @param SystemConfig $config
38
-	 */
39
-	public function __construct(SystemConfig $config) {
40
-		$this->config = $config;
41
-	}
34
+    /**
35
+     * RedisFactory constructor.
36
+     *
37
+     * @param SystemConfig $config
38
+     */
39
+    public function __construct(SystemConfig $config) {
40
+        $this->config = $config;
41
+    }
42 42
 
43
-	private function create() {
44
-		if ($config = $this->config->getValue('redis.cluster', [])) {
45
-			if (!class_exists('RedisCluster')) {
46
-				throw new \Exception('Redis Cluster support is not available');
47
-			}
48
-			// cluster config
49
-			if (isset($config['timeout'])) {
50
-				$timeout = $config['timeout'];
51
-			} else {
52
-				$timeout = null;
53
-			}
54
-			if (isset($config['read_timeout'])) {
55
-				$readTimeout = $config['read_timeout'];
56
-			} else {
57
-				$readTimeout = null;
58
-			}
59
-			if (isset($config['password']) && $config['password'] !== '') {
60
-				$this->instance = new \RedisCluster(null, $config['seeds'], $timeout, $readTimeout, false, $config['password']);
61
-			} else {
62
-				$this->instance = new \RedisCluster(null, $config['seeds'], $timeout, $readTimeout);
63
-			}
43
+    private function create() {
44
+        if ($config = $this->config->getValue('redis.cluster', [])) {
45
+            if (!class_exists('RedisCluster')) {
46
+                throw new \Exception('Redis Cluster support is not available');
47
+            }
48
+            // cluster config
49
+            if (isset($config['timeout'])) {
50
+                $timeout = $config['timeout'];
51
+            } else {
52
+                $timeout = null;
53
+            }
54
+            if (isset($config['read_timeout'])) {
55
+                $readTimeout = $config['read_timeout'];
56
+            } else {
57
+                $readTimeout = null;
58
+            }
59
+            if (isset($config['password']) && $config['password'] !== '') {
60
+                $this->instance = new \RedisCluster(null, $config['seeds'], $timeout, $readTimeout, false, $config['password']);
61
+            } else {
62
+                $this->instance = new \RedisCluster(null, $config['seeds'], $timeout, $readTimeout);
63
+            }
64 64
 
65
-			if (isset($config['failover_mode'])) {
66
-				$this->instance->setOption(\RedisCluster::OPT_SLAVE_FAILOVER, $config['failover_mode']);
67
-			}
68
-		} else {
65
+            if (isset($config['failover_mode'])) {
66
+                $this->instance->setOption(\RedisCluster::OPT_SLAVE_FAILOVER, $config['failover_mode']);
67
+            }
68
+        } else {
69 69
 
70
-			$this->instance = new \Redis();
71
-			$config = $this->config->getValue('redis', []);
72
-			if (isset($config['host'])) {
73
-				$host = $config['host'];
74
-			} else {
75
-				$host = '127.0.0.1';
76
-			}
77
-			if (isset($config['port'])) {
78
-				$port = $config['port'];
79
-			} else if ($host[0] !== '/') {
80
-				$port = 6379;
81
-			} else {
82
-				$port = null;
83
-			}
84
-			if (isset($config['timeout'])) {
85
-				$timeout = $config['timeout'];
86
-			} else {
87
-				$timeout = 0.0; // unlimited
88
-			}
70
+            $this->instance = new \Redis();
71
+            $config = $this->config->getValue('redis', []);
72
+            if (isset($config['host'])) {
73
+                $host = $config['host'];
74
+            } else {
75
+                $host = '127.0.0.1';
76
+            }
77
+            if (isset($config['port'])) {
78
+                $port = $config['port'];
79
+            } else if ($host[0] !== '/') {
80
+                $port = 6379;
81
+            } else {
82
+                $port = null;
83
+            }
84
+            if (isset($config['timeout'])) {
85
+                $timeout = $config['timeout'];
86
+            } else {
87
+                $timeout = 0.0; // unlimited
88
+            }
89 89
 
90
-			$this->instance->connect($host, $port, $timeout);
91
-			if (isset($config['password']) && $config['password'] !== '') {
92
-				$this->instance->auth($config['password']);
93
-			}
90
+            $this->instance->connect($host, $port, $timeout);
91
+            if (isset($config['password']) && $config['password'] !== '') {
92
+                $this->instance->auth($config['password']);
93
+            }
94 94
 
95
-			if (isset($config['dbindex'])) {
96
-				$this->instance->select($config['dbindex']);
97
-			}
98
-		}
99
-	}
95
+            if (isset($config['dbindex'])) {
96
+                $this->instance->select($config['dbindex']);
97
+            }
98
+        }
99
+    }
100 100
 
101
-	public function getInstance() {
102
-		if (!$this->isAvailable()) {
103
-			throw new \Exception('Redis support is not available');
104
-		}
105
-		if (!$this->instance instanceof \Redis) {
106
-			$this->create();
107
-		}
101
+    public function getInstance() {
102
+        if (!$this->isAvailable()) {
103
+            throw new \Exception('Redis support is not available');
104
+        }
105
+        if (!$this->instance instanceof \Redis) {
106
+            $this->create();
107
+        }
108 108
 
109
-		return $this->instance;
110
-	}
109
+        return $this->instance;
110
+    }
111 111
 
112
-	public function isAvailable() {
113
-		return extension_loaded('redis')
114
-		&& version_compare(phpversion('redis'), '2.2.5', '>=');
115
-	}
112
+    public function isAvailable() {
113
+        return extension_loaded('redis')
114
+        && version_compare(phpversion('redis'), '2.2.5', '>=');
115
+    }
116 116
 }
Please login to merge, or discard this patch.
config/config.sample.php 2 patches
Indentation   +135 added lines, -135 removed lines patch added patch discarded remove patch
@@ -41,17 +41,17 @@  discard block
 block discarded – undo
41 41
  */
42 42
 'instanceid' => '',
43 43
 
44
- /**
45
-  * The salt used to hash all passwords, auto-generated by the Nextcloud
46
-  * installer. (There are also per-user salts.) If you lose this salt you lose
47
-  * all your passwords. This example is for documentation only, and you should
48
-  * never use it.
49
-  *
50
-  * @deprecated This salt is deprecated and only used for legacy-compatibility,
51
-  * developers should *NOT* use this value for anything nowadays.
52
-  *
53
-  * 'passwordsalt' => 'd3c944a9af095aa08f',
54
- */
44
+    /**
45
+     * The salt used to hash all passwords, auto-generated by the Nextcloud
46
+     * installer. (There are also per-user salts.) If you lose this salt you lose
47
+     * all your passwords. This example is for documentation only, and you should
48
+     * never use it.
49
+     *
50
+     * @deprecated This salt is deprecated and only used for legacy-compatibility,
51
+     * developers should *NOT* use this value for anything nowadays.
52
+     *
53
+     * 'passwordsalt' => 'd3c944a9af095aa08f',
54
+     */
55 55
 'passwordsalt' => '',
56 56
 
57 57
 /**
@@ -67,10 +67,10 @@  discard block
 block discarded – undo
67 67
  *   ubos-raspberry-pi.local and ubos-raspberry-pi-2.local
68 68
  */
69 69
 'trusted_domains' =>
70
-  array (
70
+    array (
71 71
     'demo.example.org',
72 72
     'otherdomain.example.org',
73
-  ),
73
+    ),
74 74
 
75 75
 
76 76
 /**
@@ -678,10 +678,10 @@  discard block
 block discarded – undo
678 678
  *  - www.edri.org
679 679
  */
680 680
 'connectivity_check_domains' => array(
681
-	'www.nextcloud.com',
682
-	'www.startpage.com',
683
-	'www.eff.org',
684
-	'www.edri.org'
681
+    'www.nextcloud.com',
682
+    'www.startpage.com',
683
+    'www.eff.org',
684
+    'www.edri.org'
685 685
 ),
686 686
 
687 687
 /**
@@ -797,9 +797,9 @@  discard block
 block discarded – undo
797 797
  * Defaults to an empty array.
798 798
  */
799 799
 'log.condition' => [
800
-	'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
801
-	'users' => ['sample-user'],
802
-	'apps' => ['files'],
800
+    'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
801
+    'users' => ['sample-user'],
802
+    'apps' => ['files'],
803 803
 ],
804 804
 
805 805
 /**
@@ -853,18 +853,18 @@  discard block
 block discarded – undo
853 853
  *  - iOS client app id: ``1125420102``
854 854
  */
855 855
 'customclient_desktop' =>
856
-	'https://nextcloud.com/install/#install-clients',
856
+    'https://nextcloud.com/install/#install-clients',
857 857
 'customclient_android' =>
858
-	'https://play.google.com/store/apps/details?id=com.nextcloud.client',
858
+    'https://play.google.com/store/apps/details?id=com.nextcloud.client',
859 859
 'customclient_ios' =>
860
-	'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8',
860
+    'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8',
861 861
 'customclient_ios_appid' =>
862
-		'1125420102',
862
+        '1125420102',
863 863
 /**
864
- * Apps
865
- *
866
- * Options for the Apps folder, Apps store, and App code checker.
867
- */
864
+         * Apps
865
+         *
866
+         * Options for the Apps folder, Apps store, and App code checker.
867
+         */
868 868
 
869 869
 /**
870 870
  * When enabled, admins may install apps from the Nextcloud app store.
@@ -882,11 +882,11 @@  discard block
 block discarded – undo
882 882
  * indicates if a Web server can write files to that folder.
883 883
  */
884 884
 'apps_paths' => array(
885
-	array(
886
-		'path'=> '/var/www/nextcloud/apps',
887
-		'url' => '/apps',
888
-		'writable' => true,
889
-	),
885
+    array(
886
+        'path'=> '/var/www/nextcloud/apps',
887
+        'url' => '/apps',
888
+        'writable' => true,
889
+    ),
890 890
 ),
891 891
 
892 892
 /**
@@ -951,8 +951,8 @@  discard block
 block discarded – undo
951 951
  * Defaults to ``''`` (empty string)
952 952
  */
953 953
 'preview_office_cl_parameters' =>
954
-	' --headless --nologo --nofirststartwizard --invisible --norestore '.
955
-	'--convert-to png --outdir ',
954
+    ' --headless --nologo --nofirststartwizard --invisible --norestore '.
955
+    '--convert-to png --outdir ',
956 956
 
957 957
 /**
958 958
  * Only register providers that have been explicitly enabled
@@ -996,15 +996,15 @@  discard block
 block discarded – undo
996 996
  *  - OC\Preview\XBitmap
997 997
  */
998 998
 'enabledPreviewProviders' => array(
999
-	'OC\Preview\PNG',
1000
-	'OC\Preview\JPEG',
1001
-	'OC\Preview\GIF',
1002
-	'OC\Preview\HEIC',
1003
-	'OC\Preview\BMP',
1004
-	'OC\Preview\XBitmap',
1005
-	'OC\Preview\MP3',
1006
-	'OC\Preview\TXT',
1007
-	'OC\Preview\MarkDown'
999
+    'OC\Preview\PNG',
1000
+    'OC\Preview\JPEG',
1001
+    'OC\Preview\GIF',
1002
+    'OC\Preview\HEIC',
1003
+    'OC\Preview\BMP',
1004
+    'OC\Preview\XBitmap',
1005
+    'OC\Preview\MP3',
1006
+    'OC\Preview\TXT',
1007
+    'OC\Preview\MarkDown'
1008 1008
 ),
1009 1009
 
1010 1010
 /**
@@ -1080,11 +1080,11 @@  discard block
 block discarded – undo
1080 1080
 
1081 1081
 /**
1082 1082
  * Extra SSL options to be used for configuration.
1083
-  *
1083
+ *
1084 1084
  * Defaults to an empty array.
1085 1085
  */
1086 1086
 'openssl' => array(
1087
-	'config' => '/absolute/location/of/openssl.cnf',
1087
+    'config' => '/absolute/location/of/openssl.cnf',
1088 1088
 ),
1089 1089
 
1090 1090
 /**
@@ -1132,11 +1132,11 @@  discard block
 block discarded – undo
1132 1132
  * for more information.
1133 1133
  */
1134 1134
 'redis' => [
1135
-	'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
1136
-	'port' => 6379,
1137
-	'timeout' => 0.0,
1138
-	'password' => '', // Optional, if not defined no password will be used.
1139
-	'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
1135
+    'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
1136
+    'port' => 6379,
1137
+    'timeout' => 0.0,
1138
+    'password' => '', // Optional, if not defined no password will be used.
1139
+    'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
1140 1140
 ],
1141 1141
 
1142 1142
 /**
@@ -1165,14 +1165,14 @@  discard block
 block discarded – undo
1165 1165
  * https://github.com/phpredis/phpredis/commit/c5994f2a42b8a348af92d3acb4edff1328ad8ce1
1166 1166
  */
1167 1167
 'redis.cluster' => [
1168
-	'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
1169
-		'localhost:7000',
1170
-		'localhost:7001',
1171
-	],
1172
-	'timeout' => 0.0,
1173
-	'read_timeout' => 0.0,
1174
-	'failover_mode' => \RedisCluster::FAILOVER_ERROR,
1175
-	'password' => '', // Optional, if not defined no password will be used.
1168
+    'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
1169
+        'localhost:7000',
1170
+        'localhost:7001',
1171
+    ],
1172
+    'timeout' => 0.0,
1173
+    'read_timeout' => 0.0,
1174
+    'failover_mode' => \RedisCluster::FAILOVER_ERROR,
1175
+    'password' => '', // Optional, if not defined no password will be used.
1176 1176
 ],
1177 1177
 
1178 1178
 
@@ -1180,35 +1180,35 @@  discard block
 block discarded – undo
1180 1180
  * Server details for one or more memcached servers to use for memory caching.
1181 1181
  */
1182 1182
 'memcached_servers' => array(
1183
-	// hostname, port and optional weight. Also see:
1184
-	// http://www.php.net/manual/en/memcached.addservers.php
1185
-	// http://www.php.net/manual/en/memcached.addserver.php
1186
-	array('localhost', 11211),
1187
-	//array('other.host.local', 11211),
1183
+    // hostname, port and optional weight. Also see:
1184
+    // http://www.php.net/manual/en/memcached.addservers.php
1185
+    // http://www.php.net/manual/en/memcached.addserver.php
1186
+    array('localhost', 11211),
1187
+    //array('other.host.local', 11211),
1188 1188
 ),
1189 1189
 
1190 1190
 /**
1191 1191
  * Connection options for memcached, see http://apprize.info/php/scaling/15.html
1192 1192
  */
1193 1193
 'memcached_options' => array(
1194
-	// Set timeouts to 50ms
1195
-	\Memcached::OPT_CONNECT_TIMEOUT => 50,
1196
-	\Memcached::OPT_RETRY_TIMEOUT =>   50,
1197
-	\Memcached::OPT_SEND_TIMEOUT =>    50,
1198
-	\Memcached::OPT_RECV_TIMEOUT =>    50,
1199
-	\Memcached::OPT_POLL_TIMEOUT =>    50,
1194
+    // Set timeouts to 50ms
1195
+    \Memcached::OPT_CONNECT_TIMEOUT => 50,
1196
+    \Memcached::OPT_RETRY_TIMEOUT =>   50,
1197
+    \Memcached::OPT_SEND_TIMEOUT =>    50,
1198
+    \Memcached::OPT_RECV_TIMEOUT =>    50,
1199
+    \Memcached::OPT_POLL_TIMEOUT =>    50,
1200 1200
 
1201
-	// Enable compression
1202
-	\Memcached::OPT_COMPRESSION =>          true,
1201
+    // Enable compression
1202
+    \Memcached::OPT_COMPRESSION =>          true,
1203 1203
 
1204
-	// Turn on consistent hashing
1205
-	\Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
1204
+    // Turn on consistent hashing
1205
+    \Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
1206 1206
 
1207
-	// Enable Binary Protocol
1208
-	\Memcached::OPT_BINARY_PROTOCOL =>      true,
1207
+    // Enable Binary Protocol
1208
+    \Memcached::OPT_BINARY_PROTOCOL =>      true,
1209 1209
 
1210
-	// Binary serializer vill be enabled if the igbinary PECL module is available
1211
-	//\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
1210
+    // Binary serializer vill be enabled if the igbinary PECL module is available
1211
+    //\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
1212 1212
 ),
1213 1213
 
1214 1214
 
@@ -1254,61 +1254,61 @@  discard block
 block discarded – undo
1254 1254
  * One way to test is applying for a trystack account at http://trystack.org/
1255 1255
  */
1256 1256
 'objectstore' => [
1257
-	'class' => 'OC\\Files\\ObjectStore\\Swift',
1258
-	'arguments' => [
1259
-		// trystack will use your facebook id as the user name
1260
-		'username' => 'facebook100000123456789',
1261
-		// in the trystack dashboard go to user -> settings -> API Password to
1262
-		// generate a password
1263
-		'password' => 'Secr3tPaSSWoRdt7',
1264
-		// must already exist in the objectstore, name can be different
1265
-		'container' => 'nextcloud',
1266
-		// prefix to prepend to the fileid, default is 'oid:urn:'
1267
-		'objectPrefix' => 'oid:urn:',
1268
-		// create the container if it does not exist. default is false
1269
-		'autocreate' => true,
1270
-		// required, dev-/trystack defaults to 'RegionOne'
1271
-		'region' => 'RegionOne',
1272
-		// The Identity / Keystone endpoint
1273
-		'url' => 'http://8.21.28.222:5000/v2.0',
1274
-		// required on dev-/trystack
1275
-		'tenantName' => 'facebook100000123456789',
1276
-		// dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
1277
-		// if omitted
1278
-		'serviceName' => 'swift',
1279
-		// The Interface / url Type, optional
1280
-		'urlType' => 'internal'
1281
-	],
1257
+    'class' => 'OC\\Files\\ObjectStore\\Swift',
1258
+    'arguments' => [
1259
+        // trystack will use your facebook id as the user name
1260
+        'username' => 'facebook100000123456789',
1261
+        // in the trystack dashboard go to user -> settings -> API Password to
1262
+        // generate a password
1263
+        'password' => 'Secr3tPaSSWoRdt7',
1264
+        // must already exist in the objectstore, name can be different
1265
+        'container' => 'nextcloud',
1266
+        // prefix to prepend to the fileid, default is 'oid:urn:'
1267
+        'objectPrefix' => 'oid:urn:',
1268
+        // create the container if it does not exist. default is false
1269
+        'autocreate' => true,
1270
+        // required, dev-/trystack defaults to 'RegionOne'
1271
+        'region' => 'RegionOne',
1272
+        // The Identity / Keystone endpoint
1273
+        'url' => 'http://8.21.28.222:5000/v2.0',
1274
+        // required on dev-/trystack
1275
+        'tenantName' => 'facebook100000123456789',
1276
+        // dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
1277
+        // if omitted
1278
+        'serviceName' => 'swift',
1279
+        // The Interface / url Type, optional
1280
+        'urlType' => 'internal'
1281
+    ],
1282 1282
 ],
1283 1283
 
1284 1284
 /**
1285 1285
  * To use swift V3
1286 1286
  */
1287 1287
 'objectstore' => [
1288
-	'class' => 'OC\\Files\\ObjectStore\\Swift',
1289
-	'arguments' => [
1290
-		'autocreate' => true,
1291
-		'user' => [
1292
-			'name' => 'swift',
1293
-			'password' => 'swift',
1294
-			'domain' => [
1295
-				'name' => 'default',
1296
-			],
1297
-		],
1298
-		'scope' => [
1299
-			'project' => [
1300
-				'name' => 'service',
1301
-				'domain' => [
1302
-					'name' => 'default',
1303
-				],
1304
-			],
1305
-		],
1306
-		'tenantName' => 'service',
1307
-		'serviceName' => 'swift',
1308
-		'region' => 'regionOne',
1309
-		'url' => 'http://yourswifthost:5000/v3',
1310
-		'bucket' => 'nextcloud',
1311
-	],
1288
+    'class' => 'OC\\Files\\ObjectStore\\Swift',
1289
+    'arguments' => [
1290
+        'autocreate' => true,
1291
+        'user' => [
1292
+            'name' => 'swift',
1293
+            'password' => 'swift',
1294
+            'domain' => [
1295
+                'name' => 'default',
1296
+            ],
1297
+        ],
1298
+        'scope' => [
1299
+            'project' => [
1300
+                'name' => 'service',
1301
+                'domain' => [
1302
+                    'name' => 'default',
1303
+                ],
1304
+            ],
1305
+        ],
1306
+        'tenantName' => 'service',
1307
+        'serviceName' => 'swift',
1308
+        'region' => 'regionOne',
1309
+        'url' => 'http://yourswifthost:5000/v3',
1310
+        'bucket' => 'nextcloud',
1311
+    ],
1312 1312
 ],
1313 1313
 
1314 1314
 
@@ -1348,8 +1348,8 @@  discard block
 block discarded – undo
1348 1348
  * encryption in MySQL or specify a custom wait timeout on a cheap hoster.
1349 1349
  */
1350 1350
 'dbdriveroptions' => array(
1351
-	PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
1352
-	PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
1351
+    PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
1352
+    PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
1353 1353
 ),
1354 1354
 
1355 1355
 /**
@@ -1406,10 +1406,10 @@  discard block
 block discarded – undo
1406 1406
  *  - pgsql (PostgreSQL)
1407 1407
  */
1408 1408
 'supportedDatabases' => array(
1409
-	'sqlite',
1410
-	'mysql',
1411
-	'pgsql',
1412
-	'oci',
1409
+    'sqlite',
1410
+    'mysql',
1411
+    'pgsql',
1412
+    'oci',
1413 1413
 ),
1414 1414
 
1415 1415
 /**
@@ -1684,8 +1684,8 @@  discard block
 block discarded – undo
1684 1684
  * WARNING: only use this if you know what you are doing
1685 1685
  */
1686 1686
 'csrf.optout' => array(
1687
-	'/^WebDAVFS/', // OS X Finder
1688
-	'/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
1687
+    '/^WebDAVFS/', // OS X Finder
1688
+    '/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
1689 1689
 ),
1690 1690
 
1691 1691
 /**
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
  *   ubos-raspberry-pi.local and ubos-raspberry-pi-2.local
68 68
  */
69 69
 'trusted_domains' =>
70
-  array (
70
+  array(
71 71
     'demo.example.org',
72 72
     'otherdomain.example.org',
73 73
   ),
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
  *
231 231
  * Defaults to ``60*60*24*15`` seconds (15 days)
232 232
  */
233
-'remember_login_cookie_lifetime' => 60*60*24*15,
233
+'remember_login_cookie_lifetime' => 60 * 60 * 24 * 15,
234 234
 
235 235
 /**
236 236
  * The lifetime of a session after inactivity.
@@ -1165,7 +1165,7 @@  discard block
 block discarded – undo
1165 1165
  * https://github.com/phpredis/phpredis/commit/c5994f2a42b8a348af92d3acb4edff1328ad8ce1
1166 1166
  */
1167 1167
 'redis.cluster' => [
1168
-	'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
1168
+	'seeds' => [// provide some/all of the cluster servers to bootstrap discovery, port required
1169 1169
 		'localhost:7000',
1170 1170
 		'localhost:7001',
1171 1171
 	],
@@ -1230,7 +1230,7 @@  discard block
 block discarded – undo
1230 1230
  *
1231 1231
  * Defaults to ``60*60*24`` (1 day)
1232 1232
  */
1233
-'cache_chunk_gc_ttl' => 60*60*24,
1233
+'cache_chunk_gc_ttl' => 60 * 60 * 24,
1234 1234
 
1235 1235
 /**
1236 1236
  * Using Object Store with Nextcloud
@@ -1598,7 +1598,7 @@  discard block
 block discarded – undo
1598 1598
  * Defaults to ``60*60`` seconds (1 hour) or the php
1599 1599
  *             max_execution_time, whichever is higher.
1600 1600
  */
1601
-'filelocking.ttl' => 60*60,
1601
+'filelocking.ttl' => 60 * 60,
1602 1602
 
1603 1603
 /**
1604 1604
  * Memory caching backend for file locking
Please login to merge, or discard this patch.