Code Duplication    Length = 10-10 lines in 3 locations

src/Akeneo/Crowdin/Api/AddFile.php 1 location

@@ 103-112 (lines=10) @@
100
     *
101
     * @return $this
102
     */
103
    public function addTranslation($localPath, $crowdinPath, $exportPattern = null, $title = null)
104
    {
105
        $translation = new Translation($localPath, $crowdinPath);
106
        $translation->setExportPattern($exportPattern);
107
        $translation->setTitle($title);
108
109
        $this->translations[] = $translation;
110
111
        return $this;
112
    }
113
114
    /**
115
     * @return Translation[]

src/Akeneo/Crowdin/Api/UpdateFile.php 1 location

@@ 95-104 (lines=10) @@
92
     *
93
     * @return $this
94
     */
95
    public function addTranslation($localPath, $crowdinPath, $exportPattern = null, $title = null)
96
    {
97
        $translation = new Translation($localPath, $crowdinPath);
98
        $translation->setExportPattern($exportPattern);
99
        $translation->setTitle($title);
100
101
        $this->translations[] = $translation;
102
103
        return $this;
104
    }
105
106
    /**
107
     * @return Translation[]

src/Akeneo/Crowdin/Api/UploadTranslation.php 1 location

@@ 115-124 (lines=10) @@
112
     *
113
     * @return $this
114
     */
115
    public function addTranslation($localPath, $crowdinPath, $exportPattern = null, $title = null)
116
    {
117
        $translation = new Translation($localPath, $crowdinPath);
118
        $translation->setExportPattern($exportPattern);
119
        $translation->setTitle($title);
120
121
        $this->translations[] = $translation;
122
123
        return $this;
124
    }
125
    
126
    /**
127
     * @param Translation[] $translations