Passed
Push — master ( 138fdf...3b155c )
by Morris
21:50 queued 11s
created
config/config.sample.php 2 patches
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
   ),
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
  *
193 193
  * Defaults to ``60*60*24*15`` seconds (15 days)
194 194
  */
195
-'remember_login_cookie_lifetime' => 60*60*24*15,
195
+'remember_login_cookie_lifetime' => 60 * 60 * 24 * 15,
196 196
 
197 197
 /**
198 198
  * The lifetime of a session after inactivity.
@@ -1074,7 +1074,7 @@  discard block
 block discarded – undo
1074 1074
  * See https://redis.io/topics/cluster-spec for details about the Redis cluster
1075 1075
  */
1076 1076
 'redis.cluster' => [
1077
-	'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
1077
+	'seeds' => [// provide some/all of the cluster servers to bootstrap discovery, port required
1078 1078
 		'localhost:7000',
1079 1079
 		'localhost:7001'
1080 1080
 	],
@@ -1138,7 +1138,7 @@  discard block
 block discarded – undo
1138 1138
  *
1139 1139
  * Defaults to ``60*60*24`` (1 day)
1140 1140
  */
1141
-'cache_chunk_gc_ttl' => 60*60*24,
1141
+'cache_chunk_gc_ttl' => 60 * 60 * 24,
1142 1142
 
1143 1143
 /**
1144 1144
  * Using Object Store with Nextcloud
@@ -1462,7 +1462,7 @@  discard block
 block discarded – undo
1462 1462
  * Defaults to ``60*60`` seconds (1 hour) or the php
1463 1463
  *             max_execution_time, whichever is higher.
1464 1464
  */
1465
-'filelocking.ttl' => 60*60,
1465
+'filelocking.ttl' => 60 * 60,
1466 1466
 
1467 1467
 /**
1468 1468
  * Memory caching backend for file locking
Please login to merge, or discard this patch.
Indentation   +138 added lines, -138 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
 /**
@@ -283,10 +283,10 @@  discard block
 block discarded – undo
283 283
  * IMAP (OC_User_IMAP), SMB (OC_User_SMB), and FTP (OC_User_FTP).
284 284
  */
285 285
 'user_backends' => array(
286
-	array(
287
-		'class' => 'OC_User_IMAP',
288
-		'arguments' => array('{imap.gmail.com:993/imap/ssl}INBOX')
289
-	)
286
+    array(
287
+        'class' => 'OC_User_IMAP',
288
+        'arguments' => array('{imap.gmail.com:993/imap/ssl}INBOX')
289
+    )
290 290
 ),
291 291
 
292 292
 /**
@@ -670,10 +670,10 @@  discard block
 block discarded – undo
670 670
  *  - www.edri.org
671 671
  */
672 672
 'connectivity_check_domains' => array(
673
-	'www.nextcloud.com',
674
-	'www.startpage.com',
675
-	'www.eff.org',
676
-	'www.edri.org'
673
+    'www.nextcloud.com',
674
+    'www.startpage.com',
675
+    'www.eff.org',
676
+    'www.edri.org'
677 677
 ),
678 678
 
679 679
 /**
@@ -789,9 +789,9 @@  discard block
 block discarded – undo
789 789
  * Defaults to an empty array.
790 790
  */
791 791
 'log.condition' => [
792
-	'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
793
-	'users' => ['sample-user'],
794
-	'apps' => ['files'],
792
+    'shared_secret' => '57b58edb6637fe3059b3595cf9c41b9',
793
+    'users' => ['sample-user'],
794
+    'apps' => ['files'],
795 795
 ],
796 796
 
797 797
 /**
@@ -845,18 +845,18 @@  discard block
 block discarded – undo
845 845
  *  - iOS client app id: ``1125420102``
846 846
  */
847 847
 'customclient_desktop' =>
848
-	'https://nextcloud.com/install/#install-clients',
848
+    'https://nextcloud.com/install/#install-clients',
849 849
 'customclient_android' =>
850
-	'https://play.google.com/store/apps/details?id=com.nextcloud.client',
850
+    'https://play.google.com/store/apps/details?id=com.nextcloud.client',
851 851
 'customclient_ios' =>
852
-	'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8',
852
+    'https://itunes.apple.com/us/app/nextcloud/id1125420102?mt=8',
853 853
 'customclient_ios_appid' =>
854
-		'1125420102',
854
+        '1125420102',
855 855
 /**
856
- * Apps
857
- *
858
- * Options for the Apps folder, Apps store, and App code checker.
859
- */
856
+         * Apps
857
+         *
858
+         * Options for the Apps folder, Apps store, and App code checker.
859
+         */
860 860
 
861 861
 /**
862 862
  * When enabled, admins may install apps from the Nextcloud app store.
@@ -874,11 +874,11 @@  discard block
 block discarded – undo
874 874
  * indicates if a Web server can write files to that folder.
875 875
  */
876 876
 'apps_paths' => array(
877
-	array(
878
-		'path'=> '/var/www/nextcloud/apps',
879
-		'url' => '/apps',
880
-		'writable' => true,
881
-	),
877
+    array(
878
+        'path'=> '/var/www/nextcloud/apps',
879
+        'url' => '/apps',
880
+        'writable' => true,
881
+    ),
882 882
 ),
883 883
 
884 884
 /**
@@ -943,8 +943,8 @@  discard block
 block discarded – undo
943 943
  * Defaults to ``''`` (empty string)
944 944
  */
945 945
 'preview_office_cl_parameters' =>
946
-	' --headless --nologo --nofirststartwizard --invisible --norestore '.
947
-	'--convert-to png --outdir ',
946
+    ' --headless --nologo --nofirststartwizard --invisible --norestore '.
947
+    '--convert-to png --outdir ',
948 948
 
949 949
 /**
950 950
  * Only register providers that have been explicitly enabled
@@ -988,15 +988,15 @@  discard block
 block discarded – undo
988 988
  *  - OC\Preview\XBitmap
989 989
  */
990 990
 'enabledPreviewProviders' => array(
991
-	'OC\Preview\PNG',
992
-	'OC\Preview\JPEG',
993
-	'OC\Preview\GIF',
994
-	'OC\Preview\HEIC',
995
-	'OC\Preview\BMP',
996
-	'OC\Preview\XBitmap',
997
-	'OC\Preview\MP3',
998
-	'OC\Preview\TXT',
999
-	'OC\Preview\MarkDown'
991
+    'OC\Preview\PNG',
992
+    'OC\Preview\JPEG',
993
+    'OC\Preview\GIF',
994
+    'OC\Preview\HEIC',
995
+    'OC\Preview\BMP',
996
+    'OC\Preview\XBitmap',
997
+    'OC\Preview\MP3',
998
+    'OC\Preview\TXT',
999
+    'OC\Preview\MarkDown'
1000 1000
 ),
1001 1001
 
1002 1002
 /**
@@ -1072,11 +1072,11 @@  discard block
 block discarded – undo
1072 1072
 
1073 1073
 /**
1074 1074
  * Extra SSL options to be used for configuration.
1075
-  *
1075
+ *
1076 1076
  * Defaults to an empty array.
1077 1077
  */
1078 1078
 'openssl' => array(
1079
-	'config' => '/absolute/location/of/openssl.cnf',
1079
+    'config' => '/absolute/location/of/openssl.cnf',
1080 1080
 ),
1081 1081
 
1082 1082
 /**
@@ -1124,11 +1124,11 @@  discard block
 block discarded – undo
1124 1124
  * for more information.
1125 1125
  */
1126 1126
 'redis' => [
1127
-	'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
1128
-	'port' => 6379,
1129
-	'timeout' => 0.0,
1130
-	'password' => '', // Optional, if not defined no password will be used.
1131
-	'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
1127
+    'host' => 'localhost', // can also be a unix domain socket: '/tmp/redis.sock'
1128
+    'port' => 6379,
1129
+    'timeout' => 0.0,
1130
+    'password' => '', // Optional, if not defined no password will be used.
1131
+    'dbindex' => 0, // Optional, if undefined SELECT will not run and will use Redis Server's default DB Index.
1132 1132
 ],
1133 1133
 
1134 1134
 /**
@@ -1154,13 +1154,13 @@  discard block
 block discarded – undo
1154 1154
  * See https://redis.io/topics/cluster-spec for details about the Redis cluster
1155 1155
  */
1156 1156
 'redis.cluster' => [
1157
-	'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
1158
-		'localhost:7000',
1159
-		'localhost:7001'
1160
-	],
1161
-	'timeout' => 0.0,
1162
-	'read_timeout' => 0.0,
1163
-	'failover_mode' => \RedisCluster::FAILOVER_ERROR
1157
+    'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
1158
+        'localhost:7000',
1159
+        'localhost:7001'
1160
+    ],
1161
+    'timeout' => 0.0,
1162
+    'read_timeout' => 0.0,
1163
+    'failover_mode' => \RedisCluster::FAILOVER_ERROR
1164 1164
 ],
