minor #19718 Break switch (tvlooy)
This PR was merged into the 2.7 branch.
Discussion
----------
Break switch
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Commits
-------
c811eb7
remove duplicate instruction
This commit is contained in:
commit
384995e6da
@ -95,12 +95,10 @@ class MockSplFileInfo extends \SplFileInfo
|
|||||||
if (is_string($type)) {
|
if (is_string($type)) {
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'directory':
|
case 'directory':
|
||||||
$this->type = self::TYPE_DIRECTORY;
|
|
||||||
case 'd':
|
case 'd':
|
||||||
$this->type = self::TYPE_DIRECTORY;
|
$this->type = self::TYPE_DIRECTORY;
|
||||||
break;
|
break;
|
||||||
case 'file':
|
case 'file':
|
||||||
$this->type = self::TYPE_FILE;
|
|
||||||
case 'f':
|
case 'f':
|
||||||
$this->type = self::TYPE_FILE;
|
$this->type = self::TYPE_FILE;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user