Passed
Push — master ( 3ad931...7db8e2 )
by Joas
15:34 queued 12s
created
config/config.sample.php 1 patch
Indentation   +159 added lines, -159 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
 /**
@@ -69,12 +69,12 @@  discard block
 block discarded – undo
69 69
  *   Using TLS certificates where commonName=<IP address> is deprecated
70 70
  */
71 71
 'trusted_domains' =>
72
-   [
72
+    [
73 73
     'demo.example.org',
74 74
     'otherdomain.example.org',
75 75
     '10.111.112.113',
76 76
     '[2001:db8::1]'
77
-  ],
77
+    ],
78 78
 
79 79
 
80 80
 /**
@@ -822,10 +822,10 @@  discard block
 block discarded – undo
822 822
  *  - www.edri.org
823 823
  */
824 824
 'connectivity_check_domains' => [
825
-	'www.nextcloud.com',
826
-	'www.startpage.com',
827
-	'www.eff.org',
828
-	'www.edri.org'
825
+    'www.nextcloud.com',
826
+    'www.startpage.com',
827
+    'www.eff.org',
828
+    'www.edri.org'
829 829
 ],
830 830
 
831 831
 /**
@@ -975,9 +975,9 @@  discard block
 block discarded – undo
975 975
  * Defaults to an empty array.
976 976
  */
977 977
 'log.condition' => [
978
-	'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
979
-	'users' => ['sample-user'],
980
-	'apps' => ['files'],
978
+    'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
979
+    'users' => ['sample-user'],
980
+    'apps' => ['files'],
981 981
 ],
982 982
 
983 983
 /**
@@ -1040,18 +1040,18 @@  discard block
 block discarded – undo
1040 1040
  * - iOS client app id: ``1125420102``
1041 1041
  */
1042 1042
 'customclient_desktop' =>
1043
-	'https://nextcloud.com/install/#install-clients',
1043
+    'https://nextcloud.com/install/#install-clients',
1044 1044
 'customclient_android' =>
1045
-	'https://play.google.com/store/apps/details?id=com.nextcloud.client',
1045
+    'https://play.google.com/store/apps/details?id=com.nextcloud.client',
1046 1046
 'customclient_ios' =>
1047
-	'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8',
1047
+    'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8',
1048 1048
 'customclient_ios_appid' =>
1049
-		'1125420102',
1049
+        '1125420102',
1050 1050
 /**
1051
- * Apps
1052
- *
1053
- * Options for the Apps folder, Apps store, and App code checker.
1054
- */
1051
+         * Apps
1052
+         *
1053
+         * Options for the Apps folder, Apps store, and App code checker.
1054
+         */
1055 1055
 
1056 1056
 /**
1057 1057
  * When enabled, admins may install apps from the Nextcloud app store.
@@ -1083,11 +1083,11 @@  discard block
 block discarded – undo
1083 1083
  * indicates if a Web server can write files to that folder.
1084 1084
  */
1085 1085
 'apps_paths' => [
1086
-	[
1087
-		'path'=> '/var/www/nextcloud/apps',
1088
-		'url' => '/apps',
1089
-		'writable' => true,
1090
-	],
1086
+    [
1087
+        'path'=> '/var/www/nextcloud/apps',
1088
+        'url' => '/apps',
1089
+        'writable' => true,
1090
+    ],
1091 1091
 ],
1092 1092
 
1093 1093
 /**
@@ -1185,8 +1185,8 @@  discard block
 block discarded – undo
1185 1185
  * Defaults to ``''`` (empty string)
1186 1186
  */
1187 1187
 'preview_office_cl_parameters' =>
1188
-	' --headless --nologo --nofirststartwizard --invisible --norestore '.
1189
-	'--convert-to png --outdir ',
1188
+    ' --headless --nologo --nofirststartwizard --invisible --norestore '.
1189
+    '--convert-to png --outdir ',
1190 1190
 