1165 1165
 
1166 1166
 
@@ -1168,35 +1168,35 @@  discard block
 block discarded – undo
1168 1168
  * Server details for one or more memcached servers to use for memory caching.
1169 1169
  */
1170 1170
 'memcached_servers' => array(
1171
-	// hostname, port and optional weight. Also see:
1172
-	// http://www.php.net/manual/en/memcached.addservers.php
1173
-	// http://www.php.net/manual/en/memcached.addserver.php
1174
-	array('localhost', 11211),
1175
-	//array('other.host.local', 11211),
1171
+    // hostname, port and optional weight. Also see:
1172
+    // http://www.php.net/manual/en/memcached.addservers.php
1173
+    // http://www.php.net/manual/en/memcached.addserver.php
1174
+    array('localhost', 11211),
1175
+    //array('other.host.local', 11211),
1176 1176
 ),
1177 1177
 
1178 1178
 /**
1179 1179
  * Connection options for memcached, see http://apprize.info/php/scaling/15.html
1180 1180
  */
1181 1181
 'memcached_options' => array(
1182
-	// Set timeouts to 50ms
1183
-	\Memcached::OPT_CONNECT_TIMEOUT => 50,
1184
-	\Memcached::OPT_RETRY_TIMEOUT =>   50,
1185
-	\Memcached::OPT_SEND_TIMEOUT =>    50,
1186
-	\Memcached::OPT_RECV_TIMEOUT =>    50,
1187
-	\Memcached::OPT_POLL_TIMEOUT =>    50,
1182
+    // Set timeouts to 50ms
1183
+    \Memcached::OPT_CONNECT_TIMEOUT => 50,
1184
+    \Memcached::OPT_RETRY_TIMEOUT =>   50,
1185
+    \Memcached::OPT_SEND_TIMEOUT =>    50,
1186
+    \Memcached::OPT_RECV_TIMEOUT =>    50,
1187
+    \Memcached::OPT_POLL_TIMEOUT =>    50,
1188 1188
 
1189
-	// Enable compression
1190
-	\Memcached::OPT_COMPRESSION =>          true,
1189
+    // Enable compression
1190
+    \Memcached::OPT_COMPRESSION =>          true,
1191 1191
 
1192
-	// Turn on consistent hashing
1193
-	\Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
1192
+    // Turn on consistent hashing
1193
+    \Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
1194 1194
 
1195
-	// Enable Binary Protocol
1196
-	\Memcached::OPT_BINARY_PROTOCOL =>      true,
1195
+    // Enable Binary Protocol
1196
+    \Memcached::OPT_BINARY_PROTOCOL =>      true,
1197 1197
 
1198
-	// Binary serializer vill be enabled if the igbinary PECL module is available
1199
-	//\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
1198
+    // Binary serializer vill be enabled if the igbinary PECL module is available
1199
+    //\Memcached::OPT_SERIALIZER => \Memcached::SERIALIZER_IGBINARY,
1200 1200
 ),
