Code Duplication    Length = 5-5 lines in 2 locations

src/StringStream.php 2 locations

@@ 103-107 (lines=5) @@
100
                $this->stream_truncate(0);
101
                break;
102
103
            case 'a':
104
                $this->read = false;
105
                $this->write = true;
106
                $this->position = strlen(self::$string[$this->path]);
107
                break;
108
109
            case 'a+':
110
                $this->read = true;
@@ 109-113 (lines=5) @@
106
                $this->position = strlen(self::$string[$this->path]);
107
                break;
108
109
            case 'a+':
110
                $this->read = true;
111
                $this->write = true;
112
                $this->position = strlen(self::$string[$this->path]);
113
                break;
114
115
            case 'c':
116
                $this->read = false;