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
@@ 85-90 (lines=6) @@
82
     */
83
    public function addProperty($first)
84
    {
85
        foreach (func_get_args() as $property) {
86
            if ($this->hasProperty($property)) {
87
                throw new LogicException("Duplicate property $property");
88
            }
89
            $this->properties[] = $property;
90
        }
91
        return $this;
92
    }
93