1201 1201
 
1202 1202
 
@@ -1242,61 +1242,61 @@  discard block
 block discarded – undo
1242 1242
  * One way to test is applying for a trystack account at http://trystack.org/
1243 1243
  */
1244 1244
 'objectstore' => [
1245
-	'class' => 'OC\\Files\\ObjectStore\\Swift',
1246
-	'arguments' => [
1247
-		// trystack will use your facebook id as the user name
1248
-		'username' => 'facebook100000123456789',
1249
-		// in the trystack dashboard go to user -> settings -> API Password to
1250
-		// generate a password
1251
-		'password' => 'Secr3tPaSSWoRdt7',
1252
-		// must already exist in the objectstore, name can be different
1253
-		'container' => 'nextcloud',
1254
-		// prefix to prepend to the fileid, default is 'oid:urn:'
1255
-		'objectPrefix' => 'oid:urn:',
1256
-		// create the container if it does not exist. default is false
1257
-		'autocreate' => true,
1258
-		// required, dev-/trystack defaults to 'RegionOne'
1259
-		'region' => 'RegionOne',
1260
-		// The Identity / Keystone endpoint
1261
-		'url' => 'http://8.21.28.222:5000/v2.0',
1262
-		// required on dev-/trystack
1263
-		'tenantName' => 'facebook100000123456789',
1264
-		// dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
1265
-		// if omitted
1266
-		'serviceName' => 'swift',
1267
-		// The Interface / url Type, optional
1268
-		'urlType' => 'internal'
1269
-	],
1245
+    'class' => 'OC\\Files\\ObjectStore\\Swift',
1246
+    'arguments' => [
1247
+        // trystack will use your facebook id as the user name
1248
+        'username' => 'facebook100000123456789',
1249
+        // in the trystack dashboard go to user -> settings -> API Password to
1250
+        // generate a password
1251
+        'password' => 'Secr3tPaSSWoRdt7',
1252
+        // must already exist in the objectstore, name can be different
1253
+        'container' => 'nextcloud',
1254
+        // prefix to prepend to the fileid, default is 'oid:urn:'
1255
+        'objectPrefix' => 'oid:urn:',
1256
+        // create the container if it does not exist. default is false
1257
+        'autocreate' => true,
1258
+        // required, dev-/trystack defaults to 'RegionOne'
1259
+        'region' => 'RegionOne',
1260
+        // The Identity / Keystone endpoint
1261
+        'url' => 'http://8.21.28.222:5000/v2.0',
1262
+        // required on dev-/trystack
1263
+        'tenantName' => 'facebook100000123456789',
1264
+        // dev-/trystack uses swift by default, the lib defaults to 'cloudFiles'
1265
+        // if omitted
1266
+        'serviceName' => 'swift',
1267
+        // The Interface / url Type, optional
1268
+        'urlType' => 'internal'
1269
+    ],
1270 1270
 ],
