Passed
Push — master ( b67ac4...89cf1c )
by Joas
15:14 queued 12s
created
apps/systemtags/lib/Settings/Admin.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -29,29 +29,29 @@
 block discarded – undo
29 29
 
30 30
 class Admin implements ISettings {
31 31
 
32
-	/**
33
-	 * @return TemplateResponse
34
-	 */
35
-	public function getForm() {
36
-		return new TemplateResponse('systemtags', 'admin', [], '');
37
-	}
32
+    /**
33
+     * @return TemplateResponse
34
+     */
35
+    public function getForm() {
36
+        return new TemplateResponse('systemtags', 'admin', [], '');
37
+    }
38 38
 
39
-	/**
40
-	 * @return string the section ID, e.g. 'sharing'
41
-	 */
42
-	public function getSection() {
43
-		return 'server';
44
-	}
39
+    /**
40
+     * @return string the section ID, e.g. 'sharing'
41
+     */
42
+    public function getSection() {
43
+        return 'server';
44
+    }
45 45
 
46
-	/**
47
-	 * @return int whether the form should be rather on the top or bottom of
48
-	 * the admin section. The forms are arranged in ascending order of the
49
-	 * priority values. It is required to return a value between 0 and 100.
50
-	 *
51
-	 * E.g.: 70
52
-	 */
53
-	public function getPriority() {
54
-		return 70;
55
-	}
46
+    /**
47
+     * @return int whether the form should be rather on the top or bottom of
48
+     * the admin section. The forms are arranged in ascending order of the
49
+     * priority values. It is required to return a value between 0 and 100.
50
+     *
51
+     * E.g.: 70
52
+     */
53
+    public function getPriority() {
54
+        return 70;
55
+    }
56 56
 
57 57
 }
Please login to merge, or discard this patch.
apps/workflowengine/lib/Settings/Section.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -29,45 +29,45 @@
 block discarded – undo
29 29
 use OCP\Settings\IIconSection;
30 30
 
31 31
 class Section implements IIconSection {
32
-	/** @var IL10N */
33
-	private $l;
34
-	/** @var IURLGenerator */
35
-	private $url;
32
+    /** @var IL10N */
33
+    private $l;
34
+    /** @var IURLGenerator */
35
+    private $url;
36 36
 
37
-	/**
38
-	 * @param IURLGenerator $url
39
-	 * @param IL10N $l
40
-	 */
41
-	public function __construct(IURLGenerator $url, IL10N $l) {
42
-		$this->url = $url;
43
-		$this->l = $l;
44
-	}
37
+    /**
38
+     * @param IURLGenerator $url
39
+     * @param IL10N $l
40
+     */
41
+    public function __construct(IURLGenerator $url, IL10N $l) {
42
+        $this->url = $url;
43
+        $this->l = $l;
44
+    }
45 45
 
46
-	/**
47
-	 * {@inheritdoc}
48
-	 */
49
-	public function getID() {
50
-		return 'workflow';
51
-	}
46
+    /**
47
+     * {@inheritdoc}
48
+     */
49
+    public function getID() {
50
+        return 'workflow';
51
+    }
52 52
 
53
-	/**
54
-	 * {@inheritdoc}
55
-	 */
56
-	public function getName() {
57
-		return $this->l->t('Flow');
58
-	}
53
+    /**
54
+     * {@inheritdoc}
55
+     */
56
+    public function getName() {
57
+        return $this->l->t('Flow');
58
+    }
59 59
 
60
-	/**
61
-	 * {@inheritdoc}
62
-	 */
63
-	public function getPriority() {
64
-		return 55;
65
-	}
60
+    /**
61
+     * {@inheritdoc}
62
+     */
63
+    public function getPriority() {
64
+        return 55;
65
+    }
66 66
 
67
-	/**
68
-	 * {@inheritdoc}
69
-	 */
70
-	public function getIcon() {
71
-		return $this->url->imagePath(Application::APP_ID, 'app-dark.svg');
72
-	}
67
+    /**
68
+     * {@inheritdoc}
69
+     */
70
+    public function getIcon() {
71
+        return $this->url->imagePath(Application::APP_ID, 'app-dark.svg');
72
+    }
73 73
 }
Please login to merge, or discard this patch.
lib/public/Security/Events/ValidatePasswordPolicyEvent.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -30,22 +30,22 @@
 block discarded – undo
30 30
  */
