CS fixes
This commit is contained in:
parent
e48617b467
commit
d94b9ac308
@ -1052,6 +1052,7 @@ abstract class FrameworkExtensionTest extends TestCase
|
||||
if (ChainAdapter::class === $parentDefinition->getClass()) {
|
||||
break;
|
||||
}
|
||||
// no break
|
||||
case 'cache.adapter.filesystem':
|
||||
$this->assertSame(FilesystemAdapter::class, $parentDefinition->getClass());
|
||||
break;
|
||||
|
@ -247,6 +247,7 @@ class Data implements \ArrayAccess, \Countable, \IteratorAggregate
|
||||
$keys[] = Caster::PREFIX_PROTECTED.$key;
|
||||
$keys[] = Caster::PREFIX_VIRTUAL.$key;
|
||||
$keys[] = "\0$item->class\0$key";
|
||||
// no break
|
||||
case Stub::TYPE_ARRAY:
|
||||
case Stub::TYPE_RESOURCE:
|
||||
break;
|
||||
|
@ -656,11 +656,13 @@ class Inline
|
||||
}
|
||||
|
||||
// Optimize for returning strings.
|
||||
// no break
|
||||
case '+' === $scalar[0] || '-' === $scalar[0] || '.' === $scalar[0] || is_numeric($scalar[0]):
|
||||
switch (true) {
|
||||
case Parser::preg_match('{^[+-]?[0-9][0-9_]*$}', $scalar):
|
||||
$scalar = str_replace('_', '', (string) $scalar);
|
||||
// omitting the break / return as integers are handled in the next case
|
||||
// no break
|
||||
case ctype_digit($scalar):
|
||||
$raw = $scalar;
|
||||
$cast = (int) $scalar;
|
||||
|
Reference in New Issue
Block a user