1271 1271
 
1272 1272
 /**
1273 1273
  * To use swift V3
1274 1274
  */
1275 1275
 'objectstore' => [
1276
-	'class' => 'OC\\Files\\ObjectStore\\Swift',
1277
-	'arguments' => [
1278
-		'autocreate' => true,
1279
-		'user' => [
1280
-			'name' => 'swift',
1281
-			'password' => 'swift',
1282
-			'domain' => [
1283
-				'name' => 'default',
1284
-			],
1285
-		],
1286
-		'scope' => [
1287
-			'project' => [
1288
-				'name' => 'service',
1289
-				'domain' => [
1290
-					'name' => 'default',
1291
-				],
1292
-			],
1293
-		],
1294
-		'tenantName' => 'service',
1295
-		'serviceName' => 'swift',
1296
-		'region' => 'regionOne',
1297
-		'url' => 'http://yourswifthost:5000/v3',
1298
-		'bucket' => 'nextcloud',
1299
-	],
1276
+    'class' => 'OC\\Files\\ObjectStore\\Swift',
1277
+    'arguments' => [
1278
+        'autocreate' => true,
1279
+        'user' => [
1280
+            'name' => 'swift',
1281
+            'password' => 'swift',
1282
+            'domain' => [
1283
+                'name' => 'default',
1284
+            ],
1285
+        ],
1286
+        'scope' => [
1287
+            'project' => [
1288
+                'name' => 'service',
1289
+                'domain' => [
1290
+                    'name' => 'default',
1291
+                ],
1292
+            ],
1293
+        ],
1294
+        'tenantName' => 'service',
1295
+        'serviceName' => 'swift',
1296
+        'region' => 'regionOne',
1297
+        'url' => 'http://yourswifthost:5000/v3',
1298
+        'bucket' => 'nextcloud',
1299
+    ],
1300 1300
 ],
1301 1301
 
1302 1302
 
@@ -1336,8 +1336,8 @@  discard block
 block discarded – undo
1336 1336
  * encryption in MySQL or specify a custom wait timeout on a cheap hoster.
1337 1337
  */
1338 1338
 'dbdriveroptions' => array(
1339
-	PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
1340
-	PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
1339
+    PDO::MYSQL_ATTR_SSL_CA => '/file/path/to/ca_cert.pem',
1340
+    PDO::MYSQL_ATTR_INIT_COMMAND => 'SET wait_timeout = 28800'
1341 1341
 ),
1342 1342
 
1343 1343
 /**
@@ -1394,10 +1394,10 @@  discard block
 block discarded – undo
1394 1394
  *  - pgsql (PostgreSQL)
1395 1395
  */
1396 1396
 'supportedDatabases' => array(
1397
-	'sqlite',
1398
-	'mysql',
1399
-	'pgsql',
1400
-	'oci',
1397
+    'sqlite',
1398
+    'mysql',
1399
+    'pgsql',
1400
+    'oci',
1401 1401
 ),
1402 1402
 
1403 1403
 /**
@@ -1672,8 +1672,8 @@  discard block
 block discarded – undo
1672 1672
  * WARNING: only use this if you know what you are doing
1673 1673
  */
1674 1674
 'csrf.optout' => array(
1675
-	'/^WebDAVFS/', // OS X Finder
1676
-	'/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
1675
+    '/^WebDAVFS/', // OS X Finder
1676
+    '/^Microsoft-WebDAV-MiniRedir/', // Windows webdav drive
1677 1677
 ),
1678 1678
 
1679 1679
 /**
Please login to merge, or discard this patch.
lib/private/App/AppStore/Fetcher/CategoryFetcher.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -28,26 +28,26 @@
 block discarded – undo
28 28
 use OCP\ILogger;
29 29
 
30 30
 class CategoryFetcher extends Fetcher {
31
-	/**
32
-	 * @param Factory $appDataFactory
33
-	 * @param IClientService $clientService
34
-	 * @param ITimeFactory $timeFactory
35
-	 * @param IConfig $config
36
-	 * @param ILogger $logger
37
-	 */
38
-	public function __construct(Factory $appDataFactory,
39
-								IClientService $clientService,
40
-								ITimeFactory $timeFactory,
41
-								IConfig $config,
42
-								ILogger $logger) {
43
-		parent::__construct(
44
-			$appDataFactory,
45
-			$clientService,
46
-			$timeFactory,
47
-			$config,
48
-			$logger
49
-		);
50
-		$this->fileName = 'categories.json';
51
-		$this->endpointUrl = 'https://apps.nextcloud.com/api/v1/categories.json';
52
-	}
31
+    /**
32
+     * @param Factory $appDataFactory
33
+     * @param IClientService $clientService
34
+     * @param ITimeFactory $timeFactory
35
+     * @param IConfig $config
36
+     * @param ILogger $logger
37
+     */
38
+    public function __construct(Factory $appDataFactory,
39
+                                IClientService $clientService,
40
+                                ITimeFactory $timeFactory,
41
+                                IConfig $config,
42
+                                ILogger $logger) {
43
+        parent::__construct(
44
+            $appDataFactory,
45
+            $clientService,
46
+            $timeFactory,
47
+            $config,
48
+            $logger
49
+        );
50
+        $this->fileName = 'categories.json';
51
+        $this->endpointUrl = 'https://apps.nextcloud.com/api/v1/categories.json';
52
+    }
53 53
 }
