Failed Conditions
Pull Request — master (#191)
by Emanuele
03:09
created
src/FacebookAds/Http/Adapter/Curl/Curl.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   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -24,13 +24,11 @@  discard block
 block discarded – undo
24 24
 
25 25
 namespace FacebookAds\Http\Adapter\Curl;
26 26
 
27
-class Curl extends AbstractCurl
28
-{
27
+class Curl extends AbstractCurl {
29 28
     /**
30 29
      * @throws \RuntimeException
31 30
      */
32
-    public function __construct()
33
-    {
31
+    public function __construct() {
34 32
         parent::__construct();
35 33
         if (version_compare(PHP_VERSION, '5.5.0') >= 0) {
36 34
             throw new \RuntimeException("Unsupported Curl version");
@@ -41,8 +39,7 @@  discard block
 block discarded – undo
41 39
      * @param string $string
42 40
      * @return string
43 41
      */
44
-    public function escape($string)
45
-    {
42
+    public function escape($string) {
46 43
         return rawurlencode($string);
47 44
     }
48 45
 
@@ -50,8 +47,7 @@  discard block
 block discarded – undo
50 47
      * @param int $bitmask
51 48
      * @return int
52 49
      */
53
-    public function pause($bitmask)
54
-    {
50
+    public function pause($bitmask) {
55 51
         return 0;
56 52
     }
57 53
 
@@ -59,16 +55,14 @@  discard block
 block discarded – undo
59 55
      * @param string $filepath
60 56
      * @return string
61 57
      */
62
-    public function preparePostFileField($filepath)
63
-    {
58
+    public function preparePostFileField($filepath) {
64 59
         return "@".$filepath;
65 60
     }
66 61
 
67 62
     /**
68 63
      * @return void
69 64
      */
70
-    public function reset()
71
-    {
65
+    public function reset() {
72 66
         $this->handle && curl_close($this->handle);
73 67
         $this->handle = curl_init();
74 68
     }
@@ -77,8 +71,7 @@  discard block
 block discarded – undo
77 71
      * @param int $errornum
78 72
      * @return NULL|string
79 73
      */
80
-    public static function strerror($errornum)
81
-    {
74
+    public static function strerror($errornum) {
82 75
         return curl_strerror($errornum);
83 76
     }
84 77
 
@@ -86,8 +79,7 @@  discard block
 block discarded – undo
86 79
      * @param string $string
87 80
      * @return bool|string
88 81
      */
89
-    public function unescape($string)
90
-    {
82
+    public function unescape($string) {
91 83
         return curl_unescape($this->handle, $string);
92 84
     }
93 85
 }
Please login to merge, or discard this patch.
src/FacebookAds/Http/Adapter/Curl/CurlInterface.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
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
 
25 25
 namespace FacebookAds\Http\Adapter\Curl;
26 26
 
27
-interface CurlInterface
28
-{
27
+interface CurlInterface {
29 28
     /**
30 29
      * @return resource
31 30
      */
Please login to merge, or discard this patch.
src/FacebookAds/Http/Adapter/Curl/Curl55.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   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -24,13 +24,11 @@  discard block
 block discarded – undo
24 24
 
25 25
 namespace FacebookAds\Http\Adapter\Curl;
26 26
 
27
-class Curl55 extends AbstractCurl
28
-{
27
+class Curl55 extends AbstractCurl {
29 28
     /**
30 29
      * @throws \RuntimeException
31 30
      */
32
-    public function __construct()
33
-    {
31
+    public function __construct() {
34 32
         parent::__construct();
35 33
         if (version_compare(PHP_VERSION, '5.5.0') < 0) {
36 34
             throw new \RuntimeException("Unsupported Curl version");
@@ -41,8 +39,7 @@  discard block
 block discarded – undo
41 39
      * @param string $string
42 40
      * @return bool|string
43 41
      */
44
-    public function escape($string)
45
-    {
42
+    public function escape($string) {
46 43
         return curl_escape($this->handle, $string);
47 44
     }
48 45
 
@@ -50,8 +47,7 @@  discard block
 block discarded – undo
50 47
      * @param int $bitmask
51 48
      * @return int
52 49
      */
53
-    public function pause($bitmask)
54
-    {
50
+    public function pause($bitmask) {
55 51
         return curl_pause($this->handle, $bitmask);
56 52
     }
57 53
 
@@ -59,16 +55,14 @@  discard block
 block discarded – undo
59 55
      * @param string $filepath
60 56
      * @return \CURLFile
61 57
      */
62
-    public function preparePostFileField($filepath)
63
-    {
58
+    public function preparePostFileField($filepath) {
64 59
         return new \CURLFile($filepath);
65 60
     }
66 61
 
67 62
     /**
68 63
      * @return void
69 64
      */
70
-    public function reset()
71
-    {
65
+    public function reset() {
72 66
         $this->handle && curl_reset($this->handle);
73 67
     }
74 68
 
@@ -76,8 +70,7 @@  discard block
 block discarded – undo
76 70
      * @param int $errornum
77 71
      * @return NULL|string
78 72
      */
79
-    public static function strerror($errornum)
80
-    {
73
+    public static function strerror($errornum) {
81 74
         return curl_strerror($errornum);
82 75
     }
83 76
 
@@ -85,8 +78,7 @@  discard block
 block discarded – undo
85 78
      * @param string $string
86 79
      * @return bool|string
87 80
      */
88
-    public function unescape($string)
89
-    {
81
+    public function unescape($string) {
90 82
         return curl_unescape($this->handle, $string);
91 83
     }
92 84
 }
Please login to merge, or discard this patch.
src/FacebookAds/Http/Parameters.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   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,13 +24,11 @@  discard block
 block discarded – undo
24 24
 
25 25
 namespace FacebookAds\Http;
26 26
 
27
-class Parameters extends \ArrayObject
28
-{
27
+class Parameters extends \ArrayObject {
29 28
     /**
30 29
      * @param array $data
31 30
      */
32
-    public function enhance(array $data)
33
-    {
31
+    public function enhance(array $data) {
34 32
         foreach ($data as $key => $value) {
35 33
             $this[$key] = $value;
36 34
         }
@@ -40,16 +38,14 @@  discard block
 block discarded – undo
40 38
      * @param mixed $value
41 39
      * @return string
42 40
      */
43
-    protected function exportNonScalar($value)
44
-    {
41
+    protected function exportNonScalar($value) {
45 42
         return json_encode($value);
46 43
     }
47 44
 
48 45
     /**
49 46
      * @return array
50 47
      */
51
-    public function export()
52
-    {
48
+    public function export() {
53 49
         $data = array();
54 50
         foreach ($this as $key => $value) {
55 51
             $data[$key] = is_null($value) || is_scalar($value)
Please login to merge, or discard this patch.
src/FacebookAds/Exception/Exception.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
@@ -24,6 +24,5 @@
 block discarded – undo
24 24
 
25 25
 namespace FacebookAds\Exception;
26 26
 
27
-class Exception extends \Exception
28
-{
27
+class Exception extends \Exception {
29 28
 }
Please login to merge, or discard this patch.
src/FacebookAds/Logger/CurlLogger/JsonNode.php 1 patch
Braces   +11 added lines, -22 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 namespace FacebookAds\Logger\CurlLogger;
26 26
 
27
-final class JsonNode
28
-{
27
+final class JsonNode {
29 28
     /**
30 29
      * @var int
31 30
      */
@@ -51,8 +50,7 @@  discard block
 block discarded – undo
51 50
      * @return $this
52 51
      * @throws \InvalidArgumentException
53 52
      */
54
-    public static function factory($value)
55
-    {
53
+    public static function factory($value) {
56 54
         $object = new self();
57 55
         switch (true) {
58 56
             case is_object($value):
@@ -73,16 +71,14 @@  discard block
 block discarded – undo
73 71
         return $object;
74 72
     }
75 73
 
76
-    public function __construct()
77
-    {
74
+    public function __construct() {
78 75
         $this->children = new \ArrayObject();
79 76
     }
80 77
 
81 78
     /**
82 79
      * @return mixed
83 80
      */
84
-    public function getValue()
85
-    {
81
+    public function getValue() {
86 82
         return $this->value;
87 83
     }
88 84
 
@@ -90,8 +86,7 @@  discard block
 block discarded – undo
90 86
      * @param mixed $value
91 87
      * @return $this
92 88
      */
93
-    public function setValue($value)
94
-    {
89
+    public function setValue($value) {
95 90
         $this->value = $value;
96 91
 
97 92
         return $this;
@@ -100,16 +95,14 @@  discard block
 block discarded – undo
100 95
     /**
101 96
      * @return \ArrayObject
102 97
      */
103
-    public function getChildren()
104
-    {
98
+    public function getChildren() {
105 99
         return $this->children;
106 100
     }
107 101
 
108 102
     /**
109 103
      * @return int
110 104
      */
111
-    public function getMaxTreeChildrenCount()
112
-    {
105
+    public function getMaxTreeChildrenCount() {
113 106
         $max = $this->getChildren()->count();
114 107
 
115 108
         /** @var JsonNode $child */
@@ -125,16 +118,14 @@  discard block
 block discarded – undo
125 118
      * @param int $indent
126 119
      * @return string
127 120
      */
128
-    protected function getPadding($indent)
129
-    {
121
+    protected function getPadding($indent) {
130 122
         return str_repeat(' ', $indent * self::INDENT_UNIT);
131 123
     }
132 124
 
133 125
     /**
134 126
      * @return mixed
135 127
      */
136
-    protected function getLastChildKey()
137
-    {
128
+    protected function getLastChildKey() {
138 129
         if ($this->getChildren()->count() === 0) {
139 130
             return null;
140 131
         }
@@ -149,8 +140,7 @@  discard block
 block discarded – undo
149 140
      * @param int $indent
150 141
      * @return string
151 142
      */
152
-    protected function encodeList($indent)
153
-    {
143
+    protected function encodeList($indent) {
154 144
         $value = $this->getValue();
155 145
         if (empty($value) || (array_keys($value) === range(0, count($value) - 1))) {
156 146
             $is_map = false;
@@ -184,8 +174,7 @@  discard block
 block discarded – undo
184 174
      * @param int $indent
185 175
      * @return string
186 176
      */
187
-    public function encode($indent = 0)
188
-    {
177
+    public function encode($indent = 0) {
189 178
         $value = $this->getValue();
190 179
         if (is_array($value) || is_object($value)) {
191 180
             if ($this->getMaxTreeChildrenCount() > 2) {
Please login to merge, or discard this patch.
src/FacebookAds/Logger/LoggerInterface.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
@@ -27,8 +27,7 @@
 block discarded – undo
27 27
 use FacebookAds\Http\RequestInterface;
28 28
 use FacebookAds\Http\ResponseInterface;
29 29
 
30
-interface LoggerInterface
31
-{
30
+interface LoggerInterface {
32 31
     /**
33 32
      * @param string $level
34 33
      * @param string $message
Please login to merge, or discard this patch.