Failed Conditions
Pull Request — master (#191)
by Emanuele
03:09
created
src/FacebookAds/Object/AdAccount.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
     /**
233 233
      * @param array $fields
234 234
      * @param array $params
235
-     * @return ReachEstimate
235
+     * @return null|AbstractCrudObject
236 236
      */
237 237
     public function getReachEstimate(
238 238
         array $fields = array(), array $params = array())
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     /**
257 257
      * @param array $fields
258 258
      * @param array $params
259
-     * @return TargetingDescription
259
+     * @return null|AbstractCrudObject
260 260
      */
261 261
     public function getTargetingDescription(
262 262
         array $fields = array(), array $params = array())
Please login to merge, or discard this patch.
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@  discard block
 block discarded – undo
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
 
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
         return $this->getManyByConnection(AdUser::className(), $fields, $params);
76 76
     }
77 77
 
78
-     /**
79
-     * @param array $fields
80
-     * @param array $params
81
-     * @return Cursor
82
-     */
78
+      /**
79
+       * @param array $fields
80
+       * @param array $params
81
+       * @return Cursor
82
+       */
83 83
     public function getCampaigns(
84 84
         array $fields = array(), array $params = array())
85 85
     {
Please login to merge, or discard this patch.
Braces   +36 added lines, -72 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@  discard block
 block discarded – undo
31 31
 use FacebookAds\Object\Traits\CannotDelete;
32 32
 use FacebookAds\Object\Traits\FieldValidation;
33 33
 
34
-class AdAccount extends AbstractCrudObject
35
-{
34
+class AdAccount extends AbstractCrudObject {
36 35
     use FieldValidation;
37 36
     use CannotCreate;
38 37
     use CannotDelete;
@@ -40,16 +39,14 @@  discard block
 block discarded – undo
40 39
     /**
41 40
      * @return string
42 41
      */
43
-    protected function getEndpoint()
44
-    {
42
+    protected function getEndpoint() {
45 43
         return 'adaccounts';
46 44
     }
47 45
 
48 46
     /**
49 47
      * @return AdAccountFields
50 48
      */
51
-    public static function getFieldsEnum()
52
-    {
49
+    public static function getFieldsEnum() {
53 50
         return AdAccountFields::getInstance();
54 51
     }
55 52
 
@@ -59,8 +56,7 @@  discard block
 block discarded – undo
59 56
      * @return Cursor
60 57
      */
61 58
     public function getActivities(
62
-        array $fields = array(), array $params = array())
63
-    {
59
+        array $fields = array(), array $params = array()) {
64 60
         return $this->getManyByConnection(
65 61
             Activity::className(), $fields, $params, 'activities');
66 62
     }
@@ -70,8 +66,7 @@  discard block
 block discarded – undo
70 66
      * @param array $params
71 67
      * @return Cursor
72 68
      */
73
-    public function getAdUsers(array $fields = array(), array $params = array())
74
-    {
69
+    public function getAdUsers(array $fields = array(), array $params = array()) {
75 70
         return $this->getManyByConnection(AdUser::className(), $fields, $params);
76 71
     }
77 72
 
@@ -81,8 +76,7 @@  discard block
 block discarded – undo
81 76
      * @return Cursor
82 77
      */
83 78
     public function getCampaigns(
84
-        array $fields = array(), array $params = array())
85
-    {
79
+        array $fields = array(), array $params = array()) {
86 80
         return $this->getManyByConnection(
87 81
             Campaign::className(), $fields, $params);
88 82
     }
@@ -92,8 +86,7 @@  discard block
 block discarded – undo
92 86
      * @param array $params
93 87
      * @return Cursor
94 88
      */
95
-    public function getAdSets(array $fields = array(), array $params = array())
96
-    {
89
+    public function getAdSets(array $fields = array(), array $params = array()) {
97 90
         return $this->getManyByConnection(AdSet::className(), $fields, $params);
98 91
     }
99 92
 
@@ -103,8 +96,7 @@  discard block
 block discarded – undo
103 96
      * @return Cursor
104 97
      */
105 98
     public function getAds(
106
-        array $fields = array(), array $params = array())
107
-    {
99
+        array $fields = array(), array $params = array()) {
108 100
         return $this->getManyByConnection(Ad::className(), $fields, $params);
109 101
     }
110 102
 
@@ -114,8 +106,7 @@  discard block
 block discarded – undo
114 106
      * @return Cursor
115 107
      */
116 108
     public function getAdCreatives(
117
-        array $fields = array(), array $params = array())
118
-    {
109
+        array $fields = array(), array $params = array()) {
119 110
         return $this->getManyByConnection(
120 111
             AdCreative::className(), $fields, $params);
121 112
     }
@@ -126,8 +117,7 @@  discard block
 block discarded – undo
126 117
      * @return Cursor
127 118
      */
128 119
     public function getAdImages(
129
-        array $fields = array(), array $params = array())
130
-    {
120
+        array $fields = array(), array $params = array()) {
131 121
         return $this->getManyByConnection(AdImage::className(), $fields, $params);
132 122
     }
133 123
 
@@ -137,8 +127,7 @@  discard block
 block discarded – undo
137 127
      * @return Cursor
138 128
      */
139 129
     public function getAdsPixels(
140
-        array $fields = array(), array $params = array())
141
-    {
130
+        array $fields = array(), array $params = array()) {
142 131
         return $this->getManyByConnection(AdsPixel::className(), $fields, $params);
143 132
     }
144 133
 
@@ -148,8 +137,7 @@  discard block
 block discarded – undo
148 137
      * @return Cursor
149 138
      */
150 139
     public function getAdVideos(
151
-        array $fields = array(), array $params = array())
152
-    {
140
+        array $fields = array(), array $params = array()) {
153 141
         return $this->getManyByConnection(AdVideo::className(), $fields, $params);
154 142
     }
155 143
 
@@ -159,8 +147,7 @@  discard block
 block discarded – undo
159 147
      * @return Cursor
160 148
      */
161 149
     public function getBroadCategoryTargeting(
162
-        array $fields = array(), array $params = array())
163
-    {
150
+        array $fields = array(), array $params = array()) {
164 151
         return $this->getManyByConnection(
165 152
             BroadCategoryTargeting::className(),
166 153
             $fields,
@@ -175,8 +162,7 @@  discard block
 block discarded – undo
175 162
      * @return Cursor
176 163
      */
177 164
     public function getConnectionObjects(
178
-        array $fields = array(), array $params = array())
179
-    {
165
+        array $fields = array(), array $params = array()) {
180 166
         return $this->getManyByConnection(
181 167
             ConnectionObject::className(), $fields, $params, 'connectionobjects');
182 168
     }
@@ -187,8 +173,7 @@  discard block
 block discarded – undo
187 173
      * @return Cursor
188 174
      */
189 175
     public function getCustomAudiences(
190
-        array $fields = array(), array $params = array())
191
-    {
176
+        array $fields = array(), array $params = array()) {
192 177
         return $this->getManyByConnection(
193 178
             CustomAudience::className(), $fields, $params);
194 179
     }
@@ -199,8 +184,7 @@  discard block
 block discarded – undo
199 184
      * @return Cursor
200 185
      */
201 186
     public function getConversionPixels(
202
-        array $fields = array(), array $params = array())
203
-    {
187
+        array $fields = array(), array $params = array()) {
204 188
         return $this->getManyByConnection(
205 189
             AdConversionPixel::className(), $fields, $params);
206 190
     }
@@ -211,8 +195,7 @@  discard block
 block discarded – undo
211 195
      * @return Cursor
212 196
      */
213 197
     public function getPartnerCategories(
214
-        array $fields = array(), array $params = array())
215
-    {
198
+        array $fields = array(), array $params = array()) {
216 199
         return $this->getManyByConnection(
217 200
             PartnerCategory::className(), $fields, $params);
218 201
     }
@@ -223,8 +206,7 @@  discard block
 block discarded – undo
223 206
      * @return Cursor
224 207
      */
225 208
     public function getRateCards(
226
-        array $fields = array(), array $params = array())
227
-    {
209
+        array $fields = array(), array $params = array()) {
228 210
         return $this->getManyByConnection(
229 211
             RateCard::className(), $fields, $params, 'ratecard');
230 212
     }
@@ -235,8 +217,7 @@  discard block
 block discarded – undo
235 217
      * @return ReachEstimate
236 218
      */
237 219
     public function getReachEstimate(
238
-        array $fields = array(), array $params = array())
239
-    {
220
+        array $fields = array(), array $params = array()) {
240 221
         return $this->getOneByConnection(
241 222
             ReachEstimate::className(), $fields, $params, 'reachestimate');
242 223
     }
@@ -247,8 +228,7 @@  discard block
 block discarded – undo
247 228
      * @return Cursor
248 229
      */
249 230
     public function getReachFrequencyPredictions(
250
-        array $fields = array(), array $params = array())
251
-    {
231
+        array $fields = array(), array $params = array()) {
252 232
         return $this->getManyByConnection(
253 233
             ReachFrequencyPrediction::className(), $fields, $params);
254 234
     }
@@ -259,8 +239,7 @@  discard block
 block discarded – undo
259 239
      * @return TargetingDescription
260 240
      */
261 241
     public function getTargetingDescription(
262
-        array $fields = array(), array $params = array())
263
-    {
242
+        array $fields = array(), array $params = array()) {
264 243
         return $this->getOneByConnection(
265 244
             TargetingDescription::className(),
266 245
             $fields,
@@ -274,8 +253,7 @@  discard block
 block discarded – undo
274 253
      * @return Cursor
275 254
      */
276 255
     public function getTransactions(
277
-        array $fields = array(), array $params = array())
278
-    {
256
+        array $fields = array(), array $params = array()) {
279 257
         return $this->getManyByConnection(
280 258
             Transaction::className(), $fields, $params, 'transactions');
281 259
     }
@@ -286,8 +264,7 @@  discard block
 block discarded – undo
286 264
      * @return Cursor
287 265
      */
288 266
     public function getAdPreviews(
289
-        array $fields = array(), array $params = array())
290
-    {
267
+        array $fields = array(), array $params = array()) {
291 268
         return $this->getManyByConnection(
292 269
             AdPreview::classname(), $fields, $params, 'generatepreviews');
293 270
     }
@@ -298,8 +275,7 @@  discard block
 block discarded – undo
298 275
      * @return Cursor
299 276
      */
300 277
     public function getInsights(
301
-        array $fields = array(), array $params = array())
302
-    {
278
+        array $fields = array(), array $params = array()) {
303 279
         return $this->getManyByConnection(
304 280
             Insights::classname(), $fields, $params, 'insights');
305 281
     }
@@ -310,8 +286,7 @@  discard block
 block discarded – undo
310 286
      * @return AsyncJobInsights
311 287
      */
312 288
     public function getInsightsAsync(
313
-        array $fields = array(), array $params = array())
314
-    {
289
+        array $fields = array(), array $params = array()) {
315 290
         return $this->createAsyncJob(
316 291
             AsyncJobInsights::className(), $fields, $params);
317 292
     }
@@ -322,8 +297,7 @@  discard block
 block discarded – undo
322 297
      * @return Cursor
323 298
      */
324 299
     public function getAgencies(
325
-        array $fields = array(), array $params = array())
326
-    {
300
+        array $fields = array(), array $params = array()) {
327 301
         return $this->getManyByConnection(
328 302
             Agency::className(), $fields, $params, 'agencies');
329 303
     }
@@ -332,8 +306,7 @@  discard block
 block discarded – undo
332 306
      * @param int $business_id
333 307
      * @param array $permitted_roles
334 308
      */
335
-    public function grantAgencyAcccess($business_id, $permitted_roles)
336
-    {
309
+    public function grantAgencyAcccess($business_id, $permitted_roles) {
337 310
         $params = array(
338 311
             'business' => $business_id,
339 312
             'permitted_roles' => $permitted_roles,
@@ -348,8 +321,7 @@  discard block
 block discarded – undo
348 321
     /**
349 322
      * @param int $business_id
350 323
      */
351
-    public function revokeAgencyAccess($business_id)
352
-    {
324
+    public function revokeAgencyAccess($business_id) {
353 325
         $params = array(
354 326
             'business' => $business_id,
355 327
         );
@@ -366,8 +338,7 @@  discard block
 block discarded – undo
366 338
      * @return Cursor
367 339
      */
368 340
     public function getMinimumBudgets(
369
-        array $fields = array(), array $params = array())
370
-    {
341
+        array $fields = array(), array $params = array()) {
371 342
         return $this->getManyByConnection(
372 343
             MinimumBudget::className(), $fields, $params, 'minimum_budgets');
373 344
     }
@@ -378,8 +349,7 @@  discard block
 block discarded – undo
378 349
      * @return Cursor
379 350
      */
380 351
     public function getAdPlacePageSets(
381
-        array $fields = array(), array $params = array())
382
-    {
352
+        array $fields = array(), array $params = array()) {
383 353
         return $this->getManyByConnection(
384 354
             AdPlacePageSet::className(), $fields, $params);
385 355
     }
@@ -390,8 +360,7 @@  discard block
 block discarded – undo
390 360
      * @return Cursor
391 361
      */
392 362
     public function getAdLabels(
393
-        array $fields = array(), array $params = array())
394
-    {
363
+        array $fields = array(), array $params = array()) {
395 364
         return $this->getManyByConnection(
396 365
             AdLabel::className(), $fields, $params);
397 366
     }
@@ -402,8 +371,7 @@  discard block
 block discarded – undo
402 371
      * @return Cursor
403 372
      */
404 373
     public function getCampaignsByLabel(
405
-        array $fields = array(), array $params = array())
406
-    {
374
+        array $fields = array(), array $params = array()) {
407 375
         return $this->getManyByConnection(
408 376
             Campaign::classname(), $fields, $params, 'campaignsbylabels');
409 377
     }
@@ -414,8 +382,7 @@  discard block
 block discarded – undo
414 382
      * @return Cursor
415 383
      */
416 384
     public function getAdSetsByLabel(
417
-        array $fields = array(), array $params = array())
418
-    {
385
+        array $fields = array(), array $params = array()) {
419 386
         return $this->getManyByConnection(
420 387
             AdSet::classname(), $fields, $params, 'adsetsbylabels');
421 388
     }
@@ -426,8 +393,7 @@  discard block
 block discarded – undo
426 393
      * @return Cursor
427 394
      */
428 395
     public function getAdsByLabel(
429
-        array $fields = array(), array $params = array())
430
-    {
396
+        array $fields = array(), array $params = array()) {
431 397
         return $this->getManyByConnection(
432 398
             Ad::classname(), $fields, $params, 'adsbylabels');
433 399
     }
@@ -438,8 +404,7 @@  discard block
 block discarded – undo
438 404
      * @return Cursor
439 405
      */
440 406
     public function getAdCreativesByLabel(
441
-        array $fields = array(), array $params = array())
442
-    {
407
+        array $fields = array(), array $params = array()) {
443 408
         return $this->getManyByConnection(
444 409
             AdCreative::classname(), $fields, $params, 'adcreativesbylabels');
445 410
     }
@@ -450,8 +415,7 @@  discard block
 block discarded – undo
450 415
      * @return Cursor
451 416
      */
452 417
     public function getCustomConversions(
453
-        array $fields = array(), array $params = array())
454
-    {
418
+        array $fields = array(), array $params = array()) {
455 419
         return $this->getManyByConnection(
456 420
             CustomConversion::className(), $fields, $params);
457 421
     }
Please login to merge, or discard this patch.
src/FacebookAds/Object/CustomAudienceMultiKey.php 3 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,6 @@
 block discarded – undo
27 27
 use FacebookAds\Http\RequestInterface;
28 28
 use FacebookAds\Object\CustomAudienceNormalizers\HashNormalizer;
29 29
 use FacebookAds\Object\Fields\CustomAudienceFields;
30
-use FacebookAds\Object\Fields\CustomAudienceMultikeySchemaFields;
31
-use FacebookAds\Object\Values\CustomAudienceTypes;
32 30
 
33 31
 class CustomAudienceMultiKey extends AbstractCrudObject
34 32
 {
Please login to merge, or discard this patch.
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@  discard block
 block discarded – undo
30 30
 use FacebookAds\Object\Fields\CustomAudienceMultikeySchemaFields;
31 31
 use FacebookAds\Object\Values\CustomAudienceTypes;
32 32
 
33
-class CustomAudienceMultiKey extends AbstractCrudObject
34
-{
33
+class CustomAudienceMultiKey extends AbstractCrudObject {
35 34
     /**
36 35
      * @var string
37 36
      */
@@ -45,24 +44,21 @@  discard block
 block discarded – undo
45 44
     /**
46 45
      * @return string
47 46
      */
48
-    protected function getEndpoint()
49
-    {
47
+    protected function getEndpoint() {
50 48
         return 'customaudiences';
51 49
     }
52 50
 
53 51
     /**
54 52
      * @return CustomAudienceFields
55 53
      */
56
-    public static function getFieldsEnum()
57
-    {
54
+    public static function getFieldsEnum() {
58 55
         return CustomAudienceFields::getInstance();
59 56
     }
60 57
 
61 58
     /**
62 59
      * @return \ArrayObject
63 60
      */
64
-    public function getNormalizers()
65
-    {
61
+    public function getNormalizers() {
66 62
         if ($this->normalizers === null) {
67 63
             $this->normalizers = new \ArrayObject(array(
68 64
                 new CustomAudienceNormalizers\EmailNormalizer(),
Please login to merge, or discard this patch.
FacebookAds/Object/CustomAudienceNormalizers/ValueNormalizerInterface.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
 
25 25
 namespace FacebookAds\Object\CustomAudienceNormalizers;
26 26
 
27
-interface ValueNormalizerInterface
28
-{
27
+interface ValueNormalizerInterface {
29 28
     /**
30 29
      * @param string $key
31 30
      * @param string $key_value
Please login to merge, or discard this patch.
src/FacebookAds/Object/CustomConversion.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     }
41 41
 
42 42
     /**
43
-     * @return CustomConversionFields
43
+     * @return Fields\AdConversionPixelFields
44 44
      */
45 45
     public static function getFieldsEnum()
46 46
     {
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,23 +27,20 @@
 block discarded – undo
27 27
 use FacebookAds\Object\Fields\CustomConversionFields;
28 28
 use FacebookAds\Object\Traits\CannotDelete;
29 29
 
30
-class CustomConversion extends AbstractCrudObject
31
-{
30
+class CustomConversion extends AbstractCrudObject {
32 31
     use CannotDelete;
33 32
 
34 33
     /**
35 34
      * @return string
36 35
      */
37
-    protected function getEndpoint()
38
-    {
36
+    protected function getEndpoint() {
39 37
         return 'customconversions';
40 38
     }
41 39
 
42 40
     /**
43 41
      * @return CustomConversionFields
44 42
      */
45
-    public static function getFieldsEnum()
46
-    {
43
+    public static function getFieldsEnum() {
47 44
         return CustomConversionFields::getInstance();
48 45
     }
49 46
 }
Please login to merge, or discard this patch.
src/FacebookAds/Object/ObjectStory/PhotoData.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     use FieldValidation;
34 34
 
35 35
     /**
36
-     * @return PhotoDataFields
36
+     * @return \FacebookAds\Object\Fields\ObjectStory\TemplateDataFields
37 37
      */
38 38
     public static function getFieldsEnum()
39 39
     {
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,15 +28,13 @@
 block discarded – undo
28 28
 use FacebookAds\Object\Fields\ObjectStory\PhotoDataFields;
29 29
 use FacebookAds\Object\Traits\FieldValidation;
30 30
 
31
-class PhotoData extends AbstractObject
32
-{
31
+class PhotoData extends AbstractObject {
33 32
     use FieldValidation;
34 33
 
35 34
     /**
36 35
      * @return PhotoDataFields
37 36
      */
38
-    public static function getFieldsEnum()
39
-    {
37
+    public static function getFieldsEnum() {
40 38
         return PhotoDataFields::getInstance();
41 39
     }
42 40
 }
Please login to merge, or discard this patch.
src/FacebookAds/Object/BusinessAdAccount.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,6 +24,5 @@
 block discarded – undo
24 24
 
25 25
 namespace FacebookAds\Object;
26 26
 
27
-class BusinessAdAccount extends AbstractObject
28
-{
27
+class BusinessAdAccount extends AbstractObject {
29 28
 }
Please login to merge, or discard this patch.
src/FacebookAds/Object/AbstractCrudObject.php 1 patch
Braces   +25 added lines, -50 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
 use FacebookAds\Http\RequestInterface;
30 30
 use FacebookAds\Http\ResponseInterface;
31 31
 
32
-abstract class AbstractCrudObject extends AbstractObject
33
-{
32
+abstract class AbstractCrudObject extends AbstractObject {
34 33
     /**
35 34
      * @var string
36 35
      */
@@ -61,8 +60,7 @@  discard block
 block discarded – undo
61 60
      * @param string $parent_id Optional, needed for creating new objects.
62 61
      * @param Api $api The Api instance this object should use to make calls
63 62
      */
64
-    public function __construct($id = null, $parent_id = null, Api $api = null)
65
-    {
63
+    public function __construct($id = null, $parent_id = null, Api $api = null) {
66 64
         parent::__construct();
67 65
         $this->data[static::FIELD_ID] = $id;
68 66
         $this->parentId = $parent_id;
@@ -72,24 +70,21 @@  discard block
 block discarded – undo
72 70
     /**
73 71
      * @param string $id
74 72
      */
75
-    public function setId($id)
76
-    {
73
+    public function setId($id) {
77 74
         $this->data[static::FIELD_ID] = $id;
78 75
     }
79 76
 
80 77
     /**
81 78
      * @param string $parent_id
82 79
      */
83
-    public function setParentId($parent_id)
84
-    {
80
+    public function setParentId($parent_id) {
85 81
         $this->parentId = $parent_id;
86 82
     }
87 83
 
88 84
     /**
89 85
      * @param Api $api The Api instance this object should use to make calls
90 86
      */
91
-    public function setApi(Api $api)
92
-    {
87
+    public function setApi(Api $api) {
93 88
         $this->api = static::assureApi($api);
94 89
     }
95 90
 
@@ -103,8 +98,7 @@  discard block
 block discarded – undo
103 98
      * @return Api
104 99
      * @throws \InvalidArgumentException
105 100
      */
106
-    protected static function assureApi(Api $instance = null)
107
-    {
101
+    protected static function assureApi(Api $instance = null) {
108 102
         $instance = $instance ?: Api::instance();
109 103
         if (!$instance) {
110 104
             throw new \InvalidArgumentException(
@@ -118,8 +112,7 @@  discard block
 block discarded – undo
118 112
     /**
119 113
      * @return string|null
120 114
      */
121
-    public function getParentId()
122
-    {
115
+    public function getParentId() {
123 116
         return $this->parentId;
124 117
     }
125 118
 
@@ -127,8 +120,7 @@  discard block
 block discarded – undo
127 120
      * @return string
128 121
      * @throws \Exception
129 122
      */
130
-    protected function assureParentId()
131
-    {
123
+    protected function assureParentId() {
132 124
         if (!$this->parentId) {
133 125
             throw new \Exception("A parent ID is required.");
134 126
         }
@@ -140,8 +132,7 @@  discard block
 block discarded – undo
140 132
      * @return string
141 133
      * @throws \Exception
142 134
      */
143
-    protected function assureId()
144
-    {
135
+    protected function assureId() {
145 136
         if (!$this->data[static::FIELD_ID]) {
146 137
             throw new \Exception("field '".static::FIELD_ID."' is required.");
147 138
         }
@@ -152,8 +143,7 @@  discard block
 block discarded – undo
152 143
     /**
153 144
      * @return Api
154 145
      */
155
-    public function getApi()
156
-    {
146
+    public function getApi() {
157 147
         return $this->api;
158 148
     }
159 149
 
@@ -162,8 +152,7 @@  discard block
 block discarded – undo
162 152
      *
163 153
      * @return array Key value pairs of changed variables
164 154
      */
165
-    public function getChangedValues()
166
-    {
155
+    public function getChangedValues() {
167 156
         return $this->changedFields;
168 157
     }
169 158
 
@@ -172,16 +161,14 @@  discard block
 block discarded – undo
172 161
      *
173 162
      * @return array Array of changed field names
174 163
      */
175
-    public function getChangedFields()
176
-    {
164
+    public function getChangedFields() {
177 165
         return array_keys($this->changedFields);
178 166
     }
179 167
 
180 168
     /**
181 169
      * Get the values which have changed, converting them to scalars
182 170
      */
183
-    public function exportData()
184
-    {
171
+    public function exportData() {
185 172
         $data = array();
186 173
         foreach ($this->changedFields as $key => $val) {
187 174
             $data[$key] = $val instanceof AbstractObject ? $val->exportData() : $val;
@@ -193,8 +180,7 @@  discard block
 block discarded – undo
193 180
     /**
194 181
      * @return void
195 182
      */
196
-    protected function clearHistory()
197
-    {
183
+    protected function clearHistory() {
198 184
         $this->changedFields = array();
199 185
     }
200 186
 
@@ -202,8 +188,7 @@  discard block
 block discarded – undo
202 188
      * @param string $name
203 189
      * @param mixed $value
204 190
      */
205
-    public function __set($name, $value)
206
-    {
191
+    public function __set($name, $value) {
207 192
         if (!array_key_exists($name, $this->data)
208 193
             || $this->data[$name] !== $value) {
209 194
             $this->changedFields[$name] = $value;
@@ -214,24 +199,21 @@  discard block
 block discarded – undo
214 199
     /**
215 200
      * @param string[] $fields
216 201
      */
217
-    public static function setDefaultReadFields(array $fields = array())
218
-    {
202
+    public static function setDefaultReadFields(array $fields = array()) {
219 203
         static::$defaultReadFields = $fields;
220 204
     }
221 205
 
222 206
     /**
223 207
      * @return string[]
224 208
      */
225
-    public static function getDefaultReadFields()
226
-    {
209
+    public static function getDefaultReadFields() {
227 210
         return static::$defaultReadFields;
228 211
     }
229 212
 
230 213
     /**
231 214
      * @return string
232 215
      */
233
-    protected function getNodePath()
234
-    {
216
+    protected function getNodePath() {
235 217
         return '/'.$this->assureId();
236 218
     }
237 219
 
@@ -242,8 +224,7 @@  discard block
 block discarded – undo
242 224
      * @return $this
243 225
      * @throws \Exception
244 226
      */
245
-    public function create(array $params = array())
246
-    {
227
+    public function create(array $params = array()) {
247 228
         if ($this->data[static::FIELD_ID]) {
248 229
             throw new \Exception("Object has already an ID");
249 230
         }
@@ -283,8 +264,7 @@  discard block
 block discarded – undo
283 264
      * @param array $params Additional request parameters
284 265
      * @return $this
285 266
      */
286
-    public function read(array $fields = array(), array $params = array())
287
-    {
267
+    public function read(array $fields = array(), array $params = array()) {
288 268
         $fields = implode(',', $fields ?: static::getDefaultReadFields());
289 269
         if ($fields) {
290 270
             $params['fields'] = $fields;
@@ -308,8 +288,7 @@  discard block
 block discarded – undo
308 288
      * @param array $params Update parameters in assoc
309 289
      * @return $this
310 290
      */
311
-    public function update(array $params = array())
312
-    {
291
+    public function update(array $params = array()) {
313 292
         $this->getApi()->call(
314 293
             $this->getNodePath(),
315 294
             RequestInterface::METHOD_POST,
@@ -327,8 +306,7 @@  discard block
 block discarded – undo
327 306
      * @param array $params
328 307
      * @return void
329 308
      */
330
-    public function delete(array $params = array())
331
-    {
309
+    public function delete(array $params = array()) {
332 310
         $this->getApi()->call(
333 311
             $this->getNodePath(),
334 312
             RequestInterface::METHOD_DELETE,
@@ -345,8 +323,7 @@  discard block
 block discarded – undo
345 323
      * @param array $params
346 324
      * @return $this
347 325
      */
348
-    public function save(array $params = array())
349
-    {
326
+    public function save(array $params = array()) {
350 327
         if ($this->data[static::FIELD_ID]) {
351 328
             return $this->update($params);
352 329
         } else {
@@ -360,8 +337,7 @@  discard block
 block discarded – undo
360 337
      * @return string
361 338
      * @throws \InvalidArgumentException
362 339
      */
363
-    protected function assureEndpoint($prototype_class, $endpoint)
364
-    {
340
+    protected function assureEndpoint($prototype_class, $endpoint) {
365 341
         if (!$endpoint) {
366 342
             $prototype = new $prototype_class(null, null, $this->getApi());
367 343
             if (!$prototype instanceof AbstractCrudObject) {
@@ -486,8 +462,7 @@  discard block
 block discarded – undo
486 462
      * @param Api $api Api Object to use
487 463
      * @return bool Returns true on success
488 464
      */
489
-    public static function deleteIds(array $ids, Api $api = null)
490
-    {
465
+    public static function deleteIds(array $ids, Api $api = null) {
491 466
         $batch = array();
492 467
         foreach ($ids as $id) {
493 468
             $request = array(
Please login to merge, or discard this patch.
src/FacebookAds/Object/Search/DemographicSearchClasses.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * @method static DemographicSearchClasses getInstance()
31 31
  */
32
-class DemographicSearchClasses extends AbstractEnum
33
-{
32
+class DemographicSearchClasses extends AbstractEnum {
34 33
     const LIFE_EVENTS = 'life_events';
35 34
     const POLITICS = 'politics';
36 35
     const MARKETS = 'markets';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Search/TargetingSearchTypes.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * @method static TargetingSearchTypes getInstance()
31 31
  */
32
-class TargetingSearchTypes extends AbstractEnum
33
-{
32
+class TargetingSearchTypes extends AbstractEnum {
34 33
     const COUNTRY = 'adcountry';
35 34
     const EDUCATION = 'adeducationschool';
36 35
     const EMPLOYER = 'adworkemployer';
Please login to merge, or discard this patch.