Completed
Pull Request — master (#191)
by Emanuele
03:10
created
src/FacebookAds/Object/Ad.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * @param array $fields
78 78
      * @param array $params
79
-     * @return TargetingDescription
79
+     * @return null|AbstractCrudObject
80 80
      */
81 81
     public function getTargetingDescription(
82 82
         array $fields = array(), array $params = array())
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     /**
105 105
      * @param array $fields
106 106
      * @param array $params
107
-     * @return ReachEstimate
107
+     * @return null|AbstractCrudObject
108 108
      */
109 109
     public function getReachEstimate(
110 110
         array $fields = array(), array $params = array())
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   +11 added lines, -22 removed lines patch added patch discarded remove patch
@@ -29,24 +29,21 @@  discard block
 block discarded – undo
29 29
 use FacebookAds\Object\Traits\AdLabelAwareCrudObjectTrait;
30 30
 use FacebookAds\Object\Traits\FieldValidation;
31 31
 
32
-class Ad extends AbstractArchivableCrudObject implements CanRedownloadInterface
33
-{
32
+class Ad extends AbstractArchivableCrudObject implements CanRedownloadInterface {
34 33
     use FieldValidation;
35 34
     use AdLabelAwareCrudObjectTrait;
36 35
 
37 36
     /**
38 37
      * @return string
39 38
      */
40
-    protected function getEndpoint()
41
-    {
39
+    protected function getEndpoint() {
42 40
         return 'ads';
43 41
     }
44 42
 
45 43
     /**
46 44
      * @return AdFields
47 45
      */
48
-    public static function getFieldsEnum()
49
-    {
46
+    public static function getFieldsEnum() {
50 47
         return AdFields::getInstance();
51 48
     }
52 49
 
@@ -55,8 +52,7 @@  discard block
 block discarded – undo
55 52
      * @param array $params
56 53
      * @return Cursor
57 54
      */
58
-    public function getAdCreatives(array $fields = array(), array $params = array())
59
-    {
55
+    public function getAdCreatives(array $fields = array(), array $params = array()) {
60 56
         return $this->getManyByConnection(AdCreative::className(), $fields, $params);
61 57
     }
62 58
 
@@ -65,8 +61,7 @@  discard block
 block discarded – undo
65 61
      * @param array $params
66 62
      * @return Cursor
67 63
      */
68
-    public function getLeads(array $fields = array(), array $params = array())
69
-    {
64
+    public function getLeads(array $fields = array(), array $params = array()) {
70 65
         return $this->getManyByConnection(Lead::className(), $fields, $params);
71 66
     }
72 67
 
@@ -75,8 +70,7 @@  discard block
 block discarded – undo
75 70
      * @param array $params
76 71
      * @return TargetingDescription
77 72
      */
78
-    public function getTargetingDescription(array $fields = array(), array $params = array())
79
-    {
73
+    public function getTargetingDescription(array $fields = array(), array $params = array()) {
80 74
         return $this->getOneByConnection(
81 75
             TargetingDescription::className(),
82 76
             $fields,
@@ -90,8 +84,7 @@  discard block
 block discarded – undo
90 84
      * @param array $params
91 85
      * @return Cursor
92 86
      */
93
-    public function getAdPreviews(array $fields = array(), array $params = array())
94
-    {
87
+    public function getAdPreviews(array $fields = array(), array $params = array()) {
95 88
         return $this->getManyByConnection(AdPreview::className(), $fields, $params, 'previews');
96 89
     }
97 90
 
@@ -100,8 +93,7 @@  discard block
 block discarded – undo
100 93
      * @param array $params
101 94
      * @return ReachEstimate
102 95
      */
103
-    public function getReachEstimate(array $fields = array(), array $params = array())
104
-    {
96
+    public function getReachEstimate(array $fields = array(), array $params = array()) {
105 97
         return $this->getOneByConnection(ReachEstimate::className(), $fields, $params, 'reachestimate');
106 98
     }
107 99
 
@@ -110,8 +102,7 @@  discard block
 block discarded – undo
110 102
      * @param array $params
111 103
      * @return Cursor
112 104
      */
113
-    public function getClickTrackingTag(array $fields = array(), array $params = array())
114
-    {
105
+    public function getClickTrackingTag(array $fields = array(), array $params = array()) {
115 106
         return $this->getManyByConnection(ClickTrackingTag::className(), $fields, $params, 'trackingtag');
116 107
     }
117 108
 
@@ -120,8 +111,7 @@  discard block
 block discarded – undo
120 111
      * @param array $params
121 112
      * @return Cursor
122 113
      */
123
-    public function getInsights(array $fields = array(), array $params = array())
124
-    {
114
+    public function getInsights(array $fields = array(), array $params = array()) {
125 115
         return $this->getManyByConnection(Insights::classname(), $fields, $params, 'insights');
126 116
     }
127 117
 
@@ -130,8 +120,7 @@  discard block
 block discarded – undo
130 120
      * @param array $params
131 121
      * @return AsyncJobInsights
132 122
      */
133
-    public function getInsightsAsync(array $fields = array(), array $params = array())
134
-    {
123
+    public function getInsightsAsync(array $fields = array(), array $params = array()) {
135 124
         return $this->createAsyncJob(AsyncJobInsights::className(), $fields, $params);
136 125
     }
137 126
 }
Please login to merge, or discard this patch.
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   +7 added lines, -14 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
 
@@ -70,8 +67,7 @@  discard block
 block discarded – undo
70 67
      * @param array $params
71 68
      * @return Cursor
72 69
      */
73
-    public function getAdUsers(array $fields = array(), array $params = array())
74
-    {
70
+    public function getAdUsers(array $fields = array(), array $params = array()) {
75 71
         return $this->getManyByConnection(AdUser::className(), $fields, $params);
76 72
     }
77 73
 
@@ -92,8 +88,7 @@  discard block
 block discarded – undo
92 88
      * @param array $params
93 89
      * @return Cursor
94 90
      */
95
-    public function getAdSets(array $fields = array(), array $params = array())
96
-    {
91
+    public function getAdSets(array $fields = array(), array $params = array()) {
97 92
         return $this->getManyByConnection(AdSet::className(), $fields, $params);
98 93
     }
99 94
 
@@ -339,8 +334,7 @@  discard block
 block discarded – undo
339 334
      * @param int $business_id
340 335
      * @param array $permitted_roles
341 336
      */
342
-    public function grantAgencyAcccess($business_id, $permitted_roles)
343
-    {
337
+    public function grantAgencyAcccess($business_id, $permitted_roles) {
344 338
         $params = array(
345 339
             'business' => $business_id,
346 340
             'permitted_roles' => $permitted_roles,
@@ -356,8 +350,7 @@  discard block
 block discarded – undo
356 350
     /**
357 351
      * @param int $business_id
358 352
      */
359
-    public function revokeAgencyAccess($business_id)
360
-    {
353
+    public function revokeAgencyAccess($business_id) {
361 354
         $params = array(
362 355
             'business' => $business_id,
363 356
         );
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 3 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.
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.
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/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 1 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.
src/FacebookAds/Object/CanRedownloadInterface.php 1 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;
26 26
 
27
-interface CanRedownloadInterface
28
-{
27
+interface CanRedownloadInterface {
29 28
     /**
30 29
      * @string
31 30
      */
Please login to merge, or discard this patch.