Code Duplication    Length = 8-8 lines in 2 locations

source/Spiral/ODM/ODM.php 1 location

@@ 131-138 (lines=8) @@
128
     * @param SchemaBuilder $builder
129
     * @param bool          $remember Set to true to remember packed schema in memory.
130
     */
131
    public function setSchema(SchemaBuilder $builder, bool $remember = false)
132
    {
133
        $this->schema = $builder->packSchema();
134
135
        if ($remember) {
136
            $this->memory->saveData(static::MEMORY, $this->schema);
137
        }
138
    }
139
140
    /**
141
     * {@inheritdoc}

source/Spiral/ORM/ORM.php 1 location

@@ 122-129 (lines=8) @@
119
     * @param SchemaBuilder $builder
120
     * @param bool          $remember Set to true to remember packed schema in memory.
121
     */
122
    public function setSchema(SchemaBuilder $builder, bool $remember = false)
123
    {
124
        $this->schema = $builder->packSchema();
125
126
        if ($remember) {
127
            $this->memory->saveData(static::MEMORY, $this->schema);
128
        }
129
    }
130
131
    /**
132
     * {@inheritdoc}