Code Duplication    Length = 8-8 lines in 2 locations

source/Spiral/ODM/ODM.php 1 location

@@ 212-219 (lines=8) @@
209
     *
210
     * @return SchemaBuilder
211
     */
212
    public function schemaBuilder(ClassLocatorInterface $locator = null)
213
    {
214
        return $this->factory->make(SchemaBuilder::class, [
215
            'odm'     => $this,
216
            'config'  => $this->config,
217
            'locator' => $locator
218
        ]);
219
    }
220
221
    /**
222
     * Define document class using it's fieldset and definition.

moving/ORM/ORM.php 1 location

@@ 149-156 (lines=8) @@
146
     * @param ClassLocatorInterface $locator
147
     * @return SchemaBuilder
148
     */
149
    public function schemaBuilder(ClassLocatorInterface $locator = null)
150
    {
151
        return $this->factory->make(SchemaBuilder::class, [
152
            'config'  => $this->config,
153
            'orm'     => $this,
154
            'locator' => $locator
155
        ]);
156
    }
157
158
    /**
159
     * Create instance of relation schema based on relation type and given definition (declared in