Code Duplication    Length = 11-11 lines in 2 locations

src/LesserPhp/Parser.php 2 locations

@@ 239-249 (lines=11) @@
236
237
            if ($this->literal("@", false) && $this->keyword($dirName)) {
238
                if ($this->isDirective($dirName, $this->blockDirectives)) {
239
                    if (($this->openString("{", $dirValue, null, [";"]) || true) &&
240
                        $this->literal("{")
241
                    ) {
242
                        $dir = $this->pushSpecialBlock("directive");
243
                        $dir->name = $dirName;
244
                        if (isset($dirValue)) {
245
                            $dir->value = $dirValue;
246
                        }
247
248
                        return true;
249
                    }
250
                } elseif ($this->isDirective($dirName, $this->lineDirectives)) {
251
                    if ($this->propertyValue($dirValue) && $this->end()) {
252
                        $this->append(["directive", $dirName, $dirValue]);
@@ 258-268 (lines=11) @@
255
                    }
256
                } elseif ($this->literal(":", true)) {
257
                    //Ruleset Definition
258
                    if (($this->openString("{", $dirValue, null, [";"]) || true) &&
259
                        $this->literal("{")
260
                    ) {
261
                        $dir = $this->pushBlock($this->fixTags(["@" . $dirName]));
262
                        $dir->name = $dirName;
263
                        if (isset($dirValue)) {
264
                            $dir->value = $dirValue;
265
                        }
266
267
                        return true;
268
                    }
269
                }
270
            }
271