31 31
 class ValidatePasswordPolicyEvent extends Event {
32 32
 
33
-	/** @var string */
34
-	private $password;
35
-
36
-	/**
37
-	 * @since 18.0.0
38
-	 */
39
-	public function __construct(string $password) {
40
-		parent::__construct();
41
-		$this->password = $password;
42
-	}
43
-
44
-	/**
45
-	 * @since 18.0.0
46
-	 */
47
-	public function getPassword(): string {
48
-		return $this->password;
49
-	}
33
+    /** @var string */
34
+    private $password;
35
+
36
+    /**
37
+     * @since 18.0.0
38
+     */
39
+    public function __construct(string $password) {
40
+        parent::__construct();
41
+        $this->password = $password;
42
+    }
43
+
44
+    /**
45
+     * @since 18.0.0
46
+     */
47
+    public function getPassword(): string {
48
+        return $this->password;
49
+    }
50 50
 
51 51
 }
Please login to merge, or discard this patch.
lib/public/Security/Events/GenerateSecurePasswordEvent.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -30,21 +30,21 @@
 block discarded – undo
30 30
  */
31 31
 class GenerateSecurePasswordEvent extends Event {
32 32
 
33
-	/** @var null|string */
34
-	private $password;
35
-
36
-	/**
37
-	 * @since 18.0.0
38
-	 */
39
-	public function getPassword(): ?string {
40
-		return $this->password;
41
-	}
42
-
43
-	/**
44
-	 * @since 18.0.0
45
-	 */
46
-	public function setPassword(string $password): void {
47
-		$this->password = $password;
48
-	}
33
+    /** @var null|string */
34
+    private $password;
35
+
36
+    /**
37
+     * @since 18.0.0
38
+     */
39
+    public function getPassword(): ?string {
40
+        return $this->password;
41
+    }
42
+
43
+    /**
44
+     * @since 18.0.0
45
+     */
46
+    public function setPassword(string $password): void {
47
+        $this->password = $password;
48
+    }
49 49
 
50 50
 }
Please login to merge, or discard this patch.
lib/public/DirectEditing/IEditor.php 1 patch
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -32,68 +32,68 @@
 block discarded – undo
32 32
  */
33 33
 interface IEditor {
34 34
 
35
-	/**
36
-	 * Return a unique identifier for the editor
37
-	 *
38
-	 * e.g. richdocuments
39
-	 *
40
-	 * @since 18.0.0
41
-	 * @return string
42
-	 */
43
-	public function getId(): string;
35
+    /**
36
+     * Return a unique identifier for the editor
37
+     *
38
+     * e.g. richdocuments
39
+     *
40
+     * @since 18.0.0
41
+     * @return string
42
+     */
43
+    public function getId(): string;
44 44
 
45
-	/**
46
-	 * Return a readable name for the editor
47
-	 *
48
-	 * e.g. Collabora Online
49
-	 *
50
-	 * @since 18.0.0
51
-	 * @return string
52
-	 */
53
-	public function getName(): string;
45
+    /**
46
+     * Return a readable name for the editor
47
+     *
48
+     * e.g. Collabora Online
49
+     *
50
+     * @since 18.0.0
51
+     * @return string
52
+     */
53
+    public function getName(): string;
54 54
 
55
-	/**
56
-	 * A list of mimetypes that should open the editor by default
57
-	 *
58
-	 * @since 18.0.0
59
-	 * @return string[]
60
-	 */
61
-	public function getMimetypes(): array;
55
+    /**
56
+     * A list of mimetypes that should open the editor by default
57
+     *
58
+     * @since 18.0.0
59
+     * @return string[]
60
+     */
61
+    public function getMimetypes(): array;
62 62
 
63
-	/**
64
-	 * A list of mimetypes that can be opened in the editor optionally
65
-	 *
66
-	 * @since 18.0.0
67
-	 * @return string[]
68
-	 */
69
-	public function getMimetypesOptional(): array;
63
+    /**
64
+     * A list of mimetypes that can be opened in the editor optionally
65
+     *
66
+     * @since 18.0.0
67
+     * @return string[]
68
+     */
69
+    public function getMimetypesOptional(): array;
70 70
 
71
-	/**
72
-	 * Return a list of file creation options to be presented to the user
73
-	 *
74
-	 * @since 18.0.0
75
-	 * @return ACreateFromTemplate[]|ACreateEmpty[]
76
-	 */
77
-	public function getCreators(): array;
71
+    /**
72
+     * Return a list of file creation options to be presented to the user
73
+     *
74
+     * @since 18.0.0
75
+     * @return ACreateFromTemplate[]|ACreateEmpty[]
76
+     */
77
+    public function getCreators(): array;
78 78
 
79
-	/**
80
-	 * Return if the view is able to securely view a file without downloading it to the browser
81
-	 *
82
-	 * @since 18.0.0
83
-	 * @return bool
84
-	 */
85
-	public function isSecure(): bool;
79
+    /**
80
+     * Return if the view is able to securely view a file without downloading it to the browser
81
+     *
82
+     * @since 18.0.0
83
+     * @return bool
84
+     */
85
+    public function isSecure(): bool;
86 86
 
87
-	/**
88
-	 * Return a template response for displaying the editor
89
-	 *
90
-	 * open can only be called once when the client requests the editor with a one-time-use token
91
-	 * For handling editing and later requests, editors need to impelement their own token handling and take care of invalidation
92
-	 *
93
-	 * This behavior is similar to the current direct editing implementation in collabora where we generate a one-time token and switch over to the regular wopi token for the actual editing/saving process
94
-	 *
95
-	 * @since 18.0.0
96
-	 * @return Response
97
-	 */
98
-	public function open(IToken $token): Response;
87
+    /**
88
+     * Return a template response for displaying the editor
89
+     *
90
+     * open can only be called once when the client requests the editor with a one-time-use token
91
+     * For handling editing and later requests, editors need to impelement their own token handling and take care of invalidation
92
+     *
93
+     * This behavior is similar to the current direct editing implementation in collabora where we generate a one-time token and switch over to the regular wopi token for the actual editing/saving process
94
+     *
95
+     * @since 18.0.0
96
+     * @return Response
97
+     */
98
+    public function open(IToken $token): Response;
99 99
 }
