Code Duplication    Length = 38-38 lines in 2 locations

api/src/Migration/Version0_17_0.php 1 location

@@ 13-50 (lines=38) @@
10
/**
11
 * Class Version0_17_0
12
 */
13
final class Version0_17_0 extends AbstractMigration
14
{
15
    /**
16
     * @var \Ds\Component\Acl\Migration\Version0_17_0
17
     */
18
    private $acl;
19
20
    /**
21
     * Constructor
22
     *
23
     * @param \Doctrine\DBAL\Migrations\Version  $version
24
     */
25
    public function __construct(Version $version)
26
    {
27
        parent::__construct($version);
28
        $this->acl = new Acl($version);
29
    }
30
31
    /**
32
     * Up migration
33
     *
34
     * @param \Doctrine\DBAL\Schema\Schema $schema
35
     */
36
    public function up(Schema $schema)
37
    {
38
        $this->acl->up($schema);
39
    }
40
41
    /**
42
     * Down migration
43
     *
44
     * @param \Doctrine\DBAL\Schema\Schema $schema
45
     */
46
    public function down(Schema $schema)
47
    {
48
        $this->acl->down($schema);
49
    }
50
}
51

api/src/Migration/Version0_19_0.php 1 location

@@ 13-50 (lines=38) @@
10
/**
11
 * Class Version0_19_0
12
 */
13
final class Version0_19_0 extends AbstractMigration
14
{
15
    /**
16
     * @var \Ds\Component\Acl\Migration\Version0_19_0
17
     */
18
    private $acl;
19
20
    /**
21
     * Constructor
22
     *
23
     * @param \Doctrine\DBAL\Migrations\Version  $version
24
     */
25
    public function __construct(Version $version)
26
    {
27
        parent::__construct($version);
28
        $this->acl = new Acl($version);
29
    }
30
31
    /**
32
     * Up migration
33
     *
34
     * @param \Doctrine\DBAL\Schema\Schema $schema
35
     */
36
    public function up(Schema $schema)
37
    {
38
        $this->acl->up($schema);
39
    }
40
41
    /**
42
     * Down migration
43
     *
44
     * @param \Doctrine\DBAL\Schema\Schema $schema
45
     */
46
    public function down(Schema $schema)
47
    {
48
        $this->acl->down($schema);
49
    }
50
}
51