Code Duplication    Length = 29-29 lines in 2 locations

src/Actions/ProductAction.php 1 location

@@ 34-62 (lines=29) @@
31
 * @link      https://github.com/techdivision/import-product
32
 * @link      http://www.techdivision.com
33
 */
34
class ProductAction extends AbstractAction
35
{
36
37
    /**
38
     * Persist's the passed row.
39
     *
40
     * @param array       $row  The row to persist
41
     * @param string|null $name The name of the prepared statement that has to be executed
42
     *
43
     * @return string The last inserted ID
44
     */
45
    public function persist($row, $name = null)
46
    {
47
        return $this->getPersistProcessor()->execute($row, $name);
48
    }
49
50
    /**
51
     * Remove's the entity with the passed attributes.
52
     *
53
     * @param array       $row  The attributes of the entity to remove
54
     * @param string|null $name The name of the prepared statement that has to be executed
55
     *
56
     * @return void
57
     */
58
    public function remove($row, $name = null)
59
    {
60
        return $this->getRemoveProcessor()->execute($row, $name);
61
    }
62
}
63

src/Actions/UrlRewriteAction.php 1 location

@@ 34-62 (lines=29) @@
31
 * @link      https://github.com/techdivision/import-product
32
 * @link      http://www.techdivision.com
33
 */
34
class UrlRewriteAction extends AbstractAction
35
{
36
37
    /**
38
     * Persist's the passed row.
39
     *
40
     * @param array       $row  The row to persist
41
     * @param string|null $name The name of the prepared statement that has to be executed
42
     *
43
     * @return string The last inserted ID
44
     */
45
    public function persist($row, $name = null)
46
    {
47
        return $this->getPersistProcessor()->execute($row, $name);
48
    }
49
50
    /**
51
     * Remove's the entity with the passed attributes.
52
     *
53
     * @param array       $row  The attributes of the entity to remove
54
     * @param string|null $name The name of the prepared statement that has to be executed
55
     *
56
     * @return void
57
     */
58
    public function remove($row, $name = null)
59
    {
60
        return $this->getRemoveProcessor()->execute($row, $name);
61
    }
62
}
63