Code Duplication    Length = 16-16 lines in 2 locations

Generator/Action/Object/EditAction.php 1 location

@@ 13-28 (lines=16) @@
10
 * @author cedric Lombardot
11
 * @author Piotr Gołębiewski <[email protected]>
12
 */
13
class EditAction extends Action
14
{
15
    public function __construct($name, BaseBuilder $builder)
16
    {
17
        parent::__construct($name, 'object');
18
19
        $this->setIcon('fa-edit');
20
        $this->setLabel('action.object.edit.label');
21
22
        $this->setRoute($builder->getBaseActionsRoute().'_edit');
23
24
        $this->setParams(array(
25
            'pk' => '{{ '.$builder->getModelClass().'.'.$builder->getModelPrimaryKeyName().' }}',
26
        ));
27
    }
28
}
29

Generator/Action/Object/ShowAction.php 1 location

@@ 13-28 (lines=16) @@
10
 * @author Eymen Gunay
11
 * @author Piotr Gołębiewski <[email protected]>
12
 */
13
class ShowAction extends Action
14
{
15
    public function __construct($name, BaseBuilder $builder)
16
    {
17
        parent::__construct($name, 'object');
18
19
        $this->setIcon('fa-eye');
20
        $this->setLabel('action.object.show.label');
21
22
        $this->setRoute($builder->getBaseActionsRoute().'_show');
23
24
        $this->setParams(array(
25
            'pk' => '{{ '.$builder->getModelClass().'.'.$builder->getModelPrimaryKeyName().' }}',
26
        ));
27
    }
28
}
29