Code Duplication    Length = 6-6 lines in 2 locations

src/voku/helper/SimpleHtmlAttributes.php 2 locations

@@ 193-198 (lines=6) @@
190
191
        $i = array_search($token, $this->tokens);
192
        if ($force === null) {
193
            if ($i === false) {
194
                $this->tokens[] = $token;
195
                $isThereAfter = true;
196
            } else {
197
                array_splice($this->tokens, $i, 1);
198
            }
199
        } elseif ($force) {
200
            if ($i === false) {
201
                $this->tokens[] = $token;
@@ 199-204 (lines=6) @@
196
            } else {
197
                array_splice($this->tokens, $i, 1);
198
            }
199
        } elseif ($force) {
200
            if ($i === false) {
201
                $this->tokens[] = $token;
202
            }
203
            $isThereAfter = true;
204
        } else {
205
            /** @noinspection NestedPositiveIfStatementsInspection */
206
            if ($i !== false) {
207
                array_splice($this->tokens, $i, 1);