1191 1191
 /**
1192 1192
  * custom path for ffmpeg binary
@@ -1238,16 +1238,16 @@  discard block
 block discarded – undo
1238 1238
  *  - ``OC\Preview\Krita``
1239 1239
  */
1240 1240
 'enabledPreviewProviders' => [
1241
-	'OC\Preview\PNG',
1242
-	'OC\Preview\JPEG',
1243
-	'OC\Preview\GIF',
1244
-	'OC\Preview\BMP',
1245
-	'OC\Preview\XBitmap',
1246
-	'OC\Preview\MP3',
1247
-	'OC\Preview\TXT',
1248
-	'OC\Preview\MarkDown',
1249
-	'OC\Preview\OpenDocument',
1250
-	'OC\Preview\Krita',
1241
+    'OC\Preview\PNG',
1242
+    'OC\Preview\JPEG',
1243
+    'OC\Preview\GIF',
1244
+    'OC\Preview\BMP',
1245
+    'OC\Preview\XBitmap',
1246
+    'OC\Preview\MP3',
1247
+    'OC\Preview\TXT',
1248
+    'OC\Preview\MarkDown',
1249
+    'OC\Preview\OpenDocument',
1250
+    'OC\Preview\Krita',
1251 1251
 ],
1252 1252
 
1253 1253
 /**
@@ -1337,11 +1337,11 @@  discard block
 block discarded – undo
1337 1337
 
1338 1338
 /**
1339 1339
  * Extra SSL options to be used for configuration.
1340
-  *
1340
+ *
1341 1341
  * Defaults to an empty array.
1342 1342
  */
1343 1343
 'openssl' => [
1344
-	'config' => '/absolute/location/of/openssl.cnf',
1344
+    'config' => '/absolute/location/of/openssl.cnf',
1345 1345
 ],
1346 1346
 
1347 1347
 /**
@@ -1392,20 +1392,20 @@  discard block
 block discarded – undo
1392 1392
  * See https://redis.io/topics/encryption for more information.
1393 1393
  */
1394 1394
 'redis' => [
1395
-	'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
1396
-	'port' => 6379,
1397
-	'timeout' => 0.0,
1398
-	'read_timeout' => 0.0,
1399
-	'user' =>  '', // Optional: if not defined, no password will be used.
1400
-	'password' => '', // Optional: if not defined, no password will be used.
1401
-	'dbindex' => 0, // Optional: if undefined SELECT will not run and will use Redis Server's default DB Index.
1402
-	// If redis in-transit encryption is enabled, provide certificates
1403
-	// SSL context https://www.php.net/manual/en/context.ssl.php
1404
-	'ssl_context' => [
1405
-		'local_cert' => '/certs/redis.crt',
1406
-		'local_pk' => '/certs/redis.key',
1407
-		'cafile' => '/certs/ca.crt'
1408
-	]
1395
+    'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
1396
+    'port' => 6379,
1397
+    'timeout' => 0.0,
1398
+    'read_timeout' => 0.0,
1399
+    'user' =>  '', // Optional: if not defined, no password will be used.
1400
+    'password' => '', // Optional: if not defined, no password will be used.
1401
+    'dbindex' => 0, // Optional: if undefined SELECT will not run and will use Redis Server's default DB Index.
1402
+    // If redis in-transit encryption is enabled, provide certificates
1403
+    // SSL context https://www.php.net/manual/en/context.ssl.php
1404
+    'ssl_context' => [
1405
+        'local_cert' => '/certs/redis.crt',
1406
+        'local_pk' => '/certs/redis.key',
1407
+        'cafile' => '/certs/ca.crt'
1408
+    ]
1409 1409
 ],
1410 1410
 
1411 1411
 /**
@@ -1431,22 +1431,22 @@  discard block
 block discarded – undo
1431 1431
  * https://github.com/phpredis/phpredis/commit/c5994f2a42b8a348af92d3acb4edff1328ad8ce1
1432 1432
  */
