| @@ 48-56 (lines=9) @@ | ||
| 45 | $data['branch'] = $this->branch; |
|
| 46 | } |
|
| 47 | ||
| 48 | foreach ($this->translations as $translation) { |
|
| 49 | $data['files['.$translation->getCrowdinPath().']'] = '@'.$translation->getLocalPath(); |
|
| 50 | if ($translation->getTitle()) { |
|
| 51 | $data['titles['.$translation->getCrowdinPath().']'] = $translation->getTitle(); |
|
| 52 | } |
|
| 53 | if ($translation->getExportPattern()) { |
|
| 54 | $data['export_patterns['.$translation->getCrowdinPath().']'] = $translation->getExportPattern(); |
|
| 55 | } |
|
| 56 | } |
|
| 57 | ||
| 58 | $request = $this->client->getHttpClient()->post($path, [], $data); |
|
| 59 | $response = $request->send(); |
|
| @@ 41-49 (lines=9) @@ | ||
| 38 | $data['branch'] = $this->branch; |
|
| 39 | } |
|
| 40 | ||
| 41 | foreach ($this->translations as $translation) { |
|
| 42 | $data['files['.$translation->getCrowdinPath().']'] = '@'.$translation->getLocalPath(); |
|
| 43 | if ($translation->getTitle()) { |
|
| 44 | $data['titles['.$translation->getCrowdinPath().']'] = $translation->getTitle(); |
|
| 45 | } |
|
| 46 | if ($translation->getExportPattern()) { |
|
| 47 | $data['export_patterns['.$translation->getCrowdinPath().']'] = $translation->getExportPattern(); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | $request = $this->client->getHttpClient()->post($path, [], $data); |
|
| 52 | $response = $request->send(); |
|