Completed
Push — master ( 672e4f...e22914 )
by Maxence
21:09 queued 14s
created
apps/workflowengine/lib/Settings/Admin.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 use OCP\WorkflowEngine\IManager;
29 29
 
30 30
 class Admin extends ASettings {
31
-	public function getScope(): int {
32
-		return IManager::SCOPE_ADMIN;
33
-	}
31
+    public function getScope(): int {
32
+        return IManager::SCOPE_ADMIN;
33
+    }
34 34
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Auth/AmazonS3/AccessKey.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -32,17 +32,17 @@
 block discarded – undo
32 32
  * Amazon S3 access key authentication
33 33
  */
34 34
 class AccessKey extends AuthMechanism {
35
-	public const SCHEME_AMAZONS3_ACCESSKEY = 'amazons3_accesskey';
35
+    public const SCHEME_AMAZONS3_ACCESSKEY = 'amazons3_accesskey';
36 36
 
37
-	public function __construct(IL10N $l) {
38
-		$this
39
-			->setIdentifier('amazons3::accesskey')
40
-			->setScheme(self::SCHEME_AMAZONS3_ACCESSKEY)
41
-			->setText($l->t('Access key'))
42
-			->addParameters([
43
-				new DefinitionParameter('key', $l->t('Access key')),
44
-				(new DefinitionParameter('secret', $l->t('Secret key')))
45
-					->setType(DefinitionParameter::VALUE_PASSWORD),
46
-			]);
47
-	}
37
+    public function __construct(IL10N $l) {
38
+        $this
39
+            ->setIdentifier('amazons3::accesskey')
40
+            ->setScheme(self::SCHEME_AMAZONS3_ACCESSKEY)
41
+            ->setText($l->t('Access key'))
42
+            ->addParameters([
43
+                new DefinitionParameter('key', $l->t('Access key')),
44
+                (new DefinitionParameter('secret', $l->t('Secret key')))
45
+                    ->setType(DefinitionParameter::VALUE_PASSWORD),
46
+            ]);
47
+    }
48 48
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/AbstractTrashFile.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
 use Sabre\DAV\IFile;
31 31
 
32 32
 abstract class AbstractTrashFile extends AbstractTrash implements IFile, ITrash {
33
-	public function put($data) {
34
-		throw new Forbidden();
35
-	}
33
+    public function put($data) {
34
+        throw new Forbidden();
35
+    }
36 36
 
37
-	public function setName($name) {
38
-		throw new Forbidden();
39
-	}
37
+    public function setName($name) {
38
+        throw new Forbidden();
39
+    }
40 40
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Backend/Swift.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -33,29 +33,29 @@
 block discarded – undo
33 33
 use OCP\IL10N;
34 34
 
35 35
 class Swift extends Backend {
36
-	use LegacyDependencyCheckPolyfill;
36
+    use LegacyDependencyCheckPolyfill;
37 37
 
38
-	public function __construct(IL10N $l, OpenStackV2 $openstackAuth, Rackspace $rackspaceAuth) {
39
-		$this
40
-			->setIdentifier('swift')
41
-			->addIdentifierAlias('\OC\Files\Storage\Swift') // legacy compat
42
-			->setStorageClass('\OCA\Files_External\Lib\Storage\Swift')
43
-			->setText($l->t('OpenStack Object Storage'))
44
-			->addParameters([
45
-				(new DefinitionParameter('service_name', $l->t('Service name')))
46
-					->setFlag(DefinitionParameter::FLAG_OPTIONAL),
47
-				new DefinitionParameter('region', $l->t('Region')),
48
-				new DefinitionParameter('bucket', $l->t('Bucket')),
49
-				(new DefinitionParameter('timeout', $l->t('Request timeout (seconds)')))
50
-					->setFlag(DefinitionParameter::FLAG_OPTIONAL),
51
-			])
52
-			->addAuthScheme(AuthMechanism::SCHEME_OPENSTACK)
53
-			->setLegacyAuthMechanismCallback(function (array $params) use ($openstackAuth, $rackspaceAuth) {
54
-				if (isset($params['options']['key']) && $params['options']['key']) {
55
-					return $rackspaceAuth;
56
-				}
57
-				return $openstackAuth;
58
-			})
59
-		;
60
-	}
38
+    public function __construct(IL10N $l, OpenStackV2 $openstackAuth, Rackspace $rackspaceAuth) {
39
+        $this
40
+            ->setIdentifier('swift')
41
+            ->addIdentifierAlias('\OC\Files\Storage\Swift') // legacy compat
42
+            ->setStorageClass('\OCA\Files_External\Lib\Storage\Swift')
43
+            ->setText($l->t('OpenStack Object Storage'))
44
+            ->addParameters([
45
+                (new DefinitionParameter('service_name', $l->t('Service name')))
46
+                    ->setFlag(DefinitionParameter::FLAG_OPTIONAL),
47
+                new DefinitionParameter('region', $l->t('Region')),
48
+                new DefinitionParameter('bucket', $l->t('Bucket')),
49
+                (new DefinitionParameter('timeout', $l->t('Request timeout (seconds)')))
50
+                    ->setFlag(DefinitionParameter::FLAG_OPTIONAL),
51
+            ])
52
+            ->addAuthScheme(AuthMechanism::SCHEME_OPENSTACK)
53
+            ->setLegacyAuthMechanismCallback(function (array $params) use ($openstackAuth, $rackspaceAuth) {
54
+                if (isset($params['options']['key']) && $params['options']['key']) {
55
+                    return $rackspaceAuth;
56
+                }
57
+                return $openstackAuth;
58
+            })
59
+        ;
60
+    }
61 61
 }
Please login to merge, or discard this patch.
apps/user_ldap/lib/Mapping/GroupMapping.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
  */
30 30
 class GroupMapping extends AbstractMapping {
31 31
 
32
-	/**
33
-	 * returns the DB table name which holds the mappings
34
-	 * @return string
35
-	 */
36
-	protected function getTableName(bool $includePrefix = true) {
37
-		$p = $includePrefix ? '*PREFIX*' : '';
38
-		return $p . 'ldap_group_mapping';
39
-	}
32
+    /**
33
+     * returns the DB table name which holds the mappings
34
+     * @return string
35
+     */
36
+    protected function getTableName(bool $includePrefix = true) {
37
+        $p = $includePrefix ? '*PREFIX*' : '';
38
+        return $p . 'ldap_group_mapping';
39
+    }
40 40
 }
Please login to merge, or discard this patch.
lib/private/AppFramework/Services/InitialState.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,22 +29,22 @@
 block discarded – undo
29 29
 use OCP\IInitialStateService;
30 30
 
31 31
 class InitialState implements IInitialState {
32
-	/** @var IInitialStateService */
33
-	private $state;
32
+    /** @var IInitialStateService */
33
+    private $state;
34 34
 
35
-	/** @var string */
36
-	private $appName;
35
+    /** @var string */
36
+    private $appName;
37 37
 
38
-	public function __construct(IInitialStateService $state, string $appName) {
39
-		$this->state = $state;
40
-		$this->appName = $appName;
41
-	}
38
+    public function __construct(IInitialStateService $state, string $appName) {
39
+        $this->state = $state;
40
+        $this->appName = $appName;
41
+    }
42 42
 
43
-	public function provideInitialState(string $key, $data): void {
44
-		$this->state->provideInitialState($this->appName, $key, $data);
45
-	}
43
+    public function provideInitialState(string $key, $data): void {
44
+        $this->state->provideInitialState($this->appName, $key, $data);
45
+    }
46 46
 
47
-	public function provideLazyInitialState(string $key, \Closure $closure): void {
48
-		$this->state->provideLazyInitialState($this->appName, $key, $closure);
49
-	}
47
+    public function provideLazyInitialState(string $key, \Closure $closure): void {
48
+        $this->state->provideLazyInitialState($this->appName, $key, $closure);
49
+    }
50 50
 }
Please login to merge, or discard this patch.
resources/update-locales.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,28 +25,28 @@
 block discarded – undo
25 25
  */
26 26
 
27 27
 if (!extension_loaded('intl')) {
28
-	echo 'Intl extension is required to run this script.';
29
-	exit(1);
28
+    echo 'Intl extension is required to run this script.';
29
+    exit(1);
30 30
 }
31 31
 
32 32
 require '../3rdparty/autoload.php';
33 33
 
34 34
 $locales = array_map(static function (string $localeCode) {
35
-	return [
36
-		'code' => $localeCode,
37
-		'name' => Locale::getDisplayName($localeCode, 'en')
38
-	];
35
+    return [
36
+        'code' => $localeCode,
37
+        'name' => Locale::getDisplayName($localeCode, 'en')
38
+    ];
39 39
 }, ResourceBundle::getLocales(''));
40 40
 
41 41
 $locales = array_filter($locales, static function (array $locale) {
42
-	return is_array(Punic\Data::explodeLocale($locale['code']));
42
+    return is_array(Punic\Data::explodeLocale($locale['code']));
43 43
 });
44 44
 
45 45
 $locales = array_values($locales);
46 46
 
47 47
 if (file_put_contents(__DIR__ . '/locales.json', json_encode($locales, JSON_PRETTY_PRINT)) === false) {
48
-	echo 'Failed to update locales.json';
49
-	exit(1);
48
+    echo 'Failed to update locales.json';
49
+    exit(1);
50 50
 }
51 51
 
52 52
 echo 'Updated locales.json. Don\'t forget to commit the result.';
Please login to merge, or discard this patch.
core/Migrations/Version16000Date20190212081545.php 1 patch
Indentation   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -35,72 +35,72 @@
 block discarded – undo
35 35
 use OCP\Migration\SimpleMigrationStep;
36 36
 
37 37
 class Version16000Date20190212081545 extends SimpleMigrationStep {
38
-	/**
39
-	 * @param IOutput $output
40
-	 * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
41
-	 * @param array $options
42
-	 *
43
-	 * @return ISchemaWrapper
44
-	 */
45
-	public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ISchemaWrapper {
46
-		/** @var ISchemaWrapper $schema */
47
-		$schema = $schemaClosure();
38
+    /**
39
+     * @param IOutput $output
40
+     * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
41
+     * @param array $options
42
+     *
43
+     * @return ISchemaWrapper
44
+     */
45
+    public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ISchemaWrapper {
46
+        /** @var ISchemaWrapper $schema */
47
+        $schema = $schemaClosure();
48 48
 
49
-		$table = $schema->createTable('login_flow_v2');
50
-		$table->addColumn('id', Types::BIGINT, [
51
-			'autoincrement' => true,
52
-			'notnull' => true,
53
-			'length' => 20,
54
-			'unsigned' => true,
55
-		]);
56
-		$table->addColumn('timestamp', Types::BIGINT, [
57
-			'notnull' => true,
58
-			'length' => 20,
59
-			'unsigned' => true,
60
-		]);
61
-		$table->addColumn('started', Types::SMALLINT, [
62
-			'notnull' => true,
63
-			'length' => 1,
64
-			'unsigned' => true,
65
-			'default' => 0,
66
-		]);
67
-		$table->addColumn('poll_token', Types::STRING, [
68
-			'notnull' => true,
69
-			'length' => 255,
70
-		]);
71
-		$table->addColumn('login_token', Types::STRING, [
72
-			'notnull' => true,
73
-			'length' => 255,
74
-		]);
75
-		$table->addColumn('public_key', Types::TEXT, [
76
-			'notnull' => true,
77
-			'length' => 32768,
78
-		]);
79
-		$table->addColumn('private_key', Types::TEXT, [
80
-			'notnull' => true,
81
-			'length' => 32768,
82
-		]);
83
-		$table->addColumn('client_name', Types::STRING, [
84
-			'notnull' => true,
85
-			'length' => 255,
86
-		]);
87
-		$table->addColumn('login_name', Types::STRING, [
88
-			'notnull' => false,
89
-			'length' => 255,
90
-		]);
91
-		$table->addColumn('server', Types::STRING, [
92
-			'notnull' => false,
93
-			'length' => 255,
94
-		]);
95
-		$table->addColumn('app_password', Types::STRING, [
96
-			'notnull' => false,
97
-			'length' => 1024,
98
-		]);
99
-		$table->setPrimaryKey(['id']);
100
-		$table->addUniqueIndex(['poll_token'], 'poll_token');
101
-		$table->addUniqueIndex(['login_token'], 'login_token');
102
-		$table->addIndex(['timestamp'], 'timestamp');
49
+        $table = $schema->createTable('login_flow_v2');
50
+        $table->addColumn('id', Types::BIGINT, [
51
+            'autoincrement' => true,
52
+            'notnull' => true,
53
+            'length' => 20,
54
+            'unsigned' => true,
55
+        ]);
56
+        $table->addColumn('timestamp', Types::BIGINT, [
57
+            'notnull' => true,
58
+            'length' => 20,
59
+            'unsigned' => true,
60
+        ]);
61
+        $table->addColumn('started', Types::SMALLINT, [
62
+            'notnull' => true,
63
+            'length' => 1,
64
+            'unsigned' => true,
65
+            'default' => 0,
66
+        ]);
67
+        $table->addColumn('poll_token', Types::STRING, [
68
+            'notnull' => true,
69
+            'length' => 255,
70
+        ]);
71
+        $table->addColumn('login_token', Types::STRING, [
72
+            'notnull' => true,
73
+            'length' => 255,
74
+        ]);
75
+        $table->addColumn('public_key', Types::TEXT, [
76
+            'notnull' => true,
77
+            'length' => 32768,
78
+        ]);
79
+        $table->addColumn('private_key', Types::TEXT, [
80
+            'notnull' => true,
81
+            'length' => 32768,
82
+        ]);
83
+        $table->addColumn('client_name', Types::STRING, [
84
+            'notnull' => true,
85
+            'length' => 255,
86
+        ]);
87
+        $table->addColumn('login_name', Types::STRING, [
88
+            'notnull' => false,
89
+            'length' => 255,
90
+        ]);
91
+        $table->addColumn('server', Types::STRING, [
92
+            'notnull' => false,
93
+            'length' => 255,
94
+        ]);
95
+        $table->addColumn('app_password', Types::STRING, [
96
+            'notnull' => false,
97
+            'length' => 1024,
98
+        ]);
99
+        $table->setPrimaryKey(['id']);
100
+        $table->addUniqueIndex(['poll_token'], 'poll_token');
101
+        $table->addUniqueIndex(['login_token'], 'login_token');
102
+        $table->addIndex(['timestamp'], 'timestamp');
103 103
 
104
-		return $schema;
105
-	}
104
+        return $schema;
105
+    }
106 106
 }
Please login to merge, or discard this patch.
core/Migrations/Version13000Date20170705121758.php 1 patch
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -30,65 +30,65 @@
 block discarded – undo
30 30
 use OCP\Migration\SimpleMigrationStep;
31 31
 
32 32
 class Version13000Date20170705121758 extends SimpleMigrationStep {
33
-	/**
34
-	 * @param IOutput $output
35
-	 * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
36
-	 * @param array $options
37
-	 * @return null|ISchemaWrapper
38
-	 * @since 13.0.0
39
-	 */
40
-	public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
41
-		/** @var ISchemaWrapper $schema */
42
-		$schema = $schemaClosure();
33
+    /**
34
+     * @param IOutput $output
35
+     * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
36
+     * @param array $options
37
+     * @return null|ISchemaWrapper
38
+     * @since 13.0.0
39
+     */
40
+    public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
41
+        /** @var ISchemaWrapper $schema */
42
+        $schema = $schemaClosure();
43 43
 
44
-		if (!$schema->hasTable('personal_sections')) {
45
-			$table = $schema->createTable('personal_sections');
44
+        if (!$schema->hasTable('personal_sections')) {
45
+            $table = $schema->createTable('personal_sections');
46 46
 
47
-			$table->addColumn('id', Types::STRING, [
48
-				'notnull' => false,
49
-				'length' => 64,
50
-			]);
51
-			$table->addColumn('class', Types::STRING, [
52
-				'notnull' => true,
53
-				'length' => 255,
54
-			]);
55
-			$table->addColumn('priority', Types::INTEGER, [
56
-				'notnull' => true,
57
-				'length' => 6,
58
-				'default' => 0,
59
-			]);
47
+            $table->addColumn('id', Types::STRING, [
48
+                'notnull' => false,
49
+                'length' => 64,
50
+            ]);
51
+            $table->addColumn('class', Types::STRING, [
52
+                'notnull' => true,
53
+                'length' => 255,
54
+            ]);
55
+            $table->addColumn('priority', Types::INTEGER, [
56
+                'notnull' => true,
57
+                'length' => 6,
58
+                'default' => 0,
59
+            ]);
60 60
 
61
-			$table->setPrimaryKey(['id'], 'personal_sections_id_index');
62
-			$table->addUniqueIndex(['class'], 'personal_sections_class');
63
-		}
61
+            $table->setPrimaryKey(['id'], 'personal_sections_id_index');
62
+            $table->addUniqueIndex(['class'], 'personal_sections_class');
63
+        }
64 64
 
65
-		if (!$schema->hasTable('personal_settings')) {
66
-			$table = $schema->createTable('personal_settings');
65
+        if (!$schema->hasTable('personal_settings')) {
66
+            $table = $schema->createTable('personal_settings');
67 67
 
68
-			$table->addColumn('id', Types::INTEGER, [
69
-				'autoincrement' => true,
70
-				'notnull' => true,
71
-				'length' => 20,
72
-			]);
73
-			$table->addColumn('class', Types::STRING, [
74
-				'notnull' => true,
75
-				'length' => 255,
76
-			]);
77
-			$table->addColumn('section', Types::STRING, [
78
-				'notnull' => false,
79
-				'length' => 64,
80
-			]);
81
-			$table->addColumn('priority', Types::INTEGER, [
82
-				'notnull' => true,
83
-				'length' => 6,
84
-				'default' => 0,
85
-			]);
68
+            $table->addColumn('id', Types::INTEGER, [
69
+                'autoincrement' => true,
70
+                'notnull' => true,
71
+                'length' => 20,
72
+            ]);
73
+            $table->addColumn('class', Types::STRING, [
74
+                'notnull' => true,
75
+                'length' => 255,
76
+            ]);
77
+            $table->addColumn('section', Types::STRING, [
78
+                'notnull' => false,
79
+                'length' => 64,
80
+            ]);
81
+            $table->addColumn('priority', Types::INTEGER, [
82
+                'notnull' => true,
83
+                'length' => 6,
84
+                'default' => 0,
85
+            ]);
86 86
 
87
-			$table->setPrimaryKey(['id'], 'personal_settings_id_index');
88
-			$table->addUniqueIndex(['class'], 'personal_settings_class');
89
-			$table->addIndex(['section'], 'personal_settings_section');
90
-		}
87
+            $table->setPrimaryKey(['id'], 'personal_settings_id_index');
88
+            $table->addUniqueIndex(['class'], 'personal_settings_class');
89
+            $table->addIndex(['section'], 'personal_settings_section');
90
+        }
91 91
 
92
-		return $schema;
93
-	}
92
+        return $schema;
93
+    }
94 94
 }
Please login to merge, or discard this patch.