Please login to merge, or discard this patch.
lib/public/DirectEditing/ATemplate.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -33,39 +33,39 @@
 block discarded – undo
33 33
  */
34 34
 abstract class ATemplate implements JsonSerializable {
35 35
 
36
-	/**
37
-	 * Return a unique id so the app can identify the template
38
-	 *
39
-	 * @since 18.0.0
40
-	 * @return string
41
-	 */
42
-	abstract public function getId(): string;
36
+    /**
37
+     * Return a unique id so the app can identify the template
38
+     *
39
+     * @since 18.0.0
40
+     * @return string
41
+     */
42
+    abstract public function getId(): string;
43 43
 
44
-	/**
45
-	 * Return a title that is displayed to the user
46
-	 *
47
-	 * @since 18.0.0
48
-	 * @return string
49
-	 */
50
-	abstract public function getTitle(): string;
44
+    /**
45
+     * Return a title that is displayed to the user
46
+     *
47
+     * @since 18.0.0
48
+     * @return string
49
+     */
50
+    abstract public function getTitle(): string;
51 51
 
52
-	/**
53
-	 * Return a link to the template preview image
54
-	 *
55
-	 * @since 18.0.0
56
-	 * @return string
57
-	 */
58
-	abstract public function getPreview(): string;
52
+    /**
53
+     * Return a link to the template preview image
54
+     *
55
+     * @since 18.0.0
56
+     * @return string
57
+     */
58
+    abstract public function getPreview(): string;
59 59
 
60
-	/**
61
-	 * @since 18.0.0
62
-	 * @return array|mixed
63
-	 */
64
-	public function jsonSerialize() {
65
-		return [
66
-			'id' => $this->getId(),
67
-			'title' => $this->getTitle(),
68
-			'preview' => $this->getPreview(),
69
-		];
70
-	}
60
+    /**
61
+     * @since 18.0.0
62
+     * @return array|mixed
63
+     */
64
+    public function jsonSerialize() {
65
+        return [
66
+            'id' => $this->getId(),
67
+            'title' => $this->getTitle(),
68
+            'preview' => $this->getPreview(),
69
+        ];
70
+    }
71 71
 }
Please login to merge, or discard this patch.
lib/public/DirectEditing/ACreateFromTemplate.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
  */
29 29
 abstract class ACreateFromTemplate extends ACreateEmpty {
30 30
 
31
-	/**
32
-	 * List of available templates for the create from template action
33
-	 *
34
-	 * @since 18.0.0
35
-	 * @return ATemplate[]
36
-	 */
37
-	abstract public function getTemplates(): array;
31
+    /**
32
+     * List of available templates for the create from template action
33
+     *
34
+     * @since 18.0.0
35
+     * @return ATemplate[]
36
+     */
37
+    abstract public function getTemplates(): array;
38 38
 
39 39
 }