1433 1433
 'redis.cluster' => [
1434
-	'seeds' => [ // provide some or all of the cluster servers to bootstrap discovery, port required
1435
-		'localhost:7000',
1436
-		'localhost:7001',
1437
-	],
1438
-	'timeout' => 0.0,
1439
-	'read_timeout' => 0.0,
1440
-	'failover_mode' => \RedisCluster::FAILOVER_ERROR,
1441
-	'user' =>  '', // Optional: if not defined, no password will be used.
1442
-	'password' => '', // Optional: if not defined, no password will be used.
1443
-	// If redis in-transit encryption is enabled, provide certificates
1444
-	// SSL context https://www.php.net/manual/en/context.ssl.php
1445
-	'ssl_context' => [
1446
-		'local_cert' => '/certs/redis.crt',
1447
-		'local_pk' => '/certs/redis.key',
1448
-		'cafile' => '/certs/ca.crt'
1449
-	]
1434
+    'seeds' => [ // provide some or all of the cluster servers to bootstrap discovery, port required
1435
+        'localhost:7000',
1436
+        'localhost:7001',
1437
+    ],
1438
+    'timeout' => 0.0,
1439
+    'read_timeout' => 0.0,
1440
+    'failover_mode' => \RedisCluster::FAILOVER_ERROR,
1441
+    'user' =>  '', // Optional: if not defined, no password will be used.
1442
+    'password' => '', // Optional: if not defined, no password will be used.
1443
+    // If redis in-transit encryption is enabled, provide certificates
1444
+    // SSL context https://www.php.net/manual/en/context.ssl.php
1445
+    'ssl_context' => [
1446
+        'local_cert' => '/certs/redis.crt',
1447
+        'local_pk' => '/certs/redis.key',
1448
+        'cafile' => '/certs/ca.crt'
1449
+    ]
1450 1450
 ],
1451 1451
 
1452 1452
 
@@ -1454,36 +1454,36 @@  discard block
 block discarded – undo
1454 1454
  * Server details for one or more memcached servers to use for memory caching.
1455 1455
  */
1456 1456
 'memcached_servers' => [
1457
-	// hostname, port and optional weight
1458
-	// or path and port 0 for unix socket. Also see:
1459
-	// https://www.php.net/manual/en/memcached.addservers.php
1460
-	// https://www.php.net/manual/en/memcached.addserver.php
1461
-	['localhost', 11211],
1462
-	//array('other.host.local', 11211),
1457
+    // hostname, port and optional weight
1458
+    // or path and port 0 for unix socket. Also see:
1459
+    // https://www.php.net/manual/en/memcached.addservers.php
1460
+    // https://www.php.net/manual/en/memcached.addserver.php
1461
+    ['localhost', 11211],
1462
+    //array('other.host.local', 11211),
1463 1463
 ],
1464 1464
 
1465 1465
 /**
1466 1466
  * Connection options for memcached
1467 1467
  */
1468 1468
 'memcached_options' => [
1469
-	// Set timeouts to 50ms
1470
-	\Memcached::OPT_CONNECT_TIMEOUT => 50,
1471
-	\Memcached::OPT_RETRY_TIMEOUT =>   50,
1472
-	\Memcached::OPT_SEND_TIMEOUT =>    50,
1473
-	\Memcached::OPT_RECV_TIMEOUT =>    50,
1474
-	\Memcached::OPT_POLL_TIMEOUT =>    50,
1469
+    // Set timeouts to 50ms
1470
+    \Memcached::OPT_CONNECT_TIMEOUT => 50,
1471
+    \Memcached::OPT_RETRY_TIMEOUT =>   50,
1472
+    \Memcached::OPT_SEND_TIMEOUT =>    50,
1473
+    \Memcached::OPT_RECV_TIMEOUT =>    50,
1474
+    \Memcached::OPT_POLL_TIMEOUT =>    50,
1475 1475
 
1476
-	// Enable compression
1477
-	\Memcached::OPT_COMPRESSION =>          true,
1476
+    // Enable compression
1477
+    \Memcached::OPT_COMPRESSION =>          true,
1478 1478
 
1479
-	// Turn on consistent hashing
1480
-	\Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
1479
+    // Turn on consistent hashing
1480
+    \Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
1481 1481
 
1482
-	// Enable Binary Protocol
1483
-	\Memcached::OPT_BINARY_PROTOCOL =>      true,
1482
+    // Enable Binary Protocol
1483
+    \Memcached::OPT_BINARY_PROTOCOL =>      true,
1484 1484
 
1485
-	// Binary serializer vill be enabled if the igbinary PECL module is available
1486
-	//\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
1485
+    // Binary serializer vill be enabled if the igbinary PECL module is available
1486
+    //\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
1487 1487
 ],
