Completed
Push — master ( 43a8fc...7ac4eb )
by Joas
25:05 queued 05:06
created
lib/public/Config/BeforePreferenceSetEvent.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -31,62 +31,62 @@
 block discarded – undo
31 31
  * @since 25.0.0
32 32
  */
33 33
 class BeforePreferenceSetEvent extends Event {
34
-	protected string $userId;
35
-	protected string $appId;
36
-	protected string $configKey;
37
-	protected string $configValue;
38
-	protected bool $valid = false;
34
+    protected string $userId;
35
+    protected string $appId;
36
+    protected string $configKey;
37
+    protected string $configValue;
38
+    protected bool $valid = false;
39 39
 
40
-	/**
41
-	 * @since 25.0.0
42
-	 */
43
-	public function __construct(string $userId, string $appId, string $configKey, string $configValue) {
44
-		parent::__construct();
45
-		$this->userId = $userId;
46
-		$this->appId = $appId;
47
-		$this->configKey = $configKey;
48
-		$this->configValue = $configValue;
49
-	}
40
+    /**
41
+     * @since 25.0.0
42
+     */
43
+    public function __construct(string $userId, string $appId, string $configKey, string $configValue) {
44
+        parent::__construct();
45
+        $this->userId = $userId;
46
+        $this->appId = $appId;
47
+        $this->configKey = $configKey;
48
+        $this->configValue = $configValue;
49
+    }
50 50
 
51
-	/**
52
-	 * @since 25.0.0
53
-	 */
54
-	public function getUserId(): string {
55
-		return $this->userId;
56
-	}
51
+    /**
52
+     * @since 25.0.0
53
+     */
54
+    public function getUserId(): string {
55
+        return $this->userId;
56
+    }
57 57
 
58
-	/**
59
-	 * @since 25.0.0
60
-	 */
61
-	public function getAppId(): string {
62
-		return $this->appId;
63
-	}
58
+    /**
59
+     * @since 25.0.0
60
+     */
61
+    public function getAppId(): string {
62
+        return $this->appId;
63
+    }
64 64
 
65
-	/**
66
-	 * @since 25.0.0
67
-	 */
68
-	public function getConfigKey(): string {
69
-		return $this->configKey;
70
-	}
65
+    /**
66
+     * @since 25.0.0
67
+     */
68
+    public function getConfigKey(): string {
69
+        return $this->configKey;
70
+    }
71 71
 
72
-	/**
73
-	 * @since 25.0.0
74
-	 */
75
-	public function getConfigValue(): string {
76
-		return $this->configValue;
77
-	}
72
+    /**
73
+     * @since 25.0.0
74
+     */
75
+    public function getConfigValue(): string {
76
+        return $this->configValue;
77
+    }
78 78
 
79
-	/**
80
-	 * @since 25.0.0
81
-	 */
82
-	public function isValid(): bool {
83
-		return $this->valid;
84
-	}
79
+    /**
80
+     * @since 25.0.0
81
+     */
82
+    public function isValid(): bool {
83
+        return $this->valid;
84
+    }
85 85
 
86
-	/**
87
-	 * @since 25.0.0
88
-	 */
89
-	public function setValid(bool $valid): void {
90
-		$this->valid = $valid;
91
-	}
86
+    /**
87
+     * @since 25.0.0
88
+     */
89
+    public function setValid(bool $valid): void {
90
+        $this->valid = $valid;
91
+    }
92 92
 }
Please login to merge, or discard this patch.
lib/public/Config/BeforePreferenceDeletedEvent.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -31,53 +31,53 @@
 block discarded – undo
31 31
  * @since 25.0.0
32 32
  */
