Code Duplication    Length = 4-6 lines in 2 locations

source/AbstractGenerator.php 2 locations

@@ 120-123 (lines=4) @@
117
        $name = (string) $name;
118
119
        if ($isStackable) {
120
            if ((!isset($this->properties[$name]))
121
                || (!is_array($this->properties[$name]))) {
122
                $this->properties[$name] = [];
123
            }
124
            $this->properties[$name][] = $value;
125
        } else {
126
            if (!isset($this->properties[$name])) {
@@ 125-130 (lines=6) @@
122
                $this->properties[$name] = [];
123
            }
124
            $this->properties[$name][] = $value;
125
        } else {
126
            if (!isset($this->properties[$name])) {
127
                $this->properties[$name] = null;
128
            }
129
            $this->properties[$name] = $value;
130
        }
131
132
        $this->markAsCanBeGenerated();
133
    }