Completed
Pull Request — master (#1989)
by Maxence
34s
created
lib/Model/Mountpoint.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,13 +63,13 @@
 block discarded – undo
63 63
 	}
64 64
 
65 65
 	public function importFromDatabase(array $data, string $prefix = ''): IQueryRow {
66
-		if ($this->get($prefix . 'mountpoint', $data) === '') {
66
+		if ($this->get($prefix.'mountpoint', $data) === '') {
67 67
 			throw new MountPointNotFoundException();
68 68
 		}
69 69
 
70
-		$this->setMountId($this->get($prefix . 'mount_id', $data));
71
-		$this->setSingleId($this->get($prefix . 'single_id', $data));
72
-		$this->setMountPoint($this->get($prefix . 'mountpoint', $data));
70
+		$this->setMountId($this->get($prefix.'mount_id', $data));
71
+		$this->setSingleId($this->get($prefix.'single_id', $data));
72
+		$this->setMountPoint($this->get($prefix.'mountpoint', $data));
73 73
 
74 74
 		return $this;
75 75
 	}
Please login to merge, or discard this patch.
lib/Model/Mount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 			return $mountPoint;
117 117
 		}
118 118
 
119
-		return '/' . $this->getInitiator()->getUserId() . '/files/' . ltrim($mountPoint, '/');
119
+		return '/'.$this->getInitiator()->getUserId().'/files/'.ltrim($mountPoint, '/');
120 120
 	}
121 121
 
122 122
 	/**
Please login to merge, or discard this patch.
tests/unit/CirclesManagerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,12 +72,12 @@
 block discarded – undo
72 72
 
73 73
 		// Created circle returned by probeCircle()
74 74
 		$circles = $this->circlesManager->probeCircles();
75
-		$this->assertCount(1, array_filter($circles, function (Circle $c) { return $c->getName() === $this->circleName; }));
75
+		$this->assertCount(1, array_filter($circles, function(Circle $c) { return $c->getName() === $this->circleName; }));
76 76
 
77 77
 		// Destroyed circle not returned by probeCircle()
78 78
 		$this->circlesManager->destroyCircle($circle->getSingleId());
79 79
 		$circles = $this->circlesManager->probeCircles();
80
-		$this->assertCount(0, array_filter($circles, function (Circle $c) { return $c->getName() === $this->circleName; }));
80
+		$this->assertCount(0, array_filter($circles, function(Circle $c) { return $c->getName() === $this->circleName; }));
81 81
 	}
82 82
 
83 83
 	public function testGetCirclesWithInitiator(): void {
Please login to merge, or discard this patch.
lib/Service/MaintenanceService.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
 	public const TIMEOUT = 18000;
45 45
 	public static $DELAY =
46 46
 		[
47
-			1 => 60,    // every minute
48
-			2 => 300,   // every 5 minutes
49
-			3 => 3600,  // every hour
47
+			1 => 60, // every minute
48
+			2 => 300, // every 5 minutes
49
+			3 => 3600, // every hour
50 50
 			4 => 75400, // every day
51 51
 			5 => 432000 // evey week
52 52
 		];
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 		$this->federatedUserService->bypassCurrentUserCondition(true);
97 97
 
98 98
 		$this->lockMaintenanceRun();
99
-		$this->debug('running maintenance (' . $level . ')');
99
+		$this->debug('running maintenance ('.$level.')');
100 100
 
101 101
 		switch ($level) {
102 102
 			case 1:
@@ -289,14 +289,14 @@  discard block
 block discarded – undo
289 289
 			->includeSystemCircles();
290 290
 
291 291
 		$circles = array_map(
292
-			function (Circle $circle) {
292
+			function(Circle $circle) {
293 293
 				return $circle->getSingleId();
294 294
 			}, $this->circleRequest->getCircles(null, $probe)
295 295
 		);
296 296
 
297 297
 		$shares = array_unique(
298 298
 			array_map(
299
-				function (ShareWrapper $share) {
299
+				function(ShareWrapper $share) {
300 300
 					return $share->getSharedWith();
301 301
 				}, $this->shareWrapperRequest->getShares()
302 302
 			)
@@ -438,6 +438,6 @@  discard block
 block discarded – undo
438 438
 	 * @param string $message
439 439
 	 */