Please login to merge, or discard this patch.
apps/oauth2/lib/Db/Client.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -34,20 +34,20 @@
 block discarded – undo
34 34
  * @method void setName(string $name)
35 35
  */
36 36
 class Client extends Entity {
37
-	/** @var string */
38
-	protected $name;
39
-	/** @var string */
40
-	protected $redirectUri;
41
-	/** @var string */
42
-	protected $clientIdentifier;
43
-	/** @var string */
44
-	protected $secret;
37
+    /** @var string */
38
+    protected $name;
39
+    /** @var string */
40
+    protected $redirectUri;
41
+    /** @var string */
42
+    protected $clientIdentifier;
43
+    /** @var string */
44
+    protected $secret;
45 45
 
46
-	public function __construct() {
47
-		$this->addType('id', 'int');
48
-		$this->addType('name', 'string');
49
-		$this->addType('redirect_uri', 'string');
50
-		$this->addType('client_identifier', 'string');
51
-		$this->addType('secret', 'string');
52
-	}
46
+    public function __construct() {
47
+        $this->addType('id', 'int');
48
+        $this->addType('name', 'string');
49
+        $this->addType('redirect_uri', 'string');
50
+        $this->addType('client_identifier', 'string');
51
+        $this->addType('secret', 'string');
52
+    }
53 53
 }
Please login to merge, or discard this patch.
apps/oauth2/lib/Db/AccessToken.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -34,20 +34,20 @@
 block discarded – undo
34 34
  * @method void setHashedCode(string $token)
35 35
  */
36 36
 class AccessToken extends Entity {
37
-	/** @var int */
38
-	protected $tokenId;
39
-	/** @var int */
40
-	protected $clientId;
41
-	/** @var string */
42
-	protected $hashedCode;
43
-	/** @var string */
44
-	protected $encryptedToken;
37
+    /** @var int */
38
+    protected $tokenId;
39
+    /** @var int */
40
+    protected $clientId;
41
+    /** @var string */
42
+    protected $hashedCode;
43
+    /** @var string */
44
+    protected $encryptedToken;
45 45
 
46
-	public function __construct() {
47
-		$this->addType('id', 'int');
48
-		$this->addType('token_id', 'int');
49
-		$this->addType('client_id', 'int');
50
-		$this->addType('hashed_code', 'string');
51
-		$this->addType('encrypted_token', 'string');
52
-	}
46
+    public function __construct() {
47
+        $this->addType('id', 'int');
48
+        $this->addType('token_id', 'int');
49
+        $this->addType('client_id', 'int');
50
+        $this->addType('hashed_code', 'string');
51
+        $this->addType('encrypted_token', 'string');
52
+    }
53 53
 }
Please login to merge, or discard this patch.
lib/public/Authentication/LoginCredentials/ICredentials.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -31,31 +31,31 @@
 block discarded – undo
31 31
  */
32 32
 interface ICredentials {
33 33
 
34
-	/**
35
-	 * Get the user UID
36
-	 *
37
-	 * @since 12
38
-	 *
39
-	 * @return string
40
-	 */
41
-	public function getUID();
34
+    /**
35
+     * Get the user UID
36
+     *
37
+     * @since 12
38
+     *
39
+     * @return string
40
+     */
41
+    public function getUID();
42 42
 
43
-	/**
44
-	 * Get the login name the users used to login
45
-	 *
46
-	 * @since 12
47
-	 *
48
-	 * @return string
49
-	 */
50
-	public function getLoginName();
43
+    /**
44
+     * Get the login name the users used to login
45
+     *
46
+     * @since 12
47
+     *
48
+     * @return string
49
+     */
50
+    public function getLoginName();
51 51
 
52
-	/**
53
-	 * Get the password
54
-	 *
55
-	 * @since 12
56
-	 *
57
-	 * @return string
58
-	 * @throws PasswordUnavailableException
59
-	 */
60
-	public function getPassword();
52
+    /**
53
+     * Get the password
54
+     *
55
+     * @since 12
56
+     *
57
+     * @return string
58
+     * @throws PasswordUnavailableException
59
+     */
60
+    public function getPassword();
61 61
 }