33 33
 class BeforePreferenceDeletedEvent extends Event {
34
-	protected string $userId;
35
-	protected string $appId;
36
-	protected string $configKey;
37
-	protected bool $valid = false;
34
+    protected string $userId;
35
+    protected string $appId;
36
+    protected string $configKey;
37
+    protected bool $valid = false;
38 38
 
39
-	/**
40
-	 * @since 25.0.0
41
-	 */
42
-	public function __construct(string $userId, string $appId, string $configKey) {
43
-		parent::__construct();
44
-		$this->userId = $userId;
45
-		$this->appId = $appId;
46
-		$this->configKey = $configKey;
47
-	}
39
+    /**
40
+     * @since 25.0.0
41
+     */
42
+    public function __construct(string $userId, string $appId, string $configKey) {
43
+        parent::__construct();
44
+        $this->userId = $userId;
45
+        $this->appId = $appId;
46
+        $this->configKey = $configKey;
47
+    }
48 48
 
49
-	/**
50
-	 * @since 25.0.0
51
-	 */
52
-	public function getUserId(): string {
53
-		return $this->userId;
54
-	}
49
+    /**
50
+     * @since 25.0.0
51
+     */
52
+    public function getUserId(): string {
53
+        return $this->userId;
54
+    }
55 55
 
56
-	/**
57
-	 * @since 25.0.0
58
-	 */
59
-	public function getAppId(): string {
60
-		return $this->appId;
61
-	}
56
+    /**
57
+     * @since 25.0.0
58
+     */
59
+    public function getAppId(): string {
60
+        return $this->appId;
61
+    }
62 62
 
63
-	/**
64
-	 * @since 25.0.0
65
-	 */
66
-	public function getConfigKey(): string {
67
-		return $this->configKey;
68
-	}
63
+    /**
64
+     * @since 25.0.0
65
+     */
66
+    public function getConfigKey(): string {
67
+        return $this->configKey;
68
+    }
69 69
 
70
-	/**
71
-	 * @since 25.0.0
72
-	 */
73
-	public function isValid(): bool {
74
-		return $this->valid;
75
-	}
70
+    /**
71
+     * @since 25.0.0
72
+     */
73
+    public function isValid(): bool {
74
+        return $this->valid;
75
+    }
76 76
 
77
-	/**
78
-	 * @since 25.0.0
79
-	 */
80
-	public function setValid(bool $valid): void {
81
-		$this->valid = $valid;
82
-	}
77
+    /**
78
+     * @since 25.0.0
79
+     */
80
+    public function setValid(bool $valid): void {
81
+        $this->valid = $valid;
82
+    }
83 83
 }
Please login to merge, or discard this patch.
lib/public/Files/SimpleFS/ISimpleRoot.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -32,31 +32,31 @@
 block discarded – undo
32 32
  * @since 11.0.0
33 33
  */
34 34
 interface ISimpleRoot {
35
-	/**
36
-	 * Get the folder with name $name
37
-	 *
38
-	 * @throws NotFoundException
39
-	 * @throws \RuntimeException
40
-	 * @since 11.0.0
41
-	 */
42
-	public function getFolder(string $name): ISimpleFolder;
35
+    /**
36
+     * Get the folder with name $name
37
+     *
38
+     * @throws NotFoundException
39
+     * @throws \RuntimeException
40
+     * @since 11.0.0
41
+     */
42
+    public function getFolder(string $name): ISimpleFolder;
43 43
 
44
-	/**
45
-	 * Get all the Folders
46
-	 *
47
-	 * @return ISimpleFolder[]
48
-	 * @throws NotFoundException
49
-	 * @throws \RuntimeException
50
-	 * @since 11.0.0
51
-	 */
52
-	public function getDirectoryListing(): array;
44
+    /**
45
+     * Get all the Folders
46
+     *
47
+     * @return ISimpleFolder[]
48
+     * @throws NotFoundException
49
+     * @throws \RuntimeException
50
+     * @since 11.0.0
51
+     */
52
+    public function getDirectoryListing(): array;
53 53
 
54
-	/**
55
-	 * Create a new folder named $name
56
-	 *
57
-	 * @throws NotPermittedException
58
-	 * @throws \RuntimeException
59
-	 * @since 11.0.0
60
-	 */
61
-	public function newFolder(string $name): ISimpleFolder;
54
+    /**
55
+     * Create a new folder named $name
56
+     *
57
+     * @throws NotPermittedException
58
+     * @throws \RuntimeException
59
+     * @since 11.0.0
60
+     */
61
+    public function newFolder(string $name): ISimpleFolder;
62 62
 }
Please login to merge, or discard this patch.
lib/public/Files/Events/BeforeDirectFileDownloadEvent.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -32,53 +32,53 @@
 block discarded – undo
32 32
  * @since 25.0.0
33 33
  */
