Code Duplication    Length = 6-6 lines in 2 locations

src/StringStream.php 2 locations

@@ 89-94 (lines=6) @@
86
                break;
87
88
            case 'w':
89
            case 'wb':
90
                $this->read = false;
91
                $this->write = true;
92
                $this->position = 0;
93
                $this->stream_truncate(0);
94
                break;
95
96
            case 'w+':
97
                $this->read = true;
@@ 96-101 (lines=6) @@
93
                $this->stream_truncate(0);
94
                break;
95
96
            case 'w+':
97
                $this->read = true;
98
                $this->write = true;
99
                $this->position = 0;
100
                $this->stream_truncate(0);
101
                break;
102
103
            case 'a':
104
                $this->read = false;