Completed
Pull Request — master (#2050)
by
unknown
27s
created
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 1 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.
tests/stubs/symfony_component_console_output_consolesectionoutput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      *
56 56
      * @return void
57 57
      */
58
-    public function overwrite(string|iterable $message)
58
+    public function overwrite(string | iterable $message)
59 59
     {
60 60
     }
61 61
 
Please login to merge, or discard this patch.
tests/stubs/symfony_component_console_question_question.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @param string                     $question The question to ask to the user
26 26
      * @param string|bool|int|float|null $default  The default answer to return if the user enters nothing
27 27
      */
28
-    public function __construct(string $question, string|bool|int|float|null $default = null)
28
+    public function __construct(string $question, string | bool | int | float | null $default = null)
29 29
     {
30 30
     }
31 31
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * Returns the default answer.
41 41
      */
42
-    public function getDefault(): string|bool|int|float|null
42
+    public function getDefault(): string | bool | int | float | null
43 43
     {
44 44
     }
45 45
 
Please login to merge, or discard this patch.
tests/stubs/symfony_component_console_output_output.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,14 +90,14 @@
 block discarded – undo
90 90
     /**
91 91
      * @return void
92 92
      */
93
-    public function writeln(string|iterable $messages, int $options = self::OUTPUT_NORMAL)
93
+    public function writeln(string | iterable $messages, int $options = self::OUTPUT_NORMAL)
94 94
     {
95 95
     }
96 96
 
97 97
     /**
98 98
      * @return void
99 99
      */
100
-    public function write(string|iterable $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL)
100
+    public function write(string | iterable $messages, bool $newline = false, int $options = self::OUTPUT_NORMAL)
101 101
     {
102 102
     }
103 103
 
Please login to merge, or discard this patch.