440 440
 	private function output(string $message): void {
441
-		$this->output?->writeln('- ' . $message);
441
+		$this->output?->writeln('- '.$message);
442 442
 	}
443 443
 }
Please login to merge, or discard this patch.
lib/AppInfo/Capabilities.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
 			return [];
161 161
 		}
162 162
 		$providerIds = array_map(
163
-			function (ServiceRegistration $registration) {
163
+			function(ServiceRegistration $registration) {
164 164
 				/** @var ITeamResourceProvider $provider */
165 165
 				$provider = $this->container->get($registration->getService());
166 166
 				return $provider->getId();
Please login to merge, or discard this patch.
lib/CirclesQueryHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 			$aliasMembership,
153 153
 			$expr->andX(
154 154
 				$this->queryBuilder->exprLimit('single_id', $federatedUser->getSingleId(), $aliasMembership),
155
-				$expr->eq($aliasMembership . '.circle_id', $alias . '.' . $field)
155
+				$expr->eq($aliasMembership.'.circle_id', $alias.'.'.$field)
156 156
 			)
157 157
 		);
158 158
 	}
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 		$circle = new Circle();
191 191
 		$circle->importFromDatabase(
192 192
 			$data,
193
-			CoreQueryBuilder::HELPER . '_' . CoreQueryBuilder::CIRCLE . '_'
193
+			CoreQueryBuilder::HELPER.'_'.CoreQueryBuilder::CIRCLE.'_'
194 194
 		);
195 195
 
196 196
 		return $circle;
Please login to merge, or discard this patch.
lib/Command/SharesFiles.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -200,15 +200,15 @@  discard block
 block discarded – undo
200 200
 				$recipient = $share->getInitiator();
201 201
 				$sharedTo = $recipient->getDisplayName();
202 202
 				if (!$this->configService->isLocalInstance($recipient->getInstance())) {
203
-					$sharedTo .= '@' . $recipient->getInstance();
203
+					$sharedTo .= '@'.$recipient->getInstance();
204 204
 				}
205 205
 			}
206 206
 			$circleField = '';
207 207
 			if ($share->hasCircle()) {
208 208
 				$circle = $share->getCircle();
209 209
 				$circleField = $circle->getDisplayName()
210
-					. ' (' . $share->getSharedWith()
211
-					. ', ' . Circle::$DEF_SOURCE[$circle->getSource()] . ')';
210
+					. ' ('.$share->getSharedWith()
211
+					. ', '.Circle::$DEF_SOURCE[$circle->getSource()].')';
212 212
 			}
