Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79239fe

Browse filesBrowse files
CS fix
1 parent a9b0f43 commit 79239fe
Copy full SHA for 79239fe

File tree

7 files changed

+1
-38
lines changed
Filter options

7 files changed

+1
-38
lines changed

‎src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,12 @@ public function guessType($class, $property)
6060

6161
switch ($metadata->getTypeOfField($property)) {
6262
case self::$useDeprecatedConstants ? Type::TARRAY : Types::ARRAY:
63-
// no break
6463
case self::$useDeprecatedConstants ? Type::SIMPLE_ARRAY : Types::SIMPLE_ARRAY:
6564
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\CollectionType', [], Guess::MEDIUM_CONFIDENCE);
6665
case self::$useDeprecatedConstants ? Type::BOOLEAN : Types::BOOLEAN:
6766
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\CheckboxType', [], Guess::HIGH_CONFIDENCE);
6867
case self::$useDeprecatedConstants ? Type::DATETIME : Types::DATETIME_MUTABLE:
69-
// no break
7068
case self::$useDeprecatedConstants ? Type::DATETIMETZ : Types::DATETIMETZ_MUTABLE:
71-
// no break
7269
case 'vardatetime':
7370
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\DateTimeType', [], Guess::HIGH_CONFIDENCE);
7471
case 'datetime_immutable':
@@ -89,9 +86,7 @@ public function guessType($class, $property)
8986
case self::$useDeprecatedConstants ? Type::FLOAT : Types::FLOAT:
9087
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\NumberType', [], Guess::MEDIUM_CONFIDENCE);
9188
case self::$useDeprecatedConstants ? Type::INTEGER : Types::INTEGER:
92-
// no break
9389
case self::$useDeprecatedConstants ? Type::BIGINT : Types::BIGINT:
94-
// no break
9590
case self::$useDeprecatedConstants ? Type::SMALLINT : Types::SMALLINT:
9691
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\IntegerType', [], Guess::MEDIUM_CONFIDENCE);
9792
case self::$useDeprecatedConstants ? Type::STRING : Types::STRING:

‎src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php
+1-18Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,8 @@ public function getTypes($class, $property, array $context = [])
168168
case Type::BUILTIN_TYPE_OBJECT:
169169
switch ($typeOfField) {
170170
case self::$useDeprecatedConstants ? DBALType::DATE : Types::DATE_MUTABLE:
171-
// no break
172171
case self::$useDeprecatedConstants ? DBALType::DATETIME : Types::DATETIME_MUTABLE:
173-
// no break
174172
case self::$useDeprecatedConstants ? DBALType::DATETIMETZ : Types::DATETIMETZ_MUTABLE:
175-
// no break
176173
case 'vardatetime':
177174
case self::$useDeprecatedConstants ? DBALType::TIME : Types::TIME_MUTABLE:
178175
return [new Type(Type::BUILTIN_TYPE_OBJECT, $nullable, 'DateTime')];
@@ -191,7 +188,6 @@ public function getTypes($class, $property, array $context = [])
191188
case Type::BUILTIN_TYPE_ARRAY:
192189
switch ($typeOfField) {
193190
case self::$useDeprecatedConstants ? DBALType::TARRAY : Types::ARRAY:
194-
// no break
195191
case 'json_array':
196192
// return null if $enumType is set, because we can't determine if collectionKeyType is string or int
197193
if ($enumType) {
@@ -208,7 +204,7 @@ public function getTypes($class, $property, array $context = [])
208204
if ($enumType !== null) {
209205
return [$enumType];
210206
}
211-
// no break
207+
break;
212208
}
213209

214210
return [new Type($builtinType, $nullable)];
@@ -282,43 +278,32 @@ private function getPhpType(string $doctrineType): ?string
282278
{
283279
switch ($doctrineType) {
284280
case self::$useDeprecatedConstants ? DBALType::SMALLINT : Types::SMALLINT:
285-
// no break
286281
case self::$useDeprecatedConstants ? DBALType::INTEGER : Types::INTEGER:
287282
return Type::BUILTIN_TYPE_INT;
288283

289284
case self::$useDeprecatedConstants ? DBALType::FLOAT : Types::FLOAT:
290285
return Type::BUILTIN_TYPE_FLOAT;
291286

292287
case self::$useDeprecatedConstants ? DBALType::BIGINT : Types::BIGINT:
293-
// no break
294288
case self::$useDeprecatedConstants ? DBALType::STRING : Types::STRING:
295-
// no break
296289
case self::$useDeprecatedConstants ? DBALType::TEXT : Types::TEXT:
297-
// no break
298290
case self::$useDeprecatedConstants ? DBALType::GUID : Types::GUID:
299-
// no break
300291
case self::$useDeprecatedConstants ? DBALType::DECIMAL : Types::DECIMAL:
301292
return Type::BUILTIN_TYPE_STRING;
302293

303294
case self::$useDeprecatedConstants ? DBALType::BOOLEAN : Types::BOOLEAN:
304295
return Type::BUILTIN_TYPE_BOOL;
305296

306297
case self::$useDeprecatedConstants ? DBALType::BLOB : Types::BLOB:
307-
// no break
308298
case 'binary':
309299
return Type::BUILTIN_TYPE_RESOURCE;
310300

311301
case self::$useDeprecatedConstants ? DBALType::OBJECT : Types::OBJECT:
312-
// no break
313302
case self::$useDeprecatedConstants ? DBALType::DATE : Types::DATE_MUTABLE:
314-
// no break
315303
case self::$useDeprecatedConstants ? DBALType::DATETIME : Types::DATETIME_MUTABLE:
316-
// no break
317304
case self::$useDeprecatedConstants ? DBALType::DATETIMETZ : Types::DATETIMETZ_MUTABLE:
318-
// no break
319305
case 'vardatetime':
320306
case self::$useDeprecatedConstants ? DBALType::TIME : Types::TIME_MUTABLE:
321-
// no break
322307
case 'date_immutable':
323308
case 'datetime_immutable':
324309
case 'datetimetz_immutable':
@@ -327,9 +312,7 @@ private function getPhpType(string $doctrineType): ?string
327312
return Type::BUILTIN_TYPE_OBJECT;
328313

329314
case self::$useDeprecatedConstants ? DBALType::TARRAY : Types::ARRAY:
330-
// no break
331315
case self::$useDeprecatedConstants ? DBALType::SIMPLE_ARRAY : Types::SIMPLE_ARRAY:
332-
// no break
333316
case 'json_array':
334317
return Type::BUILTIN_TYPE_ARRAY;
335318
}

‎src/Symfony/Component/Form/Extension/Core/Type/FileType.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/FileType.php
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,8 @@ private static function getMaxFilesize()
200200

201201
switch (substr($iniMax, -1)) {
202202
case 't': $max *= 1024;
203-
// no break
204203
case 'g': $max *= 1024;
205-
// no break
206204
case 'm': $max *= 1024;
207-
// no break
208205
case 'k': $max *= 1024;
209206
}
210207

‎src/Symfony/Component/Form/Util/ServerParams.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Util/ServerParams.php
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,8 @@ public function getPostMaxSize()
6262

6363
switch (substr($iniMax, -1)) {
6464
case 't': $max *= 1024;
65-
// no break
6665
case 'g': $max *= 1024;
67-
// no break
6866
case 'm': $max *= 1024;
69-
// no break
7067
case 'k': $max *= 1024;
7168
}
7269

‎src/Symfony/Component/HttpFoundation/File/UploadedFile.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/File/UploadedFile.php
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,8 @@ private static function parseFilesize(string $size)
273273

274274
switch (substr($size, -1)) {
275275
case 't': $max *= 1024;
276-
// no break
277276
case 'g': $max *= 1024;
278-
// no break
279277
case 'm': $max *= 1024;
280-
// no break
281278
case 'k': $max *= 1024;
282279
}
283280

‎src/Symfony/Component/HttpKernel/DataCollector/MemoryDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/DataCollector/MemoryDataCollector.php
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,8 @@ private function convertToBytes(string $memoryLimit)
114114

115115
switch (substr($memoryLimit, -1)) {
116116
case 't': $max *= 1024;
117-
// no break
118117
case 'g': $max *= 1024;
119-
// no break
120118
case 'm': $max *= 1024;
121-
// no break
122119
case 'k': $max *= 1024;
123120
}
124121

‎src/Symfony/Component/Messenger/Command/ConsumeMessagesCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Command/ConsumeMessagesCommand.php
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,8 @@ private function convertToBytes(string $memoryLimit): int
219219

220220
switch (substr(rtrim($memoryLimit, 'b'), -1)) {
221221
case 't': $max *= 1024;
222-
// no break
223222
case 'g': $max *= 1024;
224-
// no break
225223
case 'm': $max *= 1024;
226-
// no break
227224
case 'k': $max *= 1024;
228225
}
229226

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.