34 34
 class BeforeDirectFileDownloadEvent extends Event {
35
-	private string $path;
36
-	private bool $successful = true;
37
-	private ?string $errorMessage = null;
35
+    private string $path;
36
+    private bool $successful = true;
37
+    private ?string $errorMessage = null;
38 38
 
39
-	/**
40
-	 * @since 25.0.0
41
-	 */
42
-	public function __construct(string $path) {
43
-		parent::__construct();
44
-		$this->path = $path;
45
-	}
39
+    /**
40
+     * @since 25.0.0
41
+     */
42
+    public function __construct(string $path) {
43
+        parent::__construct();
44
+        $this->path = $path;
45
+    }
46 46
 
47
-	/**
48
-	 * @since 25.0.0
49
-	 */
50
-	public function getPath(): string {
51
-		return $this->path;
52
-	}
47
+    /**
48
+     * @since 25.0.0
49
+     */
50
+    public function getPath(): string {
51
+        return $this->path;
52
+    }
53 53
 
54
-	/**
55
-	 * @since 25.0.0
56
-	 */
57
-	public function isSuccessful(): bool {
58
-		return $this->successful;
59
-	}
54
+    /**
55
+     * @since 25.0.0
56
+     */
57
+    public function isSuccessful(): bool {
58
+        return $this->successful;
59
+    }
60 60
 
61
-	/**
62
-	 * Set if the event was successful
63
-	 *
64
-	 * @since 25.0.0
65
-	 */
66
-	public function setSuccessful(bool $successful): void {
67
-		$this->successful = $successful;
68
-	}
61
+    /**
62
+     * Set if the event was successful
63
+     *
64
+     * @since 25.0.0
65
+     */
66
+    public function setSuccessful(bool $successful): void {
67
+        $this->successful = $successful;
68
+    }
69 69
 
70
-	/**
71
-	 * Get the error message, if any
72
-	 * @since 25.0.0
73
-	 */
74
-	public function getErrorMessage(): ?string {
75
-		return $this->errorMessage;
76
-	}
70
+    /**
71
+     * Get the error message, if any
72
+     * @since 25.0.0
73
+     */
74
+    public function getErrorMessage(): ?string {
75
+        return $this->errorMessage;
76
+    }
77 77
 
78
-	/**
79
-	 * @since 25.0.0
80
-	 */
81
-	public function setErrorMessage(string $errorMessage): void {
82
-		$this->errorMessage = $errorMessage;
83
-	}
78
+    /**
79
+     * @since 25.0.0
80
+     */
81
+    public function setErrorMessage(string $errorMessage): void {
82
+        $this->errorMessage = $errorMessage;
83
+    }
84 84
 }
Please login to merge, or discard this patch.
lib/public/Federation/Events/TrustedServerRemovedEvent.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,20 +29,20 @@
 block discarded – undo
29 29
  * @since 25.0.0
30 30
  */
31 31
 class TrustedServerRemovedEvent extends Event {
32
-	private string $urlHash;
32
+    private string $urlHash;
33 33
 
34
-	/**
35
-	 * @since 25.0.0
36
-	 */
37
-	public function __construct(string $urlHash) {
38
-		parent::__construct();
39
-		$this->urlHash = $urlHash;
40
-	}
34
+    /**
35
+     * @since 25.0.0
36
+     */
37
+    public function __construct(string $urlHash) {
38
+        parent::__construct();
39
+        $this->urlHash = $urlHash;
40
+    }
41 41
 
42
-	/**
43
-	 * @since 25.0.0
44
-	 */
45
-	public function getUrlHash(): string {
46
-		return $this->urlHash;
47
-	}
42
+    /**
43
+     * @since 25.0.0
44
+     */
45
+    public function getUrlHash(): string {
46
+        return $this->urlHash;
47
+    }
48 48
 }
Please login to merge, or discard this patch.
lib/private/App/CompareVersion.php 1 patch
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -29,69 +29,69 @@
 block discarded – undo
29 29
 use function explode;
30 30
 
