Code Duplication    Length = 8-8 lines in 2 locations

src/ClientLocal.php 2 locations

@@ 196-203 (lines=8) @@
193
    /**
194
     * @inheritDoc
195
     */
196
    public function createEntry($tableName, array $data)
197
    {
198
        $tableGateway = $this->getTableGateway($tableName);
199
        $data = $this->parseData($tableName, $data);
200
        $newRecord = $tableGateway->manageRecordUpdate($tableName, $data);
201
202
        return $this->createResponseFromData($newRecord->toArray());
203
    }
204
205
    /**
206
     * @inheritDoc
@@ 208-215 (lines=8) @@
205
    /**
206
     * @inheritDoc
207
     */
208
    public function updateEntry($tableName, $id, array $data)
209
    {
210
        $tableGateway = $this->getTableGateway($tableName);
211
        $data = $this->parseData($tableName, $data);
212
        $record = $tableGateway->manageRecordUpdate($tableName, array_merge($data, ['id' => $id]));
213
214
        return $this->createResponseFromData($record->toArray());
215
    }
216
217
    /**
218
     * @inheritDoc