Code Duplication    Length = 5-6 lines in 2 locations

src/Schema/Type.php 2 locations

@@ 51-55 (lines=5) @@
48
    public function addIndex($properties, array $arguments = null)
49
    {
50
        $properties = (array) $properties;
51
        foreach ($properties as $property) {
52
            if (!$this->hasProperty($property)) {
53
                throw new LogicException("Unknown property $property for " . $this->name);
54
            }
55
        }
56
57
        $schema = $this->manager->getSchema();
58
@@ 88-93 (lines=6) @@
85
     */
86
    public function addProperty($first)
87
    {
88
        foreach (func_get_args() as $property) {
89
            if ($this->hasProperty($property)) {
90
                throw new LogicException("Duplicate property $property");
91
            }
92
            $this->properties[] = $property;
93
        }
94
        return $this;
95
    }
96