Code Duplication    Length = 9-9 lines in 2 locations

src/OroCRM/Bundle/SalesBundle/Migrations/Schema/v1_22/UpdateReportQuery.php 1 location

@@ 181-189 (lines=9) @@
178
     * @param $query
179
     * @throws \Doctrine\DBAL\DBALException
180
     */
181
    protected function executeQuery(LoggerInterface $logger, $dryRun, $def, $row, $query)
182
    {
183
        $params = ['definition' => json_encode($def), 'id' => $row['id']];
184
        $types = ['definition' => 'text', 'id' => 'integer'];
185
        $this->logQuery($logger, $query, $params, $types);
186
        if (!$dryRun) {
187
            $this->connection->executeUpdate($query, $params, $types);
188
        }
189
    }
190
191
    /**
192
     * @param $def

src/OroCRM/Bundle/SalesBundle/Migrations/Schema/v1_24/UpdateReport.php 1 location

@@ 217-225 (lines=9) @@
214
     * @param string $query
215
     * @throws \Doctrine\DBAL\DBALException
216
     */
217
    protected function executeQuery(LoggerInterface $logger, $dryRun, $def, $row, $query)
218
    {
219
        $params = ['definition' => json_encode($def), 'id' => $row['id']];
220
        $types = ['definition' => 'text', 'id' => 'integer'];
221
        $this->logQuery($logger, $query, $params, $types);
222
        if (!$dryRun) {
223
            $this->connection->executeUpdate($query, $params, $types);
224
        }
225
    }
226
227
    /**
228
     * @param array $def