Completed
Push — master ( c23590...8ff253 )
by
unknown
02:59
created
src/FacebookAds/Object/CustomAudienceMultiKey.php 3 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -25,10 +25,8 @@
 block discarded – undo
25 25
 namespace FacebookAds\Object;
26 26
 
27 27
 use FacebookAds\Http\RequestInterface;
28
-use FacebookAds\Object\Values\CustomAudienceTypes;
29 28
 use FacebookAds\Object\Fields\CustomAudienceFields;
30 29
 use FacebookAds\Object\CustomAudienceNormalizers\HashNormalizer;
31
-use FacebookAds\Object\Fields\CustomAudienceMultikeySchemaFields;
32 30
 
33 31
 class CustomAudienceMultiKey extends AbstractCrudObject {
34 32
 
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   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -145,8 +145,7 @@
 block discarded – undo
145 145
         $normalizers = new \ArrayObject(array(
146 146
           new HashNormalizer()
147 147
         ));
148
-      }
149
-      else {
148
+      } else {
150 149
         $normalizers = clone $this->getNormalizers();
151 150
         $normalizers->append(new HashNormalizer());
152 151
       }
Please login to merge, or discard this patch.
FacebookAds/Object/CustomAudienceNormalizers/ValueNormalizerInterface.php 1 patch
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.
src/FacebookAds/Object/Values/AdFormats.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,5 +38,5 @@
 block discarded – undo
38 38
   const MOBILE_INTERSTITIAL = 'MOBILE_INTERSTITIAL';
39 39
   const MOBILE_FEED_BASIC = 'MOBILE_FEED_BASIC';
40 40
   const MOBILE_NATIVE = 'MOBILE_NATIVE';
41
-  const INSTAGRAM_STANDARD= 'INSTAGRAM_STANDARD';
41
+  const INSTAGRAM_STANDARD = 'INSTAGRAM_STANDARD';
42 42
 }
Please login to merge, or discard this patch.
src/FacebookAds/Object/CustomAudience.php 1 patch
Indentation   +25 added lines, -25 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
 
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
 
33 33
 class CustomAudience extends AbstractCrudObject {
34 34
 
35
- /**
36
-  * @var string
37
-  * @deprecated use HashNormalizer::HASH_TYPE_SHA256
38
- */
35
+  /**
36
+   * @var string
37
+   * @deprecated use HashNormalizer::HASH_TYPE_SHA256
38
+   */
39 39
   const HASH_TYPE_SHA256 = 'sha256';
40 40
 
41 41
   /**
Please login to merge, or discard this patch.