31 31
 class CompareVersion {
32
-	private const REGEX_MAJOR = '/^\d+$/';
33
-	private const REGEX_MAJOR_MINOR = '/^\d+\.\d+$/';
34
-	private const REGEX_MAJOR_MINOR_PATCH = '/^\d+\.\d+\.\d+(?!\.\d+)/';
35
-	private const REGEX_ACTUAL = '/^\d+(\.\d+){1,2}/';
32
+    private const REGEX_MAJOR = '/^\d+$/';
33
+    private const REGEX_MAJOR_MINOR = '/^\d+\.\d+$/';
34
+    private const REGEX_MAJOR_MINOR_PATCH = '/^\d+\.\d+\.\d+(?!\.\d+)/';
35
+    private const REGEX_ACTUAL = '/^\d+(\.\d+){1,2}/';
36 36
 
37
-	/**
38
-	 * Checks if the given server version fulfills the given (app) version requirements.
39
-	 *
40
-	 * Version requirements can be 'major.minor.patch', 'major.minor' or just 'major',
41
-	 * so '13.0.1', '13.0' and '13' are valid.
42
-	 *
43
-	 * @param string $actual version as major.minor.patch notation
44
-	 * @param string $required version where major is required and minor and patch are optional
45
-	 * @param string $comparator passed to `version_compare`
46
-	 * @return bool whether the requirement is fulfilled
47
-	 * @throws InvalidArgumentException if versions specified in an invalid format
48
-	 */
49
-	public function isCompatible(string $actual, string $required,
50
-		string $comparator = '>='): bool {
51
-		if (!preg_match(self::REGEX_ACTUAL, $actual, $matches)) {
52
-			throw new InvalidArgumentException("version specification $actual is invalid");
53
-		}
54
-		$cleanActual = $matches[0];
37
+    /**
38
+     * Checks if the given server version fulfills the given (app) version requirements.
39
+     *
40
+     * Version requirements can be 'major.minor.patch', 'major.minor' or just 'major',
41
+     * so '13.0.1', '13.0' and '13' are valid.
42
+     *
43
+     * @param string $actual version as major.minor.patch notation
44
+     * @param string $required version where major is required and minor and patch are optional
45
+     * @param string $comparator passed to `version_compare`
46
+     * @return bool whether the requirement is fulfilled
47
+     * @throws InvalidArgumentException if versions specified in an invalid format
48
+     */
49
+    public function isCompatible(string $actual, string $required,
50
+        string $comparator = '>='): bool {
51
+        if (!preg_match(self::REGEX_ACTUAL, $actual, $matches)) {
52
+            throw new InvalidArgumentException("version specification $actual is invalid");
53
+        }
54
+        $cleanActual = $matches[0];
55 55
 
56
-		if (preg_match(self::REGEX_MAJOR, $required) === 1) {
57
-			return $this->compareMajor($cleanActual, $required, $comparator);
58
-		} elseif (preg_match(self::REGEX_MAJOR_MINOR, $required) === 1) {
59
-			return $this->compareMajorMinor($cleanActual, $required, $comparator);
60
-		} elseif (preg_match(self::REGEX_MAJOR_MINOR_PATCH, $required) === 1) {
61
-			return $this->compareMajorMinorPatch($cleanActual, $required, $comparator);
62
-		} else {
63
-			throw new InvalidArgumentException("required version $required is invalid");
64
-		}
65
-	}
56
+        if (preg_match(self::REGEX_MAJOR, $required) === 1) {
57
+            return $this->compareMajor($cleanActual, $required, $comparator);
58
+        } elseif (preg_match(self::REGEX_MAJOR_MINOR, $required) === 1) {
59
+            return $this->compareMajorMinor($cleanActual, $required, $comparator);
60
+        } elseif (preg_match(self::REGEX_MAJOR_MINOR_PATCH, $required) === 1) {
61
+            return $this->compareMajorMinorPatch($cleanActual, $required, $comparator);
62
+        } else {
63
+            throw new InvalidArgumentException("required version $required is invalid");
64
+        }
65
+    }
66 66
 
67
-	private function compareMajor(string $actual, string $required,
68
-		string $comparator) {
69
-		$actualMajor = explode('.', $actual)[0];
70
-		$requiredMajor = explode('.', $required)[0];
67
+    private function compareMajor(string $actual, string $required,
68
+        string $comparator) {
69
+        $actualMajor = explode('.', $actual)[0];
70
+        $requiredMajor = explode('.', $required)[0];
71 71
 
72
-		return version_compare($actualMajor, $requiredMajor, $comparator);
73
-	}
72
+        return version_compare($actualMajor, $requiredMajor, $comparator);
73
+    }
74 74
 
75
-	private function compareMajorMinor(string $actual, string $required,
76
-		string $comparator) {
77
-		$actualMajor = explode('.', $actual)[0];
78
-		$actualMinor = explode('.', $actual)[1];
79
-		$requiredMajor = explode('.', $required)[0];
80
-		$requiredMinor = explode('.', $required)[1];
75
+    private function compareMajorMinor(string $actual, string $required,
76
+        string $comparator) {
77
+        $actualMajor = explode('.', $actual)[0];
78
+        $actualMinor = explode('.', $actual)[1];
79
+        $requiredMajor = explode('.', $required)[0];
80
+        $requiredMinor = explode('.', $required)[1];
81 81
 
82
-		return version_compare("$actualMajor.$actualMinor",
83
-			"$requiredMajor.$requiredMinor", $comparator);
84
-	}
82
+        return version_compare("$actualMajor.$actualMinor",
83
+            "$requiredMajor.$requiredMinor", $comparator);
84
+    }
85 85
 
86
-	private function compareMajorMinorPatch($actual, $required, $comparator) {
87
-		$actualMajor = explode('.', $actual)[0];
88
-		$actualMinor = explode('.', $actual)[1];
89
-		$actualPatch = explode('.', $actual)[2];
90
-		$requiredMajor = explode('.', $required)[0];
91
-		$requiredMinor = explode('.', $required)[1];
92
-		$requiredPatch = explode('.', $required)[2];
86
+    private function compareMajorMinorPatch($actual, $required, $comparator) {
87
+        $actualMajor = explode('.', $actual)[0];
88
+        $actualMinor = explode('.', $actual)[1];
89
+        $actualPatch = explode('.', $actual)[2];
90
+        $requiredMajor = explode('.', $required)[0];
91
+        $requiredMinor = explode('.', $required)[1];
92
+        $requiredPatch = explode('.', $required)[2];
93 93
 
94
-		return version_compare("$actualMajor.$actualMinor.$actualPatch",
95
-			"$requiredMajor.$requiredMinor.$requiredPatch", $comparator);
96
-	}
94
+        return version_compare("$actualMajor.$actualMinor.$actualPatch",
95
+            "$requiredMajor.$requiredMinor.$requiredPatch", $comparator);
96
+    }
97 97
 }
