Code Duplication    Length = 6-6 lines in 2 locations

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

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

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

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