@@ -25,10 +25,8 @@ |
||
25 | 25 | namespace FacebookAds\Object; |
26 | 26 | |
27 | 27 | use FacebookAds\Http\RequestInterface; |
28 | -use FacebookAds\Object\Values\CustomAudienceTypes; |
|
29 | 28 | use FacebookAds\Object\Fields\CustomAudienceFields; |
30 | 29 | use FacebookAds\Object\CustomAudienceNormalizers\HashNormalizer; |
31 | -use FacebookAds\Object\Fields\CustomAudienceMultikeySchemaFields; |
|
32 | 30 | |
33 | 31 | class CustomAudienceMultiKey extends AbstractCrudObject { |
34 | 32 |
@@ -1,26 +1,26 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
4 | - * |
|
5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
6 | - * use, copy, modify, and distribute this software in source code or binary |
|
7 | - * form for use in connection with the web services and APIs provided by |
|
8 | - * Facebook. |
|
9 | - * |
|
10 | - * As with any software that integrates with the Facebook platform, your use |
|
11 | - * of this software is subject to the Facebook Developer Principles and |
|
12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
13 | - * shall be included in all copies or substantial portions of the software. |
|
14 | - * |
|
15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
21 | - * DEALINGS IN THE SOFTWARE. |
|
22 | - * |
|
23 | - */ |
|
3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
4 | + * |
|
5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
6 | + * use, copy, modify, and distribute this software in source code or binary |
|
7 | + * form for use in connection with the web services and APIs provided by |
|
8 | + * Facebook. |
|
9 | + * |
|
10 | + * As with any software that integrates with the Facebook platform, your use |
|
11 | + * of this software is subject to the Facebook Developer Principles and |
|
12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
13 | + * shall be included in all copies or substantial portions of the software. |
|
14 | + * |
|
15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
21 | + * DEALINGS IN THE SOFTWARE. |
|
22 | + * |
|
23 | + */ |
|
24 | 24 | |
25 | 25 | namespace FacebookAds\Object; |
26 | 26 | |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | const HASH_TYPE_SHA256 = 'sha256'; |
39 | 39 | |
40 | 40 | /** |
41 | - * @var \ArrayObject |
|
42 | - */ |
|
41 | + * @var \ArrayObject |
|
42 | + */ |
|
43 | 43 | protected $normalizers; |
44 | 44 | |
45 | 45 | /** |
@@ -145,8 +145,7 @@ |
||
145 | 145 | $normalizers = new \ArrayObject(array( |
146 | 146 | new HashNormalizer() |
147 | 147 | )); |
148 | - } |
|
149 | - else { |
|
148 | + } else { |
|
150 | 149 | $normalizers = clone $this->getNormalizers(); |
151 | 150 | $normalizers->append(new HashNormalizer()); |
152 | 151 | } |
@@ -28,14 +28,14 @@ |
||
28 | 28 | |
29 | 29 | /** |
30 | 30 | * @param string $key |
31 | - * @param string $key_value |
|
31 | + * @param string $val |
|
32 | 32 | * @return boolean |
33 | 33 | */ |
34 | 34 | public function shouldNormalize($key, $val); |
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param string $key |
38 | - * @param string $key_value |
|
38 | + * @param string $val |
|
39 | 39 | * @return string |
40 | 40 | */ |
41 | 41 | public function normalize($key, $val); |
@@ -38,5 +38,5 @@ |
||
38 | 38 | const MOBILE_INTERSTITIAL = 'MOBILE_INTERSTITIAL'; |
39 | 39 | const MOBILE_FEED_BASIC = 'MOBILE_FEED_BASIC'; |
40 | 40 | const MOBILE_NATIVE = 'MOBILE_NATIVE'; |
41 | - const INSTAGRAM_STANDARD= 'INSTAGRAM_STANDARD'; |
|
41 | + const INSTAGRAM_STANDARD = 'INSTAGRAM_STANDARD'; |
|
42 | 42 | } |
@@ -1,26 +1,26 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
4 | - * |
|
5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
6 | - * use, copy, modify, and distribute this software in source code or binary |
|
7 | - * form for use in connection with the web services and APIs provided by |
|
8 | - * Facebook. |
|
9 | - * |
|
10 | - * As with any software that integrates with the Facebook platform, your use |
|
11 | - * of this software is subject to the Facebook Developer Principles and |
|
12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
13 | - * shall be included in all copies or substantial portions of the software. |
|
14 | - * |
|
15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
21 | - * DEALINGS IN THE SOFTWARE. |
|
22 | - * |
|
23 | - */ |
|
3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
4 | + * |
|
5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
6 | + * use, copy, modify, and distribute this software in source code or binary |
|
7 | + * form for use in connection with the web services and APIs provided by |
|
8 | + * Facebook. |
|
9 | + * |
|
10 | + * As with any software that integrates with the Facebook platform, your use |
|
11 | + * of this software is subject to the Facebook Developer Principles and |
|
12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
13 | + * shall be included in all copies or substantial portions of the software. |
|
14 | + * |
|
15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
21 | + * DEALINGS IN THE SOFTWARE. |
|
22 | + * |
|
23 | + */ |
|
24 | 24 | |
25 | 25 | namespace FacebookAds\Object; |
26 | 26 | |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | |
33 | 33 | class CustomAudience extends AbstractCrudObject { |
34 | 34 | |
35 | - /** |
|
36 | - * @var string |
|
37 | - * @deprecated use HashNormalizer::HASH_TYPE_SHA256 |
|
38 | - */ |
|
35 | + /** |
|
36 | + * @var string |
|
37 | + * @deprecated use HashNormalizer::HASH_TYPE_SHA256 |
|
38 | + */ |
|
39 | 39 | const HASH_TYPE_SHA256 = 'sha256'; |
40 | 40 | |
41 | 41 | /** |