@@ 25-33 (lines=9) @@ | ||
22 | return $resource === null || $value['cname'] == $resource; |
|
23 | }, ARRAY_FILTER_USE_BOTH); |
|
24 | ||
25 | foreach ($cdnResources as $cdnResource) { |
|
26 | $this->client->post($this->url, [ |
|
27 | 'form_params' => [ |
|
28 | 'cdn_id' => $cdnResource['id'], |
|
29 | 'login' => $this->login, |
|
30 | 'passwd' => $this->password, |
|
31 | ] |
|
32 | ]); |
|
33 | } |
|
34 | ||
35 | return; |
|
36 | } |
@@ 34-43 (lines=10) @@ | ||
31 | return $value['cname'] == $resource; |
|
32 | }, ARRAY_FILTER_USE_BOTH); |
|
33 | ||
34 | foreach ($cdnResources as $cdnResource) { |
|
35 | $this->client->post($this->url, [ |
|
36 | 'form_params' => [ |
|
37 | 'cdn_id' => $cdnResource['id'], |
|
38 | 'login' => $this->login, |
|
39 | 'passwd' => $this->password, |
|
40 | 'url' => $urls |
|
41 | ] |
|
42 | ]); |
|
43 | } |
|
44 | ||
45 | return; |
|
46 | } |