Code Duplication    Length = 14-15 lines in 2 locations

src/Transfer/EzPlatform/Repository/Values/Mapper/LocationMapper.php 2 locations

@@ 57-71 (lines=15) @@
54
    /**
55
     * @param LocationCreateStruct $createStruct
56
     */
57
    public function mapObjectToCreateStruct(LocationCreateStruct $createStruct)
58
    {
59
        // Name collection (ez => transfer)
60
        $keys = array(
61
            'remoteId' => 'remote_id',
62
            'hidden' => 'hidden',
63
            'priority' => 'priority',
64
            'sortField' => 'sort_field',
65
            'sortOrder' => 'sort_order',
66
        );
67
68
        $this->arrayToStruct($createStruct, $keys);
69
70
        $this->callStruct($createStruct);
71
    }
72
73
    /**
74
     * @param LocationUpdateStruct $updateStruct
@@ 76-89 (lines=14) @@
73
    /**
74
     * @param LocationUpdateStruct $updateStruct
75
     */
76
    public function mapObjectToUpdateStruct(LocationUpdateStruct $updateStruct)
77
    {
78
        // Name collection (ez => transfer)
79
        $keys = array(
80
            'remoteId' => 'remote_id',
81
            'priority' => 'priority',
82
            'sortField' => 'sort_field',
83
            'sortOrder' => 'sort_order',
84
        );
85
86
        $this->arrayToStruct($updateStruct, $keys);
87
88
        $this->callStruct($updateStruct);
89
    }
90
91
    /**
92
     * @param LocationCreateStruct|LocationUpdateStruct $struct