Please login to merge, or discard this patch.
core/templates/update.use-cli.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 
15 15
 	<?php if ($_['tooBig']) { ?>
16 16
 		<div class="warning updateAnyways">
17
-			<?php p($l->t('I know that if I continue doing the update via web UI has the risk, that the request runs into a timeout and could cause data loss, but I have a backup and know how to restore my instance in case of a failure.' )); ?>
18
-			<a href="?IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup=IAmSuperSureToDoThis" class="button updateAnywaysButton"><?php p($l->t('Upgrade via web on my own risk' )); ?></a>
17
+			<?php p($l->t('I know that if I continue doing the update via web UI has the risk, that the request runs into a timeout and could cause data loss, but I have a backup and know how to restore my instance in case of a failure.')); ?>
18
+			<a href="?IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup=IAmSuperSureToDoThis" class="button updateAnywaysButton"><?php p($l->t('Upgrade via web on my own risk')); ?></a>
19 19
 		</div>
20 20
 	<?php } ?>
21 21
 
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@
 block discarded – undo
3 3
 		<h2 class="title"><?php p($l->t('Update needed')) ?></h2>
4 4
 		<div class="infogroup">
5 5
 			<?php if ($_['tooBig']) {
6
-				p($l->t('Please use the command line updater because you have a big instance with more than 50 users.'));
7
-			} else {
8
-				p($l->t('Please use the command line updater because automatic updating is disabled in the config.php.'));
9
-			} ?><br><br>
6
+                p($l->t('Please use the command line updater because you have a big instance with more than 50 users.'));
7
+            } else {
8
+                p($l->t('Please use the command line updater because automatic updating is disabled in the config.php.'));
9
+            } ?><br><br>
10 10
 			<?php
11
-			print_unescaped($l->t('For help, see the  <a target="_blank" rel="noreferrer noopener" href="%s">documentation</a>.', [link_to_docs('admin-cli-upgrade')])); ?><br><br>
11
+            print_unescaped($l->t('For help, see the  <a target="_blank" rel="noreferrer noopener" href="%s">documentation</a>.', [link_to_docs('admin-cli-upgrade')])); ?><br><br>
12 12
 		</div>
13 13
 	</div>
14 14
 
Please login to merge, or discard this patch.
settings/Activity/SecurityFilter.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -28,39 +28,39 @@
 block discarded – undo
28 28
 
29 29
 class SecurityFilter implements IFilter {
30 30
 
31
-	/** @var IURLGenerator */
32
-	private $urlGenerator;
31
+    /** @var IURLGenerator */
32
+    private $urlGenerator;
33 33
 
34
-	/** @var IL10N */
35
-	private $l10n;
34
+    /** @var IL10N */
35
+    private $l10n;
36 36
 
37
-	public function __construct(IURLGenerator $urlGenerator, IL10N $l10n) {
38
-		$this->urlGenerator = $urlGenerator;
39
-		$this->l10n = $l10n;
40
-	}
37
+    public function __construct(IURLGenerator $urlGenerator, IL10N $l10n) {
38
+        $this->urlGenerator = $urlGenerator;
39
+        $this->l10n = $l10n;
40
+    }
41 41
 
42
-	public function allowedApps() {
43
-		return [];
44
-	}
42
+    public function allowedApps() {
43
+        return [];
44
+    }
45 45
 
46
-	public function filterTypes(array $types) {
47
-		return array_intersect(['security'], $types);
48
-	}
46
+    public function filterTypes(array $types) {
47
+        return array_intersect(['security'], $types);
48
+    }
49 49
 
50
-	public function getIcon() {
51
-		return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/password.svg'));
52
-	}
50
+    public function getIcon() {
51
+        return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/password.svg'));
52
+    }
53 53
 
54
-	public function getIdentifier() {
55
-		return 'security';
56
-	}
54
+    public function getIdentifier() {
55
+        return 'security';
56
+    }
57 57
 
58
-	public function getName() {
59
-		return $this->l10n->t('Security');
60
-	}
58
+    public function getName() {
59
+        return $this->l10n->t('Security');
60
+    }
61 61
 
62
-	public function getPriority() {
63
-		return 30;
64
-	}
62
+    public function getPriority() {
63
+        return 30;
64
+    }
65 65
 
66 66
 }
Please login to merge, or discard this patch.
settings/Activity/SecuritySetting.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -27,39 +27,39 @@
 block discarded – undo
27 27
 