1488 1488
 
1489 1489
 
@@ -1529,63 +1529,63 @@  discard block
 block discarded – undo
1529 1529
  * One way to test is applying for a trystack account at http://trystack.org/
1530 1530
  */
1531 1531
 'objectstore' => [
1532
-	'class' => 'OC\\Files\\ObjectStore\\Swift',
1533
-	'arguments' => [
1534
-		// trystack will use your facebook id as the username
1535
-		'username' => 'facebook100000123456789',
1536
-		// in the trystack dashboard go to user -> settings -> API Password to
1537
-		// generate a password
1538
-		'password' => 'Secr3tPaSSWoRdt7',
1539
-		// must already exist in the objectstore, name can be different
1540
-		'container' => 'nextcloud',
1541
-		// prefix to prepend to the fileid, default is 'oid:urn:'
1542
-		'objectPrefix' => 'oid:urn:',
1543
-		// create the container if it does not exist. default is false
1544
-		'autocreate' => true,
1545
-		// required, dev-/trystack defaults to 'RegionOne'
1546
-		'region' => 'RegionOne',
1547
-		// The Identity / Keystone endpoint
1548
-		'url' => 'http://8.21.28.222:5000/v2.0',
1549
-		// uploadPartSize: size of the uploaded chunks, defaults to 524288000
1550
-		'uploadPartSize' => 524288000,
1551
-		// required on dev-/trystack
1552
-		'tenantName' => 'facebook100000123456789',
1553
-		// dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
1554
-		// if omitted
1555
-		'serviceName' => 'swift',
1556
-		// The Interface / url Type, optional
1557
-		'urlType' => 'internal'
1558
-	],
1532
+    'class' => 'OC\\Files\\ObjectStore\\Swift',
1533
+    'arguments' => [
1534
+        // trystack will use your facebook id as the username
1535
+        'username' => 'facebook100000123456789',
1536
+        // in the trystack dashboard go to user -> settings -> API Password to
1537
+        // generate a password
1538
+        'password' => 'Secr3tPaSSWoRdt7',
1539
+        // must already exist in the objectstore, name can be different
1540
+        'container' => 'nextcloud',
1541
+        // prefix to prepend to the fileid, default is 'oid:urn:'
1542
+        'objectPrefix' => 'oid:urn:',
1543
+        // create the container if it does not exist. default is false
1544
+        'autocreate' => true,
1545
+        // required, dev-/trystack defaults to 'RegionOne'
1546
+        'region' => 'RegionOne',
1547
+        // The Identity / Keystone endpoint
1548
+        'url' => 'http://8.21.28.222:5000/v2.0',
1549
+        // uploadPartSize: size of the uploaded chunks, defaults to 524288000
1550
+        'uploadPartSize' => 524288000,
1551
+        // required on dev-/trystack
1552
+        'tenantName' => 'facebook100000123456789',
1553
+        // dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
1554
+        // if omitted
1555
+        'serviceName' => 'swift',
1556
+        // The Interface / url Type, optional
1557
+        'urlType' => 'internal'
1558
+    ],
1559 1559
 ],