213 213
 			$row = [
214 214
 				$share->getId(),
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 				$def = ($recipient->hasBasedOn()) ? Circle::$DEF_SOURCE[$recipient->getBasedOn()->getSource()] : 'undef';
224 224
 				$row = array_merge(
225 225
 					$row, [
226
-						$sharedTo . ' (' . $recipient->getSingleId() . ', ' . $def . ')',
226
+						$sharedTo.' ('.$recipient->getSingleId().', '.$def.')',
227 227
 						(($share->getChildId() > 0) ? $share->getChildFileTarget(
228 228
 						) : $share->getFileTarget()),
229 229
 					]
Please login to merge, or discard this patch.
tests/stubs/oc_appframework_bootstrap_registrationcontext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
  {
53 53
  }
54 54
 
55
-	public function for(string $appId): IRegistrationContext
55
+	public function for (string $appId): IRegistrationContext
56 56
  {
57 57
  }
58 58
 
Please login to merge, or discard this patch.
tests/stubs/symfony_component_console_input_inputoption.php 2 patches
Indentation   +131 added lines, -131 removed lines patch added patch discarded remove patch
@@ -25,135 +25,135 @@
 block discarded – undo
25 25
  */
26 26
 class InputOption
27 27
 {
28
-    /**
29
-     * Do not accept input for the option (e.g. --yell). This is the default behavior of options.
30
-     */
31
-    public const VALUE_NONE = 1;
32
-
33
-    /**
34
-     * A value must be passed when the option is used (e.g. --iterations=5 or -i5).
35
-     */
36
-    public const VALUE_REQUIRED = 2;
37
-
38
-    /**
39
-     * The option may or may not have a value (e.g. --yell or --yell=loud).
40
-     */
41
-    public const VALUE_OPTIONAL = 4;
42
-
43
-    /**
44
-     * The option accepts multiple values (e.g. --dir=/foo --dir=/bar).
45
-     */
46
-    public const VALUE_IS_ARRAY = 8;
47
-
48
-    /**
49
-     * The option may have either positive or negative value (e.g. --ansi or --no-ansi).
50
-     */
51
-    public const VALUE_NEGATABLE = 16;
52
-
53
-    /**
54
-     * @param string|array|null                                                             $shortcut        The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
55
-     * @param int|null                                                                      $mode            The option mode: One of the VALUE_* constants
56
-     * @param string|bool|int|float|array|null                                              $default         The default value (must be null for self::VALUE_NONE)
57
-     * @param array|\Closure(CompletionInput,CompletionSuggestions):list<string|Suggestion> $suggestedValues The values used for input completion
58
-     *
59
-     * @throws InvalidArgumentException If option mode is invalid or incompatible
60
-     */
61
-    public function __construct(string $name, string|array|null $shortcut = null, ?int $mode = null, string $description = '', string|bool|int|float|array|null $default = null, array|\Closure $suggestedValues = [])
62
-    {
63
-    }
64
-
65
-    /**
66
-     * Returns the option shortcut.
67
-     */
68
-    public function getShortcut(): ?string
69
-    {
70
-    }
71
-
72
-    /**
73
-     * Returns the option name.
74
-     */
75
-    public function getName(): string
76
-    {
77
-    }
78
-
79
-    /**
80
-     * Returns true if the option accepts a value.
81
-     *
82
-     * @return bool true if value mode is not self::VALUE_NONE, false otherwise
83
-     */
84
-    public function acceptValue(): bool
85
-    {
86
-    }
87
-
88
-    /**
89
-     * Returns true if the option requires a value.
90
-     *
91
-     * @return bool true if value mode is self::VALUE_REQUIRED, false otherwise
92
-     */
93
-    public function isValueRequired(): bool
94
-    {
95
-    }
96
-
97
-    /**
98
-     * Returns true if the option takes an optional value.
99
-     *
100
-     * @return bool true if value mode is self::VALUE_OPTIONAL, false otherwise
101
-     */
102
-    public function isValueOptional(): bool
103
-    {
104
-    }
105
-
106
-    /**
107
-     * Returns true if the option can take multiple values.
108
-     *
109
-     * @return bool true if mode is self::VALUE_IS_ARRAY, false otherwise
110
-     */
111
-    public function isArray(): bool
112
-    {
113
-    }
114
-
115
-    public function isNegatable(): bool
116
-    {
117
-    }
118
-
119
-    /**
120
-     * @return void
121
-     */
122
-    public function setDefault(string|bool|int|float|array|null $default = null)
123
-    {
124
-    }
125
-
126
-    /**
127
-     * Returns the default value.
128
-     */
129
-    public function getDefault(): string|bool|int|float|array|null
130
-    {
131
-    }
132
-
133
-    /**
134
-     * Returns the description text.
135
-     */
136
-    public function getDescription(): string
137
-    {
138
-    }
139
-
140
-    public function hasCompletion(): bool
141
-    {
142
-    }
143
-
144
-    /**
145
-     * Adds suggestions to $suggestions for the current completion input.
146
-     *
147
-     * @see Command::complete()
148
-     */
149
-    public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void
150
-    {
151
-    }
152
-
153
-    /**
154
-     * Checks whether the given option equals this one.
155
-     */
156
-    public function equals(self $option): bool
157
-    {
158
-    }
28
+	/**
29
+	 * Do not accept input for the option (e.g. --yell). This is the default behavior of options.
30
+	 */
31
+	public const VALUE_NONE = 1;
32
+
33
+	/**
34
+	 * A value must be passed when the option is used (e.g. --iterations=5 or -i5).
35
+	 */
36
+	public const VALUE_REQUIRED = 2;
37
+
38
+	/**
39
+	 * The option may or may not have a value (e.g. --yell or --yell=loud).
40
+	 */
41
+	public const VALUE_OPTIONAL = 4;
42
+
43
+	/**
44
+	 * The option accepts multiple values (e.g. --dir=/foo --dir=/bar).
45
+	 */
46
+	public const VALUE_IS_ARRAY = 8;
47
+
48
+	/**
49
+	 * The option may have either positive or negative value (e.g. --ansi or --no-ansi).
50
+	 */
51
+	public const VALUE_NEGATABLE = 16;
52
+
53
+	/**
54
+	 * @param string|array|null                                                             $shortcut        The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
55
+	 * @param int|null                                                                      $mode            The option mode: One of the VALUE_* constants
56
+	 * @param string|bool|int|float|array|null                                              $default         The default value (must be null for self::VALUE_NONE)
57
+	 * @param array|\Closure(CompletionInput,CompletionSuggestions):list<string|Suggestion> $suggestedValues The values used for input completion
58
+	 *
59
+	 * @throws InvalidArgumentException If option mode is invalid or incompatible
60
+	 */
61
+	public function __construct(string $name, string|array|null $shortcut = null, ?int $mode = null, string $description = '', string|bool|int|float|array|null $default = null, array|\Closure $suggestedValues = [])
62
+	{
63
+	}
64
+
65
+	/**
66
+	 * Returns the option shortcut.
67
+	 */
68
+	public function getShortcut(): ?string
69
+	{
70
+	}
71
+
72
+	/**
73
+	 * Returns the option name.
74
+	 */
75
+	public function getName(): string
76
+	{
77
+	}
78
+
79
+	/**
80
+	 * Returns true if the option accepts a value.
81
+	 *
82
+	 * @return bool true if value mode is not self::VALUE_NONE, false otherwise
83
+	 */
84
+	public function acceptValue(): bool
85
+	{
86
+	}
87
+
88
+	/**
89
+	 * Returns true if the option requires a value.
90
+	 *
91
+	 * @return bool true if value mode is self::VALUE_REQUIRED, false otherwise
92
+	 */
93
+	public function isValueRequired(): bool
94
+	{
95
+	}
96
+
97
+	/**
98
+	 * Returns true if the option takes an optional value.
99
+	 *
100
+	 * @return bool true if value mode is self::VALUE_OPTIONAL, false otherwise
101
+	 */
102
+	public function isValueOptional(): bool
103
+	{
104
+	}
105
+
106
+	/**
107
+	 * Returns true if the option can take multiple values.
108
+	 *
109
+	 * @return bool true if mode is self::VALUE_IS_ARRAY, false otherwise
110
+	 */
111
+	public function isArray(): bool
112
+	{
113
+	}
114
+
115
+	public function isNegatable(): bool
116
+	{
117
+	}
118
+
119
+	/**
120
+	 * @return void
121
+	 */
122
+	public function setDefault(string|bool|int|float|array|null $default = null)
123
+	{
124
+	}
125
+
126
+	/**
127
+	 * Returns the default value.
128
+	 */
129
+	public function getDefault(): string|bool|int|float|array|null
130
+	{
131
+	}
132
+
133
+	/**
134
+	 * Returns the description text.
135
+	 */
136
+	public function getDescription(): string
137
+	{
138
+	}
139
+
140
+	public function hasCompletion(): bool
141
+	{
142
+	}
143
+
144
+	/**
145
+	 * Adds suggestions to $suggestions for the current completion input.
146
+	 *
147
+	 * @see Command::complete()
148
+	 */
149
+	public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void
150
+	{
151
+	}
152
+
153
+	/**
154
+	 * Checks whether the given option equals this one.
155
+	 */
156
+	public function equals(self $option): bool
157
+	{
158
+	}
159 159
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @throws InvalidArgumentException If option mode is invalid or incompatible
60 60
      */
61
-    public function __construct(string $name, string|array|null $shortcut = null, ?int $mode = null, string $description = '', string|bool|int|float|array|null $default = null, array|\Closure $suggestedValues = [])
61
+    public function __construct(string $name, string | array | null $shortcut = null, ?int $mode = null, string $description = '', string | bool | int | float | array | null $default = null, array | \Closure $suggestedValues = [])
62 62
     {
63 63
     }
64 64
 
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * @return void
121 121
      */
122
-    public function setDefault(string|bool|int|float|array|null $default = null)
122
+    public function setDefault(string | bool | int | float | array | null $default = null)
123 123
     {
124 124
     }
125 125
 
126 126
     /**
127 127
      * Returns the default value.
128 128
      */
129
-    public function getDefault(): string|bool|int|float|array|null
129
+    public function getDefault(): string | bool | int | float | array | null
130 130
     {
131 131
     }
132 132
 
Please login to merge, or discard this patch.