Code Duplication    Length = 6-6 lines in 3 locations

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

@@ 64-69 (lines=6) @@
61
                'contents'  => $this->type
62
            ];
63
        }
64
        if (null !== $this->branch) {
65
            $data[] = [
66
                'name'      => 'branch',
67
                'contents'  => $this->branch
68
            ];
69
        }
70
        foreach ($this->translations as $translation) {
71
            $data[] = [
72
                'name'      => 'files['.$translation->getCrowdinPath().']',

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

@@ 55-60 (lines=6) @@
52
        );
53
54
        $data = $this->parameters;
55
        if (null !== $this->branch) {
56
            $data[] = [
57
                'name'      => 'branch',
58
                'contents'  => $this->branch
59
            ];
60
        }
61
62
        foreach ($this->translations as $translation) {
63
            $data[] = [

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

@@ 87-92 (lines=6) @@
84
            'contents'  => $this->locale
85
        ];
86
        
87
        if (null !== $this->branch) {
88
            $data[] = [
89
                'name'      => 'branch',
90
                'contents'  => $this->branch
91
            ];
92
        }
93
94
        foreach ($this->translations as $translation) {
95
            $data[] = [