@@ -1,26 +1,26 @@ |
||
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\Fields; |
26 | 26 |
@@ -28,15 +28,13 @@ |
||
28 | 28 | use FacebookAds\Object\Fields\ObjectStory\OfferDataFields; |
29 | 29 | use FacebookAds\Object\Traits\FieldValidation; |
30 | 30 | |
31 | -class OfferData extends AbstractObject |
|
32 | -{ |
|
31 | +class OfferData extends AbstractObject { |
|
33 | 32 | use FieldValidation; |
34 | 33 | |
35 | 34 | /** |
36 | 35 | * @return OfferDataFields |
37 | 36 | */ |
38 | - public static function getFieldsEnum() |
|
39 | - { |
|
37 | + public static function getFieldsEnum() { |
|
40 | 38 | return OfferDataFields::getInstance(); |
41 | 39 | } |
42 | 40 | } |
@@ -1,26 +1,26 @@ |
||
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\Fields; |
26 | 26 |
@@ -28,15 +28,13 @@ |
||
28 | 28 | use FacebookAds\Object\Fields\ObjectStory\TextDataFields; |
29 | 29 | use FacebookAds\Object\Traits\FieldValidation; |
30 | 30 | |
31 | -class TextData extends AbstractObject |
|
32 | -{ |
|
31 | +class TextData extends AbstractObject { |
|
33 | 32 | use FieldValidation; |
34 | 33 | |
35 | 34 | /** |
36 | 35 | * @return TextDataFields |
37 | 36 | */ |
38 | - public static function getFieldsEnum() |
|
39 | - { |
|
37 | + public static function getFieldsEnum() { |
|
40 | 38 | return TextDataFields::getInstance(); |
41 | 39 | } |
42 | 40 | } |
@@ -28,15 +28,13 @@ |
||
28 | 28 | use FacebookAds\Object\Fields\ObjectStory\AttachmentDataFields; |
29 | 29 | use FacebookAds\Object\Traits\FieldValidation; |
30 | 30 | |
31 | -class AttachmentData extends AbstractObject |
|
32 | -{ |
|
31 | +class AttachmentData extends AbstractObject { |
|
33 | 32 | use FieldValidation; |
34 | 33 | |
35 | 34 | /** |
36 | 35 | * @return AttachmentDataFields |
37 | 36 | */ |
38 | - public static function getFieldsEnum() |
|
39 | - { |
|
37 | + public static function getFieldsEnum() { |
|
40 | 38 | return AttachmentDataFields::getInstance(); |
41 | 39 | } |
42 | 40 | } |
@@ -1,26 +1,26 @@ |
||
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\Fields; |
26 | 26 |
@@ -31,8 +31,7 @@ discard block |
||
31 | 31 | use FacebookAds\Object\Traits\CannotDelete; |
32 | 32 | use FacebookAds\Object\Traits\FieldValidation; |
33 | 33 | |
34 | -class Business extends AbstractCrudObject |
|
35 | -{ |
|
34 | +class Business extends AbstractCrudObject { |
|
36 | 35 | use FieldValidation; |
37 | 36 | use CannotCreate; |
38 | 37 | use CannotDelete; |
@@ -40,16 +39,14 @@ discard block |
||
40 | 39 | /** |
41 | 40 | * @return string |
42 | 41 | */ |
43 | - protected function getEndpoint() |
|
44 | - { |
|
42 | + protected function getEndpoint() { |
|
45 | 43 | return 'businesses'; |
46 | 44 | } |
47 | 45 | |
48 | 46 | /** |
49 | 47 | * @return BusinessFields |
50 | 48 | */ |
51 | - public static function getFieldsEnum() |
|
52 | - { |
|
49 | + public static function getFieldsEnum() { |
|
53 | 50 | return BusinessFields::getInstance(); |
54 | 51 | } |
55 | 52 | |
@@ -58,8 +55,7 @@ discard block |
||
58 | 55 | * @param array $params |
59 | 56 | * @return Cursor |
60 | 57 | */ |
61 | - public function getAdAccounts($fields = array(), $params = array()) |
|
62 | - { |
|
58 | + public function getAdAccounts($fields = array(), $params = array()) { |
|
63 | 59 | return $this->getManyByConnection(BusinessAdAccount::className(), $fields, $params, 'adaccounts'); |
64 | 60 | } |
65 | 61 | |
@@ -68,8 +64,7 @@ discard block |
||
68 | 64 | * @param array $params |
69 | 65 | * @return Cursor |
70 | 66 | */ |
71 | - public function getUserPermissions($fields = array(), $params = array()) |
|
72 | - { |
|
67 | + public function getUserPermissions($fields = array(), $params = array()) { |
|
73 | 68 | return $this->getManyByConnection(UserPermission::className(), $fields, $params, 'userpermissions'); |
74 | 69 | } |
75 | 70 | |
@@ -77,8 +72,7 @@ discard block |
||
77 | 72 | * @param int $user_id |
78 | 73 | * @param string $role |
79 | 74 | */ |
80 | - public function addUserPermissionById($user_id, $role) |
|
81 | - { |
|
75 | + public function addUserPermissionById($user_id, $role) { |
|
82 | 76 | $params = array( |
83 | 77 | 'user' => $user_id, |
84 | 78 | 'role' => $role, |
@@ -93,8 +87,7 @@ discard block |
||
93 | 87 | /** |
94 | 88 | * @param int $user_id |
95 | 89 | */ |
96 | - public function deleteUserPermissionById($user_id) |
|
97 | - { |
|
90 | + public function deleteUserPermissionById($user_id) { |
|
98 | 91 | $params = array( |
99 | 92 | 'user' => $user_id, |
100 | 93 | ); |
@@ -109,8 +102,7 @@ discard block |
||
109 | 102 | * @param int $email |
110 | 103 | * @param string $role |
111 | 104 | */ |
112 | - public function inviteUserByEmail($email, $role) |
|
113 | - { |
|
105 | + public function inviteUserByEmail($email, $role) { |
|
114 | 106 | $params = array( |
115 | 107 | 'email' => $email, |
116 | 108 | 'role' => $role, |
@@ -125,8 +117,7 @@ discard block |
||
125 | 117 | /** |
126 | 118 | * @param int $email |
127 | 119 | */ |
128 | - public function deleteUserByEmail($email) |
|
129 | - { |
|
120 | + public function deleteUserByEmail($email) { |
|
130 | 121 | $params = array( |
131 | 122 | 'email' => $email, |
132 | 123 | ); |
@@ -142,8 +133,7 @@ discard block |
||
142 | 133 | * @param string $access_type |
143 | 134 | * @param array $roles |
144 | 135 | */ |
145 | - public function claimAdAccount($account_id, $access_type, $roles = array()) |
|
146 | - { |
|
136 | + public function claimAdAccount($account_id, $access_type, $roles = array()) { |
|
147 | 137 | $params = array( |
148 | 138 | 'adaccount_id' => $account_id, |
149 | 139 | 'access_type' => $access_type, |
@@ -163,8 +153,7 @@ discard block |
||
163 | 153 | /** |
164 | 154 | * @param int $account_id |
165 | 155 | */ |
166 | - public function deleteAdAccount($account_id) |
|
167 | - { |
|
156 | + public function deleteAdAccount($account_id) { |
|
168 | 157 | $params = array( |
169 | 158 | 'adaccount_id' => $account_id, |
170 | 159 | ); |
@@ -176,8 +165,7 @@ discard block |
||
176 | 165 | ); |
177 | 166 | } |
178 | 167 | |
179 | - public function claimApp($app_id, $access_type, $roles = array()) |
|
180 | - { |
|
168 | + public function claimApp($app_id, $access_type, $roles = array()) { |
|
181 | 169 | $params = array( |
182 | 170 | 'app_id' => $app_id, |
183 | 171 | 'access_type' => $access_type, |
@@ -197,8 +185,7 @@ discard block |
||
197 | 185 | /** |
198 | 186 | * @param int $app_id |
199 | 187 | */ |
200 | - public function deleteApp($app_id) |
|
201 | - { |
|
188 | + public function deleteApp($app_id) { |
|
202 | 189 | $params = array( |
203 | 190 | 'app_id' => $app_id, |
204 | 191 | ); |
@@ -209,8 +196,7 @@ discard block |
||
209 | 196 | ); |
210 | 197 | } |
211 | 198 | |
212 | - public function claimPage($page_id, $access_type, $roles = array()) |
|
213 | - { |
|
199 | + public function claimPage($page_id, $access_type, $roles = array()) { |
|
214 | 200 | $params = array( |
215 | 201 | 'page_id' => $page_id, |
216 | 202 | 'access_type' => $access_type, |
@@ -230,8 +216,7 @@ discard block |
||
230 | 216 | /** |
231 | 217 | * @param int $page_id |
232 | 218 | */ |
233 | - public function deletePage($page_id) |
|
234 | - { |
|
219 | + public function deletePage($page_id) { |
|
235 | 220 | $params = array( |
236 | 221 | 'page_id' => $page_id, |
237 | 222 | ); |
@@ -271,8 +256,7 @@ discard block |
||
271 | 256 | * @param array $params |
272 | 257 | * @return Cursor |
273 | 258 | */ |
274 | - public function getApps(array $fields = array(), array $params = array()) |
|
275 | - { |
|
259 | + public function getApps(array $fields = array(), array $params = array()) { |
|
276 | 260 | return $this->getManyByConnection(App::className(), $fields, $params, 'apps'); |
277 | 261 | } |
278 | 262 | |
@@ -281,8 +265,7 @@ discard block |
||
281 | 265 | * @param array $params |
282 | 266 | * @return Cursor |
283 | 267 | */ |
284 | - public function getClients(array $fields = array(), array $params = array()) |
|
285 | - { |
|
268 | + public function getClients(array $fields = array(), array $params = array()) { |
|
286 | 269 | return $this->getManyByConnection(Client::className(), $fields, $params, 'clients'); |
287 | 270 | } |
288 | 271 |
@@ -1,26 +1,26 @@ |
||
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\Fields; |
26 | 26 |
@@ -24,6 +24,5 @@ |
||
24 | 24 | |
25 | 25 | namespace FacebookAds\Object; |
26 | 26 | |
27 | -class BroadCategoryTargeting extends AbstractObject |
|
28 | -{ |
|
27 | +class BroadCategoryTargeting extends AbstractObject { |
|
29 | 28 | } |
@@ -26,8 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | use FacebookAds\Object\Fields\AdConversionPixelFields; |
28 | 28 | |
29 | -class AdConversionPixel extends AbstractCrudObject |
|
30 | -{ |
|
29 | +class AdConversionPixel extends AbstractCrudObject { |
|
31 | 30 | const CHECKOUT = 'checkout'; |
32 | 31 | const REGISTRATION = 'registration'; |
33 | 32 | const LEAD = 'lead'; |
@@ -38,16 +37,14 @@ discard block |
||
38 | 37 | /** |
39 | 38 | * @return string |
40 | 39 | */ |
41 | - protected function getEndpoint() |
|
42 | - { |
|
40 | + protected function getEndpoint() { |
|
43 | 41 | return 'offsitepixels'; |
44 | 42 | } |
45 | 43 | |
46 | 44 | /** |
47 | 45 | * @return AdConversionPixelFields |
48 | 46 | */ |
49 | - public static function getFieldsEnum() |
|
50 | - { |
|
47 | + public static function getFieldsEnum() { |
|
51 | 48 | return AdConversionPixelFields::getInstance(); |
52 | 49 | } |
53 | 50 | } |
@@ -1,26 +1,26 @@ |
||
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\Fields; |
26 | 26 |
@@ -1,26 +1,26 @@ |
||
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\Fields; |
26 | 26 |
@@ -27,13 +27,11 @@ discard block |
||
27 | 27 | use FacebookAds\Cursor; |
28 | 28 | use FacebookAds\Http\RequestInterface; |
29 | 29 | |
30 | -class Page extends AbstractCrudObject |
|
31 | -{ |
|
30 | +class Page extends AbstractCrudObject { |
|
32 | 31 | /** |
33 | 32 | * @return string |
34 | 33 | */ |
35 | - public function getEndpoint() |
|
36 | - { |
|
34 | + public function getEndpoint() { |
|
37 | 35 | return 'pages'; |
38 | 36 | } |
39 | 37 | |
@@ -66,8 +64,7 @@ discard block |
||
66 | 64 | * @param int $user_id |
67 | 65 | * @param string $role |
68 | 66 | */ |
69 | - public function addUser($business_id, $user_id, $role) |
|
70 | - { |
|
67 | + public function addUser($business_id, $user_id, $role) { |
|
71 | 68 | $params = array( |
72 | 69 | 'business_id' => $business_id, |
73 | 70 | 'user_id' => $user_id, |
@@ -85,8 +82,7 @@ discard block |
||
85 | 82 | * @param int $business_id |
86 | 83 | * @param int $user_id |
87 | 84 | */ |
88 | - public function deleteUser($business_id, $user_id) |
|
89 | - { |
|
85 | + public function deleteUser($business_id, $user_id) { |
|
90 | 86 | $params = array( |
91 | 87 | 'business_id' => $business_id, |
92 | 88 | 'user_id' => $user_id, |
@@ -103,8 +99,7 @@ discard block |
||
103 | 99 | * @param int $business_id |
104 | 100 | * @param array $roles |
105 | 101 | */ |
106 | - public function grantBusinessAccess($business_id, $roles) |
|
107 | - { |
|
102 | + public function grantBusinessAccess($business_id, $roles) { |
|
108 | 103 | $params = array( |
109 | 104 | 'business' => $business_id, |
110 | 105 | 'permitted_roles' => $roles, |
@@ -120,8 +115,7 @@ discard block |
||
120 | 115 | /** |
121 | 116 | * @param int $business_id |
122 | 117 | */ |
123 | - public function revokeBusinessAccess($business_id) |
|
124 | - { |
|
118 | + public function revokeBusinessAccess($business_id) { |
|
125 | 119 | $params = array( |
126 | 120 | 'business' => $business_id, |
127 | 121 | ); |
@@ -26,13 +26,11 @@ |
||
26 | 26 | |
27 | 27 | use FacebookAds\Object\Fields\AdsPixelStatFields; |
28 | 28 | |
29 | -class AdsPixelStat extends AbstractObject |
|
30 | -{ |
|
29 | +class AdsPixelStat extends AbstractObject { |
|
31 | 30 | /** |
32 | 31 | * @return AdsPixelStatFields |
33 | 32 | */ |
34 | - public static function getFieldsEnum() |
|
35 | - { |
|
33 | + public static function getFieldsEnum() { |
|
36 | 34 | return AdsPixelStatFields::getInstance(); |
37 | 35 | } |
38 | 36 | } |
@@ -24,6 +24,5 @@ |
||
24 | 24 | |
25 | 25 | namespace FacebookAds\Object; |
26 | 26 | |
27 | -class Agency extends AbstractObject |
|
28 | -{ |
|
27 | +class Agency extends AbstractObject { |
|
29 | 28 | } |