1560 1560
 
1561 1561
 /**
1562 1562
  * To use swift V3
1563 1563
  */
1564 1564
 'objectstore' => [
1565
-	'class' => 'OC\\Files\\ObjectStore\\Swift',
1566
-	'arguments' => [
1567
-		'autocreate' => true,
1568
-		'user' => [
1569
-			'name' => 'swift',
1570
-			'password' => 'swift',
1571
-			'domain' => [
1572
-				'name' => 'default',
1573
-			],
1574
-		],
1575
-		'scope' => [
1576
-			'project' => [
1577
-				'name' => 'service',
1578
-				'domain' => [
1579
-					'name' => 'default',
1580
-				],
1581
-			],
1582
-		],
1583
-		'tenantName' => 'service',
1584
-		'serviceName' => 'swift',
1585
-		'region' => 'regionOne',
1586
-		'url' => 'http://yourswifthost:5000/v3',
1587
-		'bucket' => 'nextcloud',
1588
-	],
1565
+    'class' => 'OC\\Files\\ObjectStore\\Swift',
1566
+    'arguments' => [
1567
+        'autocreate' => true,
1568
+        'user' => [
1569
+            'name' => 'swift',
1570
+            'password' => 'swift',
1571
+            'domain' => [
1572
+                'name' => 'default',
1573
+            ],
1574
+        ],
1575
+        'scope' => [
1576
+            'project' => [
1577
+                'name' => 'service',
1578
+                'domain' => [
1579
+                    'name' => 'default',
1580
+                ],
1581
+            ],
1582
+        ],
1583
+        'tenantName' => 'service',
1584
+        'serviceName' => 'swift',
1585
+        'region' => 'regionOne',
1586
+        'url' => 'http://yourswifthost:5000/v3',
1587
+        'bucket' => 'nextcloud',
1588
+    ],
1589 1589
 ],
1590 1590
 
1591 1591
 /**
@@ -1753,11 +1753,11 @@  discard block
 block discarded – undo
1753 1753
  * does not verify the server cert except --ssl-verify-server-cert is passed manually.
1754 1754
  */
1755 1755
 'dbdriveroptions' => [
1756
-	PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
1757
-	PDO::MYSQL_ATTR_SSL_KEY => '/file/path/to/mysql-client-key.pem',
1758
-	PDO::MYSQL_ATTR_SSL_CERT => '/file/path/to/mysql-client-cert.pem',
1759
-	PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false,
1760
-	PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
1756
+    PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
1757
+    PDO::MYSQL_ATTR_SSL_KEY => '/file/path/to/mysql-client-key.pem',
1758
+    PDO::MYSQL_ATTR_SSL_CERT => '/file/path/to/mysql-client-cert.pem',
1759
+    PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => false,
1760
+    PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
1761 1761
 ],
1762 1762
 
1763 1763
 /**
@@ -1832,10 +1832,10 @@  discard block
 block discarded – undo
1832 1832
  *  - pgsql (PostgreSQL)
1833 1833
  */
1834 1834
 'supportedDatabases' => [
1835
-	'sqlite',
1836
-	'mysql',
1837
-	'pgsql',
1838
-	'oci',
1835
+    'sqlite',
1836
+    'mysql',
1837
+    'pgsql',
1838
+    'oci',
1839 1839
 ],
1840 1840
 
1841 1841
 /**
@@ -2181,8 +2181,8 @@  discard block
 block discarded – undo
2181 2181
  * WARNING: only use this if you know what you are doing
2182 2182
  */
2183 2183
 'csrf.optout' => [
2184
-	'/^WebDAVFS/', // OS X Finder
2185
-	'/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
2184
+    '/^WebDAVFS/', // OS X Finder
2185
+    '/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
2186 2186
 ],
2187 2187
 
2188 2188
 /**
Please login to merge, or discard this patch.