Please login to merge, or discard this patch.
lib/private/App/AppStore/Bundles/HubBundle.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -27,24 +27,24 @@
 block discarded – undo
27 27
 namespace OC\App\AppStore\Bundles;
28 28
 
29 29
 class HubBundle extends Bundle {
30
-	public function getName() {
31
-		return $this->l10n->t('Hub bundle');
32
-	}
30
+    public function getName() {
31
+        return $this->l10n->t('Hub bundle');
32
+    }
33 33
 
34
-	public function getAppIdentifiers() {
35
-		$hubApps = [
36
-			'spreed',
37
-			'contacts',
38
-			'calendar',
39
-			'mail',
40
-		];
34
+    public function getAppIdentifiers() {
35
+        $hubApps = [
36
+            'spreed',
37
+            'contacts',
38
+            'calendar',
39
+            'mail',
40
+        ];
41 41
 
42
-		$architecture = function_exists('php_uname') ? php_uname('m') : null;
43
-		if (isset($architecture) && PHP_OS_FAMILY === 'Linux' && in_array($architecture, ['x86_64', 'aarch64'])) {
44
-			$hubApps[] = 'richdocuments';
45
-			$hubApps[] = 'richdocumentscode' . ($architecture === 'aarch64' ? '_arm64' : '');
46
-		}
42
+        $architecture = function_exists('php_uname') ? php_uname('m') : null;
43
+        if (isset($architecture) && PHP_OS_FAMILY === 'Linux' && in_array($architecture, ['x86_64', 'aarch64'])) {
44
+            $hubApps[] = 'richdocuments';
45
+            $hubApps[] = 'richdocumentscode' . ($architecture === 'aarch64' ? '_arm64' : '');
46
+        }
47 47
 
48
-		return $hubApps;
49
-	}
48
+        return $hubApps;
49
+    }
50 50
 }
Please login to merge, or discard this patch.
core/templates/loginflowv2/authpicker.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
 	<h2><?php p($l->t('Connect to your account')) ?></h2>
32 32
 	<p class="info">
33 33
 		<?php print_unescaped($l->t('Please log in before granting %1$s access to your %2$s account.', [
34
-			'<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>',
35
-			\OCP\Util::sanitizeHTML($_['instanceName'])
36
-		])) ?>
34
+            '<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>',
35
+            \OCP\Util::sanitizeHTML($_['instanceName'])
36
+        ])) ?>
37 37
 	</p>
38 38
 
39 39
 	<div class="notecard warning">
Please login to merge, or discard this patch.
core/templates/loginflowv2/grant.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 block discarded – undo
31 31
 	<h2><?php p($l->t('Account access')) ?></h2>
32 32
 	<p class="info">
33 33
 		<?php p($l->t('Currently logged in as %1$s (%2$s).', [
34
-			$_['userDisplayName'],
35
-			$_['userId'],
36
-		])) ?>
34
+            $_['userDisplayName'],
35
+            $_['userId'],
36
+        ])) ?>
37 37
 	</p>
38 38
 	<p class="info">
39 39
 		<?php print_unescaped($l->t('You are about to grant %1$s access to your %2$s account.', [
40
-			'<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>',
41
-			\OCP\Util::sanitizeHTML($_['instanceName'])
42
-		])) ?>
40
+            '<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>',
41
+            \OCP\Util::sanitizeHTML($_['instanceName'])
42
+        ])) ?>
43 43
 	</p>
44 44
 
45 45
 	<br/>
Please login to merge, or discard this patch.