28 28
 class SecuritySetting implements ISetting {
29 29
 
30
-	/** @var IL10N */
31
-	private $l10n;
30
+    /** @var IL10N */
31
+    private $l10n;
32 32
 
33
-	public function __construct(IL10N $l10n) {
34
-		$this->l10n = $l10n;
35
-	}
33
+    public function __construct(IL10N $l10n) {
34
+        $this->l10n = $l10n;
35
+    }
36 36
 
37
-	public function canChangeMail() {
38
-		return false;
39
-	}
37
+    public function canChangeMail() {
38
+        return false;
39
+    }
40 40
 
41
-	public function canChangeStream() {
42
-		return false;
43
-	}
41
+    public function canChangeStream() {
42
+        return false;
43
+    }
44 44
 
45
-	public function getIdentifier() {
46
-		return 'security';
47
-	}
45
+    public function getIdentifier() {
46
+        return 'security';
47
+    }
48 48
 
49
-	public function getName() {
50
-		return $this->l10n->t('Security');
51
-	}
49
+    public function getName() {
50
+        return $this->l10n->t('Security');
51
+    }
52 52
 
53
-	public function getPriority() {
54
-		return 30;
55
-	}
53
+    public function getPriority() {
54
+        return 30;
55
+    }
56 56
 
57
-	public function isDefaultEnabledMail() {
58
-		return true;
59
-	}
57
+    public function isDefaultEnabledMail() {
58
+        return true;
59
+    }
60 60
 
61
-	public function isDefaultEnabledStream() {
62
-		return true;
63
-	}
61
+    public function isDefaultEnabledStream() {
62
+        return true;
63
+    }
64 64
 
65 65
 }
