Code Duplication    Length = 11-11 lines in 2 locations

src/deprecated/Row.php 1 location

@@ 41-51 (lines=11) @@
38
     *
39
     * @param VirtualMetadata $metadata Entity metadata
40
     */
41
    protected function createDefinition($metadata)
42
    {
43
        $this->generator
44
            ->multiComment(array(
45
                'Class for rendering "' . $metadata->entityRealName . '" row',
46
                '@deprecated Use ' . $this->className . 'Entity instead'
47
            ))
48
            ->defClass($this->className, '\\'.\samsoncms\api\field\Row::class)
49
            ->newLine('use \\'.\samsoncms\api\Renderable::class.';')
50
            ->newLine();
51
    }
52
}
53
//[PHPCOMPRESSOR(remove,end)]
54

src/deprecated/Table.php 1 location

@@ 54-64 (lines=11) @@
51
     *
52
     * @param VirtualMetadata $metadata Entity metadata
53
     */
54
    protected function createDefinition($metadata)
55
    {
56
        $this->generator
57
            ->multiComment(array(
58
                'Class for rendering "' . $metadata->entityRealName . '" table',
59
                '@deprecated Use ' . $this->className . 'Collection instead'
60
            ))
61
            ->defClass($this->className, '\\'.\samsoncms\api\field\Table::class)
62
            ->newLine('use \\'.\samsoncms\api\Renderable::class.';')
63
            ->newLine();
64
    }
65
66
    /**
67
     * Class constants generation part.