Please login to merge, or discard this patch.
lib/public/DirectEditing/RegisterDirectEditorEvent.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -30,28 +30,28 @@
 block discarded – undo
30 30
  */
31 31
 class RegisterDirectEditorEvent extends Event {
32 32
 
33
-	/**
34
-	 * @var IManager
35
-	 */
36
-	private $manager;
33
+    /**
34
+     * @var IManager
35
+     */
36
+    private $manager;
37 37
 
38
-	/**
39
-	 * RegisterDirectEditorEvent constructor.
40
-	 *
41
-	 * @param IManager $manager
42
-	 * @since 18.0.0
43
-	 */
44
-	public function __construct(IManager $manager) {
45
-		parent::__construct();
46
-		$this->manager = $manager;
47
-	}
38
+    /**
39
+     * RegisterDirectEditorEvent constructor.
40
+     *
41
+     * @param IManager $manager
42
+     * @since 18.0.0
43
+     */
44
+    public function __construct(IManager $manager) {
45
+        parent::__construct();
46
+        $this->manager = $manager;
47
+    }
48 48
 
49
-	/**
50
-	 * @since 18.0.0
51
-	 * @param IEditor $editor
52
-	 */
53
-	public function register(IEditor $editor): void {
54
-		$this->manager->registerDirectEditor($editor);
55
-	}
49
+    /**
50
+     * @since 18.0.0
51
+     * @param IEditor $editor
52
+     */
53
+    public function register(IEditor $editor): void {
54
+        $this->manager->registerDirectEditor($editor);
55
+    }
56 56
 
57 57
 }
Please login to merge, or discard this patch.
apps/files/lib/Capabilities.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -43,43 +43,43 @@
 block discarded – undo
43 43
  */
44 44
 class Capabilities implements ICapability {
45 45
 
46
-	/** @var IConfig */
47
-	protected $config;
46
+    /** @var IConfig */
47
+    protected $config;
48 48
 
49
-	/** @var DirectEditingService */
50
-	protected $directEditingService;
49
+    /** @var DirectEditingService */
50
+    protected $directEditingService;
51 51
 
52
-	/** @var IURLGenerator */
53
-	private $urlGenerator;
52
+    /** @var IURLGenerator */
53
+    private $urlGenerator;
54 54
 
55
-	/**
56
-	 * Capabilities constructor.
57
-	 *
58
-	 * @param IConfig $config
59
-	 */
60
-	public function __construct(IConfig $config, DirectEditingService $directEditingService, IURLGenerator $urlGenerator) {
61
-		$this->config = $config;
62
-		$this->directEditingService = $directEditingService;
63
-		$this->urlGenerator = $urlGenerator;
64
-	}
55
+    /**
56
+     * Capabilities constructor.
57
+     *
58
+     * @param IConfig $config
59
+     */
60
+    public function __construct(IConfig $config, DirectEditingService $directEditingService, IURLGenerator $urlGenerator) {
61
+        $this->config = $config;
62
+        $this->directEditingService = $directEditingService;
63
+        $this->urlGenerator = $urlGenerator;
64
+    }
65 65
 
66
-	/**
67
-	 * Return this classes capabilities
68
-	 *
69
-	 * @return array
70
-	 */
71
-	public function getCapabilities() {
72
-		return [
73
-			'files' => [
74
-				'bigfilechunking' => true,
75
-				'blacklisted_files' => $this->config->getSystemValue('blacklisted_files', ['.htaccess']),
76
-				'directEditing' => [
77
-					'url' => $this->urlGenerator->linkToOCSRouteAbsolute('files.DirectEditing.info'),
78
-					'etag' => $this->directEditingService->getDirectEditingETag()
79
-				]
80
-			],
81
-		];
82
-	}
66
+    /**
67
+     * Return this classes capabilities
68
+     *
69
+     * @return array
70
+     */
71
+    public function getCapabilities() {
72
+        return [
73
+            'files' => [
74
+                'bigfilechunking' => true,
75
+                'blacklisted_files' => $this->config->getSystemValue('blacklisted_files', ['.htaccess']),
76
+                'directEditing' => [
77
+                    'url' => $this->urlGenerator->linkToOCSRouteAbsolute('files.DirectEditing.info'),
78
+                    'etag' => $this->directEditingService->getDirectEditingETag()
79
+                ]
80
+            ],
81
+        ];
82
+    }
83 83
 
84 84
 
85 85
 }
Please login to merge, or discard this patch.