Please login to merge, or discard this patch.
lib/private/ServerContainer.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 
85 85
 		if (isset($this->namespaces[$namespace])) {
86 86
 			if (!isset($this->hasNoAppContainer[$namespace])) {
87
-				$applicationClassName = 'OCA\\' . $sensitiveNamespace . '\\AppInfo\\Application';
87
+				$applicationClassName = 'OCA\\'.$sensitiveNamespace.'\\AppInfo\\Application';
88 88
 				if (class_exists($applicationClassName)) {
89 89
 					new $applicationClassName();
90 90
 					if (isset($this->appContainers[$namespace])) {
Please login to merge, or discard this patch.
Indentation   +101 added lines, -101 removed lines patch added patch discarded remove patch
@@ -34,105 +34,105 @@
 block discarded – undo
34 34
  * @package OC
35 35
  */
36 36
 class ServerContainer extends SimpleContainer {
37
-	/** @var DIContainer[] */
38
-	protected $appContainers;
39
-
40
-	/** @var string[] */
41
-	protected $hasNoAppContainer;
42
-
43
-	/** @var string[] */
44
-	protected $namespaces;
45
-
46
-	/**
47
-	 * ServerContainer constructor.
48
-	 */
49
-	public function __construct() {
50
-		parent::__construct();
51
-		$this->appContainers = [];
52
-		$this->namespaces = [];
53
-		$this->hasNoAppContainer = [];
54
-	}
55
-
56
-	/**
57
-	 * @param string $appName
58
-	 * @param string $appNamespace
59
-	 */
60
-	public function registerNamespace($appName, $appNamespace) {
61
-		// Cut of OCA\ and lowercase
62
-		$appNamespace = strtolower(substr($appNamespace, strrpos($appNamespace, '\\') + 1));
63
-		$this->namespaces[$appNamespace] = $appName;
64
-	}
65
-
66
-	/**
67
-	 * @param string $appName
68
-	 * @param DIContainer $container
69
-	 */
70
-	public function registerAppContainer($appName, DIContainer $container) {
71
-		$this->appContainers[strtolower(App::buildAppNamespace($appName, ''))] = $container;
72
-	}
73
-
74
-	/**
75
-	 * @param string $namespace
76
-	 * @param string $sensitiveNamespace
77
-	 * @return DIContainer
78
-	 * @throws QueryException
79
-	 */
80
-	protected function getAppContainer($namespace, $sensitiveNamespace) {
81
-		if (isset($this->appContainers[$namespace])) {
82
-			return $this->appContainers[$namespace];
83
-		}
84
-
85
-		if (isset($this->namespaces[$namespace])) {
86
-			if (!isset($this->hasNoAppContainer[$namespace])) {
87
-				$applicationClassName = 'OCA\\' . $sensitiveNamespace . '\\AppInfo\\Application';
88
-				if (class_exists($applicationClassName)) {
89
-					new $applicationClassName();
90
-					if (isset($this->appContainers[$namespace])) {
91
-						return $this->appContainers[$namespace];
92
-					}
93
-				}
94
-				$this->hasNoAppContainer[$namespace] = true;
95
-			}
96
-
97
-			return new DIContainer($this->namespaces[$namespace]);
98
-		}
99
-		throw new QueryException();
100
-	}
101
-
102
-	/**
103
-	 * @param string $name name of the service to query for
104
-	 * @return mixed registered service for the given $name
105
-	 * @throws QueryException if the query could not be resolved
106
-	 */
107
-	public function query($name) {
108
-		$name = $this->sanitizeName($name);
109
-
110
-		if (isset($this[$name])) {
111
-			return $this[$name];
112
-		}
113
-
114
-		// In case the service starts with OCA\ we try to find the service in
115
-		// the apps container first.
116
-		if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) {
117
-			$segments = explode('\\', $name);
118
-			try {
119
-				$appContainer = $this->getAppContainer(strtolower($segments[1]), $segments[1]);
120
-				return $appContainer->queryNoFallback($name);
121
-			} catch (QueryException $e) {
122
-				// Didn't find the service or the respective app container,
123
-				// ignore it and fall back to the core container.
124
-			}
125
-		} else if (strpos($name, 'OC\\Settings\\') === 0 && substr_count($name, '\\') >= 3) {
126
-			$segments = explode('\\', $name);
127
-			try {
128
-				$appContainer = $this->getAppContainer(strtolower($segments[1]), $segments[1]);
129
-				return $appContainer->queryNoFallback($name);
130
-			} catch (QueryException $e) {
131
-				// Didn't find the service or the respective app container,
132
-				// ignore it and fall back to the core container.
133
-			}
134
-		}
135
-
136
-		return parent::query($name);
137
-	}
37
+    /** @var DIContainer[] */
38
+    protected $appContainers;
39
+
40
+    /** @var string[] */
41
+    protected $hasNoAppContainer;
42
+
43
+    /** @var string[] */
44
+    protected $namespaces;
45
+
46
+    /**
47
+     * ServerContainer constructor.
48
+     */
49
+    public function __construct() {
50
+        parent::__construct();
51
+        $this->appContainers = [];
52
+        $this->namespaces = [];
53
+        $this->hasNoAppContainer = [];
54
+    }
55
+
56
+    /**
57
+     * @param string $appName
58
+     * @param string $appNamespace
59
+     */
60
+    public function registerNamespace($appName, $appNamespace) {
61
+        // Cut of OCA\ and lowercase
62
+        $appNamespace = strtolower(substr($appNamespace, strrpos($appNamespace, '\\') + 1));
63
+        $this->namespaces[$appNamespace] = $appName;
64
+    }
65
+
66
+    /**
67
+     * @param string $appName
68
+     * @param DIContainer $container
69
+     */
70
+    public function registerAppContainer($appName, DIContainer $container) {
71
+        $this->appContainers[strtolower(App::buildAppNamespace($appName, ''))] = $container;
72
+    }
73
+
74
+    /**
75
+     * @param string $namespace
76
+     * @param string $sensitiveNamespace
77
+     * @return DIContainer
78
+     * @throws QueryException
79
+     */
80
+    protected function getAppContainer($namespace, $sensitiveNamespace) {
81
+        if (isset($this->appContainers[$namespace])) {
82
+            return $this->appContainers[$namespace];
83
+        }
84
+
85
+        if (isset($this->namespaces[$namespace])) {
86
+            if (!isset($this->hasNoAppContainer[$namespace])) {
87
+                $applicationClassName = 'OCA\\' . $sensitiveNamespace . '\\AppInfo\\Application';
88
+                if (class_exists($applicationClassName)) {
89
+                    new $applicationClassName();
90
+                    if (isset($this->appContainers[$namespace])) {
91
+                        return $this->appContainers[$namespace];
92
+                    }
93
+                }
94
+                $this->hasNoAppContainer[$namespace] = true;
95
+            }
96
+
97
+            return new DIContainer($this->namespaces[$namespace]);
98
+        }
99
+        throw new QueryException();
100
+    }
101
+
102
+    /**
103
+     * @param string $name name of the service to query for
104
+     * @return mixed registered service for the given $name
105
+     * @throws QueryException if the query could not be resolved
106
+     */
107
+    public function query($name) {
108
+        $name = $this->sanitizeName($name);
109
+
110
+        if (isset($this[$name])) {
111
+            return $this[$name];
112
+        }
113
+
114
+        // In case the service starts with OCA\ we try to find the service in
115
+        // the apps container first.
116
+        if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) {
117
+            $segments = explode('\\', $name);
118
+            try {
119
+                $appContainer = $this->getAppContainer(strtolower($segments[1]), $segments[1]);
120
+                return $appContainer->queryNoFallback($name);
121
+            } catch (QueryException $e) {
122
+                // Didn't find the service or the respective app container,
123
+                // ignore it and fall back to the core container.
124
+            }
125
+        } else if (strpos($name, 'OC\\Settings\\') === 0 && substr_count($name, '\\') >= 3) {
126
+            $segments = explode('\\', $name);
127
+            try {
128
+                $appContainer = $this->getAppContainer(strtolower($segments[1]), $segments[1]);
129
+                return $appContainer->queryNoFallback($name);
130
+            } catch (QueryException $e) {
131
+                // Didn't find the service or the respective app container,
132
+                // ignore it and fall back to the core container.
133
+            }
134
+        }
135
+
136
+        return parent::query($name);
137
+    }
138 138
 }
Please login to merge, or discard this patch.