@@ -44,9 +44,9 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -160,7 +160,7 @@ |
||
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(); |
@@ -152,7 +152,7 @@ discard block |
||
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 |
||
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; |
@@ -200,15 +200,15 @@ discard block |
||
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 |
||
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 | ] |
@@ -52,7 +52,7 @@ |
||
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 |
@@ -25,135 +25,135 @@ |
||
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 | } |
@@ -58,7 +58,7 @@ discard block |
||
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 |
||
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 |
@@ -77,157 +77,157 @@ |
||
77 | 77 | */ |
78 | 78 | class PrimaryReadReplicaConnection extends Connection |
79 | 79 | { |
80 | - /** |
|
81 | - * Primary and Replica connection (one of the randomly picked replicas). |
|
82 | - * |
|
83 | - * @var DriverConnection[]|null[] |
|
84 | - */ |
|
85 | - protected $connections = ['primary' => null, 'replica' => null]; |
|
86 | - |
|
87 | - /** |
|
88 | - * You can keep the replica connection and then switch back to it |
|
89 | - * during the request if you know what you are doing. |
|
90 | - * |
|
91 | - * @var bool |
|
92 | - */ |
|
93 | - protected $keepReplica = false; |
|
94 | - |
|
95 | - /** |
|
96 | - * Creates Primary Replica Connection. |
|
97 | - * |
|
98 | - * @internal The connection can be only instantiated by the driver manager. |
|
99 | - * |
|
100 | - * @param array<string,mixed> $params |
|
101 | - * @psalm-param Params $params |
|
102 | - * |
|
103 | - * @throws Exception |
|
104 | - * @throws InvalidArgumentException |
|
105 | - */ |
|
106 | - public function __construct(array $params, Driver $driver, ?Configuration $config = null, ?EventManager $eventManager = null) |
|
107 | - { |
|
108 | - } |
|
109 | - |
|
110 | - /** |
|
111 | - * Checks if the connection is currently towards the primary or not. |
|
112 | - */ |
|
113 | - public function isConnectedToPrimary(): bool |
|
114 | - { |
|
115 | - } |
|
116 | - |
|
117 | - /** |
|
118 | - * @param string|null $connectionName |
|
119 | - * |
|
120 | - * @return bool |
|
121 | - */ |
|
122 | - public function connect($connectionName = null) |
|
123 | - { |
|
124 | - } |
|
125 | - |
|
126 | - protected function performConnect(?string $connectionName = null): bool |
|
127 | - { |
|
128 | - } |
|
129 | - |
|
130 | - /** |
|
131 | - * Connects to the primary node of the database cluster. |
|
132 | - * |
|
133 | - * All following statements after this will be executed against the primary node. |
|
134 | - */ |
|
135 | - public function ensureConnectedToPrimary(): bool |
|
136 | - { |
|
137 | - } |
|
138 | - |
|
139 | - /** |
|
140 | - * Connects to a replica node of the database cluster. |
|
141 | - * |
|
142 | - * All following statements after this will be executed against the replica node, |
|
143 | - * unless the keepReplica option is set to false and a primary connection |
|
144 | - * was already opened. |
|
145 | - */ |
|
146 | - public function ensureConnectedToReplica(): bool |
|
147 | - { |
|
148 | - } |
|
149 | - |
|
150 | - /** |
|
151 | - * Connects to a specific connection. |
|
152 | - * |
|
153 | - * @param string $connectionName |
|
154 | - * |
|
155 | - * @return DriverConnection |
|
156 | - * |
|
157 | - * @throws Exception |
|
158 | - */ |
|
159 | - protected function connectTo($connectionName) |
|
160 | - { |
|
161 | - } |
|
162 | - |
|
163 | - /** |
|
164 | - * @param string $connectionName |
|
165 | - * @param mixed[] $params |
|
166 | - * |
|
167 | - * @return mixed |
|
168 | - */ |
|
169 | - protected function chooseConnectionConfiguration($connectionName, #[SensitiveParameter] |
|
170 | - $params) |
|
171 | - { |
|
172 | - } |
|
173 | - |
|
174 | - /** |
|
175 | - * {@inheritDoc} |
|
176 | - */ |
|
177 | - public function executeStatement($sql, array $params = [], array $types = []) |
|
178 | - { |
|
179 | - } |
|
180 | - |
|
181 | - /** |
|
182 | - * {@inheritDoc} |
|
183 | - */ |
|
184 | - public function beginTransaction() |
|
185 | - { |
|
186 | - } |
|
187 | - |
|
188 | - /** |
|
189 | - * {@inheritDoc} |
|
190 | - */ |
|
191 | - public function commit() |
|
192 | - { |
|
193 | - } |
|
194 | - |
|
195 | - /** |
|
196 | - * {@inheritDoc} |
|
197 | - */ |
|
198 | - public function rollBack() |
|
199 | - { |
|
200 | - } |
|
201 | - |
|
202 | - /** |
|
203 | - * {@inheritDoc} |
|
204 | - */ |
|
205 | - public function close() |
|
206 | - { |
|
207 | - } |
|
208 | - |
|
209 | - /** |
|
210 | - * {@inheritDoc} |
|
211 | - */ |
|
212 | - public function createSavepoint($savepoint) |
|
213 | - { |
|
214 | - } |
|
215 | - |
|
216 | - /** |
|
217 | - * {@inheritDoc} |
|
218 | - */ |
|
219 | - public function releaseSavepoint($savepoint) |
|
220 | - { |
|
221 | - } |
|
222 | - |
|
223 | - /** |
|
224 | - * {@inheritDoc} |
|
225 | - */ |
|
226 | - public function rollbackSavepoint($savepoint) |
|
227 | - { |
|
228 | - } |
|
229 | - |
|
230 | - public function prepare(string $sql): Statement |
|
231 | - { |
|
232 | - } |
|
80 | + /** |
|
81 | + * Primary and Replica connection (one of the randomly picked replicas). |
|
82 | + * |
|
83 | + * @var DriverConnection[]|null[] |
|
84 | + */ |
|
85 | + protected $connections = ['primary' => null, 'replica' => null]; |
|
86 | + |
|
87 | + /** |
|
88 | + * You can keep the replica connection and then switch back to it |
|
89 | + * during the request if you know what you are doing. |
|
90 | + * |
|
91 | + * @var bool |
|
92 | + */ |
|
93 | + protected $keepReplica = false; |
|
94 | + |
|
95 | + /** |
|
96 | + * Creates Primary Replica Connection. |
|
97 | + * |
|
98 | + * @internal The connection can be only instantiated by the driver manager. |
|
99 | + * |
|
100 | + * @param array<string,mixed> $params |
|
101 | + * @psalm-param Params $params |
|
102 | + * |
|
103 | + * @throws Exception |
|
104 | + * @throws InvalidArgumentException |
|
105 | + */ |
|
106 | + public function __construct(array $params, Driver $driver, ?Configuration $config = null, ?EventManager $eventManager = null) |
|
107 | + { |
|
108 | + } |
|
109 | + |
|
110 | + /** |
|
111 | + * Checks if the connection is currently towards the primary or not. |
|
112 | + */ |
|
113 | + public function isConnectedToPrimary(): bool |
|
114 | + { |
|
115 | + } |
|
116 | + |
|
117 | + /** |
|
118 | + * @param string|null $connectionName |
|
119 | + * |
|
120 | + * @return bool |
|
121 | + */ |
|
122 | + public function connect($connectionName = null) |
|
123 | + { |
|
124 | + } |
|
125 | + |
|
126 | + protected function performConnect(?string $connectionName = null): bool |
|
127 | + { |
|
128 | + } |
|
129 | + |
|
130 | + /** |
|
131 | + * Connects to the primary node of the database cluster. |
|
132 | + * |
|
133 | + * All following statements after this will be executed against the primary node. |
|
134 | + */ |
|
135 | + public function ensureConnectedToPrimary(): bool |
|
136 | + { |
|
137 | + } |
|
138 | + |
|
139 | + /** |
|
140 | + * Connects to a replica node of the database cluster. |
|
141 | + * |
|
142 | + * All following statements after this will be executed against the replica node, |
|
143 | + * unless the keepReplica option is set to false and a primary connection |
|
144 | + * was already opened. |
|
145 | + */ |
|
146 | + public function ensureConnectedToReplica(): bool |
|
147 | + { |
|
148 | + } |
|
149 | + |
|
150 | + /** |
|
151 | + * Connects to a specific connection. |
|
152 | + * |
|
153 | + * @param string $connectionName |
|
154 | + * |
|
155 | + * @return DriverConnection |
|
156 | + * |
|
157 | + * @throws Exception |
|
158 | + */ |
|
159 | + protected function connectTo($connectionName) |
|
160 | + { |
|
161 | + } |
|
162 | + |
|
163 | + /** |
|
164 | + * @param string $connectionName |
|
165 | + * @param mixed[] $params |
|
166 | + * |
|
167 | + * @return mixed |
|
168 | + */ |
|
169 | + protected function chooseConnectionConfiguration($connectionName, #[SensitiveParameter] |
|
170 | + $params) |
|
171 | + { |
|
172 | + } |
|
173 | + |
|
174 | + /** |
|
175 | + * {@inheritDoc} |
|
176 | + */ |
|
177 | + public function executeStatement($sql, array $params = [], array $types = []) |
|
178 | + { |
|
179 | + } |
|
180 | + |
|
181 | + /** |
|
182 | + * {@inheritDoc} |
|
183 | + */ |
|
184 | + public function beginTransaction() |
|
185 | + { |
|
186 | + } |
|
187 | + |
|
188 | + /** |
|
189 | + * {@inheritDoc} |
|
190 | + */ |
|
191 | + public function commit() |
|
192 | + { |
|
193 | + } |
|
194 | + |
|
195 | + /** |
|
196 | + * {@inheritDoc} |
|
197 | + */ |
|
198 | + public function rollBack() |
|
199 | + { |
|
200 | + } |
|
201 | + |
|
202 | + /** |
|
203 | + * {@inheritDoc} |
|
204 | + */ |
|
205 | + public function close() |
|
206 | + { |
|
207 | + } |
|
208 | + |
|
209 | + /** |
|
210 | + * {@inheritDoc} |
|
211 | + */ |
|
212 | + public function createSavepoint($savepoint) |
|
213 | + { |
|
214 | + } |
|
215 | + |
|
216 | + /** |
|
217 | + * {@inheritDoc} |
|
218 | + */ |
|
219 | + public function releaseSavepoint($savepoint) |
|
220 | + { |
|
221 | + } |
|
222 | + |
|
223 | + /** |
|
224 | + * {@inheritDoc} |
|
225 | + */ |
|
226 | + public function rollbackSavepoint($savepoint) |
|
227 | + { |
|
228 | + } |
|
229 | + |
|
230 | + public function prepare(string $sql): Statement |
|
231 | + { |
|
232 | + } |
|
233 | 233 | } |
@@ -21,70 +21,70 @@ |
||
21 | 21 | */ |
22 | 22 | class ConsoleSectionOutput extends StreamOutput |
23 | 23 | { |
24 | - /** |
|
25 | - * @param resource $stream |
|
26 | - * @param ConsoleSectionOutput[] $sections |
|
27 | - */ |
|
28 | - public function __construct($stream, array &$sections, int $verbosity, bool $decorated, OutputFormatterInterface $formatter) |
|
29 | - { |
|
30 | - } |
|
24 | + /** |
|
25 | + * @param resource $stream |
|
26 | + * @param ConsoleSectionOutput[] $sections |
|
27 | + */ |
|
28 | + public function __construct($stream, array &$sections, int $verbosity, bool $decorated, OutputFormatterInterface $formatter) |
|
29 | + { |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Defines a maximum number of lines for this section. |
|
34 | - * |
|
35 | - * When more lines are added, the section will automatically scroll to the |
|
36 | - * end (i.e. remove the first lines to comply with the max height). |
|
37 | - */ |
|
38 | - public function setMaxHeight(int $maxHeight): void |
|
39 | - { |
|
40 | - } |
|
32 | + /** |
|
33 | + * Defines a maximum number of lines for this section. |
|
34 | + * |
|
35 | + * When more lines are added, the section will automatically scroll to the |
|
36 | + * end (i.e. remove the first lines to comply with the max height). |
|
37 | + */ |
|
38 | + public function setMaxHeight(int $maxHeight): void |
|
39 | + { |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Clears previous output for this section. |
|
44 | - * |
|
45 | - * @param int $lines Number of lines to clear. If null, then the entire output of this section is cleared |
|
46 | - * |
|
47 | - * @return void |
|
48 | - */ |
|
49 | - public function clear(?int $lines = null) |
|
50 | - { |
|
51 | - } |
|
42 | + /** |
|
43 | + * Clears previous output for this section. |
|
44 | + * |
|
45 | + * @param int $lines Number of lines to clear. If null, then the entire output of this section is cleared |
|
46 | + * |
|
47 | + * @return void |
|
48 | + */ |
|
49 | + public function clear(?int $lines = null) |
|
50 | + { |
|
51 | + } |
|
52 | 52 | |
53 | - /** |
|
54 | - * Overwrites the previous output with a new message. |
|
55 | - * |
|
56 | - * @return void |
|
57 | - */ |
|
58 | - public function overwrite(string|iterable $message) |
|
59 | - { |
|
60 | - } |
|
53 | + /** |
|
54 | + * Overwrites the previous output with a new message. |
|
55 | + * |
|
56 | + * @return void |
|
57 | + */ |
|
58 | + public function overwrite(string|iterable $message) |
|
59 | + { |
|
60 | + } |
|
61 | 61 | |
62 | - public function getContent(): string |
|
63 | - { |
|
64 | - } |
|
62 | + public function getContent(): string |
|
63 | + { |
|
64 | + } |
|
65 | 65 | |
66 | - public function getVisibleContent(): string |
|
67 | - { |
|
68 | - } |
|
66 | + public function getVisibleContent(): string |
|
67 | + { |
|
68 | + } |
|
69 | 69 | |
70 | - /** |
|
71 | - * @internal |
|
72 | - */ |
|
73 | - public function addContent(string $input, bool $newline = true): int |
|
74 | - { |
|
75 | - } |
|
70 | + /** |
|
71 | + * @internal |
|
72 | + */ |
|
73 | + public function addContent(string $input, bool $newline = true): int |
|
74 | + { |
|
75 | + } |
|
76 | 76 | |
77 | - /** |
|
78 | - * @internal |
|
79 | - */ |
|
80 | - public function addNewLineOfInputSubmit(): void |
|
81 | - { |
|
82 | - } |
|
77 | + /** |
|
78 | + * @internal |
|
79 | + */ |
|
80 | + public function addNewLineOfInputSubmit(): void |
|
81 | + { |
|
82 | + } |
|
83 | 83 | |
84 | - /** |
|
85 | - * @return void |
|
86 | - */ |
|
87 | - protected function doWrite(string $message, bool $newline) |
|
88 | - { |
|
89 | - } |
|
84 | + /** |
|
85 | + * @return void |
|
86 | + */ |
|
87 | + protected function doWrite(string $message, bool $newline) |
|
88 | + { |
|
89 | + } |
|
90 | 90 | } |
@@ -55,7 +55,7 @@ |
||
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 |
@@ -11,39 +11,39 @@ |
||
11 | 11 | */ |
12 | 12 | interface Constraint |
13 | 13 | { |
14 | - /** @return string */ |
|
15 | - public function getName() |
|
16 | - { |
|
17 | - } |
|
14 | + /** @return string */ |
|
15 | + public function getName() |
|
16 | + { |
|
17 | + } |
|
18 | 18 | |
19 | - /** @return string */ |
|
20 | - public function getQuotedName(AbstractPlatform $platform) |
|
21 | - { |
|
22 | - } |
|
19 | + /** @return string */ |
|
20 | + public function getQuotedName(AbstractPlatform $platform) |
|
21 | + { |
|
22 | + } |
|
23 | 23 | |
24 | - /** |
|
25 | - * Returns the names of the referencing table columns |
|
26 | - * the constraint is associated with. |
|
27 | - * |
|
28 | - * @return string[] |
|
29 | - */ |
|
30 | - public function getColumns() |
|
31 | - { |
|
32 | - } |
|
24 | + /** |
|
25 | + * Returns the names of the referencing table columns |
|
26 | + * the constraint is associated with. |
|
27 | + * |
|
28 | + * @return string[] |
|
29 | + */ |
|
30 | + public function getColumns() |
|
31 | + { |
|
32 | + } |
|
33 | 33 | |
34 | - /** |
|
35 | - * Returns the quoted representation of the column names |
|
36 | - * the constraint is associated with. |
|
37 | - * |
|
38 | - * But only if they were defined with one or a column name |
|
39 | - * is a keyword reserved by the platform. |
|
40 | - * Otherwise the plain unquoted value as inserted is returned. |
|
41 | - * |
|
42 | - * @param AbstractPlatform $platform The platform to use for quotation. |
|
43 | - * |
|
44 | - * @return string[] |
|
45 | - */ |
|
46 | - public function getQuotedColumns(AbstractPlatform $platform) |
|
47 | - { |
|
48 | - } |
|
34 | + /** |
|
35 | + * Returns the quoted representation of the column names |
|
36 | + * the constraint is associated with. |
|
37 | + * |
|
38 | + * But only if they were defined with one or a column name |
|
39 | + * is a keyword reserved by the platform. |
|
40 | + * Otherwise the plain unquoted value as inserted is returned. |
|
41 | + * |
|
42 | + * @param AbstractPlatform $platform The platform to use for quotation. |
|
43 | + * |
|
44 | + * @return string[] |
|
45 | + */ |
|
46 | + public function getQuotedColumns(AbstractPlatform $platform) |
|
47 | + { |
|
48 | + } |
|
49 | 49 | } |