@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | - * |
|
| 5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | - * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | - * form for use in connection with the web services and APIs provided by |
|
| 8 | - * Facebook. |
|
| 9 | - * |
|
| 10 | - * As with any software that integrates with the Facebook platform, your use |
|
| 11 | - * of this software is subject to the Facebook Developer Principles and |
|
| 12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | - * shall be included in all copies or substantial portions of the software. |
|
| 14 | - * |
|
| 15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | - * DEALINGS IN THE SOFTWARE. |
|
| 22 | - * |
|
| 23 | - */ |
|
| 3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | + * |
|
| 5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | + * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | + * form for use in connection with the web services and APIs provided by |
|
| 8 | + * Facebook. |
|
| 9 | + * |
|
| 10 | + * As with any software that integrates with the Facebook platform, your use |
|
| 11 | + * of this software is subject to the Facebook Developer Principles and |
|
| 12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | + * shall be included in all copies or substantial portions of the software. |
|
| 14 | + * |
|
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | + * DEALINGS IN THE SOFTWARE. |
|
| 22 | + * |
|
| 23 | + */ |
|
| 24 | 24 | |
| 25 | 25 | namespace FacebookAds\Object\Fields; |
| 26 | 26 | |
@@ -29,8 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * @method static AdAccountFields getInstance() |
| 31 | 31 | */ |
| 32 | -class AdAccountFields extends AbstractEnum |
|
| 33 | -{ |
|
| 32 | +class AdAccountFields extends AbstractEnum { |
|
| 34 | 33 | const ACCOUNT_GROUPS = 'account_groups'; |
| 35 | 34 | const ACCOUNT_ID = 'account_id'; |
| 36 | 35 | const ACCOUNT_STATUS = 'account_status'; |
@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | - * |
|
| 5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | - * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | - * form for use in connection with the web services and APIs provided by |
|
| 8 | - * Facebook. |
|
| 9 | - * |
|
| 10 | - * As with any software that integrates with the Facebook platform, your use |
|
| 11 | - * of this software is subject to the Facebook Developer Principles and |
|
| 12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | - * shall be included in all copies or substantial portions of the software. |
|
| 14 | - * |
|
| 15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | - * DEALINGS IN THE SOFTWARE. |
|
| 22 | - * |
|
| 23 | - */ |
|
| 3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | + * |
|
| 5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | + * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | + * form for use in connection with the web services and APIs provided by |
|
| 8 | + * Facebook. |
|
| 9 | + * |
|
| 10 | + * As with any software that integrates with the Facebook platform, your use |
|
| 11 | + * of this software is subject to the Facebook Developer Principles and |
|
| 12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | + * shall be included in all copies or substantial portions of the software. |
|
| 14 | + * |
|
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | + * DEALINGS IN THE SOFTWARE. |
|
| 22 | + * |
|
| 23 | + */ |
|
| 24 | 24 | |
| 25 | 25 | namespace FacebookAds\Object\Fields; |
| 26 | 26 | |
@@ -27,15 +27,13 @@ discard block |
||
| 27 | 27 | use FacebookAds\Http\RequestInterface; |
| 28 | 28 | use FacebookAds\Http\ResponseInterface; |
| 29 | 29 | |
| 30 | -class NullLogger implements LoggerInterface |
|
| 31 | -{ |
|
| 30 | +class NullLogger implements LoggerInterface { |
|
| 32 | 31 | /** |
| 33 | 32 | * @param string $level |
| 34 | 33 | * @param string $message |
| 35 | 34 | * @param array $context |
| 36 | 35 | */ |
| 37 | - public function log($level, $message, array $context = array()) |
|
| 38 | - { |
|
| 36 | + public function log($level, $message, array $context = array()) { |
|
| 39 | 37 | } |
| 40 | 38 | |
| 41 | 39 | /** |
@@ -43,8 +41,7 @@ discard block |
||
| 43 | 41 | * @param RequestInterface $request |
| 44 | 42 | * @param array $context |
| 45 | 43 | */ |
| 46 | - public function logRequest($level, RequestInterface $request, array $context = array()) |
|
| 47 | - { |
|
| 44 | + public function logRequest($level, RequestInterface $request, array $context = array()) { |
|
| 48 | 45 | } |
| 49 | 46 | |
| 50 | 47 | /** |
@@ -52,7 +49,6 @@ discard block |
||
| 52 | 49 | * @param ResponseInterface $response |
| 53 | 50 | * @param array $context |
| 54 | 51 | */ |
| 55 | - public function logResponse($level, ResponseInterface $response, array $context = array()) |
|
| 56 | - { |
|
| 52 | + public function logResponse($level, ResponseInterface $response, array $context = array()) { |
|
| 57 | 53 | } |
| 58 | 54 | } |
@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | - * |
|
| 5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | - * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | - * form for use in connection with the web services and APIs provided by |
|
| 8 | - * Facebook. |
|
| 9 | - * |
|
| 10 | - * As with any software that integrates with the Facebook platform, your use |
|
| 11 | - * of this software is subject to the Facebook Developer Principles and |
|
| 12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | - * shall be included in all copies or substantial portions of the software. |
|
| 14 | - * |
|
| 15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | - * DEALINGS IN THE SOFTWARE. |
|
| 22 | - * |
|
| 23 | - */ |
|
| 3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | + * |
|
| 5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | + * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | + * form for use in connection with the web services and APIs provided by |
|
| 8 | + * Facebook. |
|
| 9 | + * |
|
| 10 | + * As with any software that integrates with the Facebook platform, your use |
|
| 11 | + * of this software is subject to the Facebook Developer Principles and |
|
| 12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | + * shall be included in all copies or substantial portions of the software. |
|
| 14 | + * |
|
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | + * DEALINGS IN THE SOFTWARE. |
|
| 22 | + * |
|
| 23 | + */ |
|
| 24 | 24 | |
| 25 | 25 | namespace FacebookAds\Object\Fields; |
| 26 | 26 | |
@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | use FacebookAds\Object\Fields\AdAccountGroupAccountFields; |
| 30 | 30 | use FacebookAds\Object\Traits\FieldValidation; |
| 31 | 31 | |
| 32 | -class AdAccountGroupAccount extends AbstractObject |
|
| 33 | -{ |
|
| 32 | +class AdAccountGroupAccount extends AbstractObject { |
|
| 34 | 33 | use FieldValidation; |
| 35 | 34 | |
| 36 | 35 | /** |
@@ -47,8 +46,7 @@ discard block |
||
| 47 | 46 | * @param string $ad_account_group_id |
| 48 | 47 | * @param Api $api |
| 49 | 48 | */ |
| 50 | - public function __construct($ad_account_group_id, Api $api = null) |
|
| 51 | - { |
|
| 49 | + public function __construct($ad_account_group_id, Api $api = null) { |
|
| 52 | 50 | $this->adAccountGroupId = $ad_account_group_id; |
| 53 | 51 | $this->api = $api; |
| 54 | 52 | } |
@@ -56,24 +54,21 @@ discard block |
||
| 56 | 54 | /** |
| 57 | 55 | * @return AdAccountGroupAccountFields |
| 58 | 56 | */ |
| 59 | - public static function getFieldsEnum() |
|
| 60 | - { |
|
| 57 | + public static function getFieldsEnum() { |
|
| 61 | 58 | return AdAccountGroupAccountFields::getInstance(); |
| 62 | 59 | } |
| 63 | 60 | |
| 64 | 61 | /** |
| 65 | 62 | * @return Api |
| 66 | 63 | */ |
| 67 | - public function getApi() |
|
| 68 | - { |
|
| 64 | + public function getApi() { |
|
| 69 | 65 | return $this->api; |
| 70 | 66 | } |
| 71 | 67 | |
| 72 | 68 | /** |
| 73 | 69 | * @return string |
| 74 | 70 | */ |
| 75 | - public function getParentId() |
|
| 76 | - { |
|
| 71 | + public function getParentId() { |
|
| 77 | 72 | return $this->adAccountGroupId; |
| 78 | 73 | } |
| 79 | 74 | |
@@ -81,8 +76,7 @@ discard block |
||
| 81 | 76 | * @param array $params |
| 82 | 77 | * @return $this |
| 83 | 78 | */ |
| 84 | - public function create(array $params = array()) |
|
| 85 | - { |
|
| 79 | + public function create(array $params = array()) { |
|
| 86 | 80 | return $this->save($params); |
| 87 | 81 | } |
| 88 | 82 | |
@@ -90,8 +84,7 @@ discard block |
||
| 90 | 84 | * @param array $params |
| 91 | 85 | * @return $this |
| 92 | 86 | */ |
| 93 | - public function update(array $params = array()) |
|
| 94 | - { |
|
| 87 | + public function update(array $params = array()) { |
|
| 95 | 88 | return $this->save($params); |
| 96 | 89 | } |
| 97 | 90 | |
@@ -99,8 +92,7 @@ discard block |
||
| 99 | 92 | * @return string |
| 100 | 93 | * @throws \Exception |
| 101 | 94 | */ |
| 102 | - protected function assureId() |
|
| 103 | - { |
|
| 95 | + protected function assureId() { |
|
| 104 | 96 | if (!$this->data[AdAccountGroupAccountFields::ACCOUNT_ID]) { |
| 105 | 97 | throw new \Exception( |
| 106 | 98 | AdAccountGroupAccountFields::ACCOUNT_ID." field must be set"); |
@@ -113,8 +105,7 @@ discard block |
||
| 113 | 105 | * @param array $params |
| 114 | 106 | * @return $this |
| 115 | 107 | */ |
| 116 | - public function save(array $params = array()) |
|
| 117 | - { |
|
| 108 | + public function save(array $params = array()) { |
|
| 118 | 109 | $account_data = array('account_ids' => $this->assureId()); |
| 119 | 110 | |
| 120 | 111 | $this->getApi()->call( |
@@ -129,8 +120,7 @@ discard block |
||
| 129 | 120 | * @param array $params |
| 130 | 121 | * @throws \Exception |
| 131 | 122 | */ |
| 132 | - public function delete(array $params = array()) |
|
| 133 | - { |
|
| 123 | + public function delete(array $params = array()) { |
|
| 134 | 124 | $this->getApi()->call( |
| 135 | 125 | '/'.$this->adAccountGroupId.'/adaccounts/'.$this->assureId(), |
| 136 | 126 | RequestInterface::METHOD_DELETE, |
@@ -142,8 +132,7 @@ discard block |
||
| 142 | 132 | /** |
| 143 | 133 | * @return AdAccount |
| 144 | 134 | */ |
| 145 | - public function getAdAccount() |
|
| 146 | - { |
|
| 135 | + public function getAdAccount() { |
|
| 147 | 136 | return new AdAccount( |
| 148 | 137 | 'act_'.$this->{AdAccountGroupAccountFields::ACCOUNT_ID}); |
| 149 | 138 | } |
@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | - * |
|
| 5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | - * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | - * form for use in connection with the web services and APIs provided by |
|
| 8 | - * Facebook. |
|
| 9 | - * |
|
| 10 | - * As with any software that integrates with the Facebook platform, your use |
|
| 11 | - * of this software is subject to the Facebook Developer Principles and |
|
| 12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | - * shall be included in all copies or substantial portions of the software. |
|
| 14 | - * |
|
| 15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | - * DEALINGS IN THE SOFTWARE. |
|
| 22 | - * |
|
| 23 | - */ |
|
| 3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | + * |
|
| 5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | + * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | + * form for use in connection with the web services and APIs provided by |
|
| 8 | + * Facebook. |
|
| 9 | + * |
|
| 10 | + * As with any software that integrates with the Facebook platform, your use |
|
| 11 | + * of this software is subject to the Facebook Developer Principles and |
|
| 12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | + * shall be included in all copies or substantial portions of the software. |
|
| 14 | + * |
|
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | + * DEALINGS IN THE SOFTWARE. |
|
| 22 | + * |
|
| 23 | + */ |
|
| 24 | 24 | |
| 25 | 25 | namespace FacebookAds\Object\Fields; |
| 26 | 26 | |
@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | use FacebookAds\Http\ResponseInterface; |
| 30 | 30 | use FacebookAds\Logger\CurlLogger\JsonAwareParameters; |
| 31 | 31 | |
| 32 | -class CurlLogger implements LoggerInterface |
|
| 33 | -{ |
|
| 32 | +class CurlLogger implements LoggerInterface { |
|
| 34 | 33 | /** |
| 35 | 34 | * @var string |
| 36 | 35 | */ |
@@ -79,16 +78,14 @@ discard block |
||
| 79 | 78 | /** |
| 80 | 79 | * @param resource $handle |
| 81 | 80 | */ |
| 82 | - public function __construct($handle = null) |
|
| 83 | - { |
|
| 81 | + public function __construct($handle = null) { |
|
| 84 | 82 | $this->handle = is_resource($handle) ? $handle : STDOUT; |
| 85 | 83 | } |
| 86 | 84 | |
| 87 | 85 | /** |
| 88 | 86 | * @return bool |
| 89 | 87 | */ |
| 90 | - public function isJsonPrettyPrint() |
|
| 91 | - { |
|
| 88 | + public function isJsonPrettyPrint() { |
|
| 92 | 89 | return $this->jsonPrettyPrint; |
| 93 | 90 | } |
| 94 | 91 | |
@@ -96,8 +93,7 @@ discard block |
||
| 96 | 93 | * @param bool $json_pretty_print |
| 97 | 94 | * @return $this |
| 98 | 95 | */ |
| 99 | - public function setJsonPrettyPrint($json_pretty_print) |
|
| 100 | - { |
|
| 96 | + public function setJsonPrettyPrint($json_pretty_print) { |
|
| 101 | 97 | $this->jsonPrettyPrint = $json_pretty_print; |
| 102 | 98 | |
| 103 | 99 | return $this; |
@@ -107,8 +103,7 @@ discard block |
||
| 107 | 103 | * @param string $method |
| 108 | 104 | * @return string |
| 109 | 105 | */ |
| 110 | - public static function getMethodFlag($method) |
|
| 111 | - { |
|
| 106 | + public static function getMethodFlag($method) { |
|
| 112 | 107 | switch ($method) { |
| 113 | 108 | case RequestInterface::METHOD_GET: |
| 114 | 109 | return static::METHOD_GET_FLAG; |
@@ -126,8 +121,7 @@ discard block |
||
| 126 | 121 | * @param string $value |
| 127 | 122 | * @return string |
| 128 | 123 | */ |
| 129 | - public static function getParamFlag($method, $value) |
|
| 130 | - { |
|
| 124 | + public static function getParamFlag($method, $value) { |
|
| 131 | 125 | return $method === RequestInterface::METHOD_POST |
| 132 | 126 | ? static::PARAM_POST_FLAG |
| 133 | 127 | : (strstr($value, "\n") |
@@ -140,8 +134,7 @@ discard block |
||
| 140 | 134 | * @param int $indent |
| 141 | 135 | * @return string |
| 142 | 136 | */ |
| 143 | - protected function indent($string, $indent) |
|
| 144 | - { |
|
| 137 | + protected function indent($string, $indent) { |
|
| 145 | 138 | return str_replace("\n", " \n".str_repeat(' ', $indent), $string); |
| 146 | 139 | } |
| 147 | 140 | |
@@ -151,8 +144,7 @@ discard block |
||
| 151 | 144 | * @param bool $is_file |
| 152 | 145 | * @return string |
| 153 | 146 | */ |
| 154 | - protected function processParams(Parameters $params, $method, $is_file) |
|
| 155 | - { |
|
| 147 | + protected function processParams(Parameters $params, $method, $is_file) { |
|
| 156 | 148 | $chunks = array(); |
| 157 | 149 | if ($this->isJsonPrettyPrint()) { |
| 158 | 150 | $params = new JsonAwareParameters($params); |
@@ -181,8 +173,7 @@ discard block |
||
| 181 | 173 | * @param RequestInterface $request |
| 182 | 174 | * @return string |
| 183 | 175 | */ |
| 184 | - protected function processUrl(RequestInterface $request) |
|
| 185 | - { |
|
| 176 | + protected function processUrl(RequestInterface $request) { |
|
| 186 | 177 | return $request->getProtocol().$request->getDomain() |
| 187 | 178 | .'/v'.$request->getGraphVersion().$request->getPath(); |
| 188 | 179 | } |
@@ -190,8 +181,7 @@ discard block |
||
| 190 | 181 | /** |
| 191 | 182 | * @param string $buffer |
| 192 | 183 | */ |
| 193 | - protected function flush($buffer) |
|
| 194 | - { |
|
| 184 | + protected function flush($buffer) { |
|
| 195 | 185 | fwrite($this->handle, $buffer.PHP_EOL.PHP_EOL); |
| 196 | 186 | } |
| 197 | 187 | |
@@ -200,8 +190,7 @@ discard block |
||
| 200 | 190 | * @param string $message |
| 201 | 191 | * @param array $context |
| 202 | 192 | */ |
| 203 | - public function log($level, $message, array $context = array()) |
|
| 204 | - { |
|
| 193 | + public function log($level, $message, array $context = array()) { |
|
| 205 | 194 | // We only care about requests |
| 206 | 195 | } |
| 207 | 196 | |
@@ -210,8 +199,7 @@ discard block |
||
| 210 | 199 | * @param mixed $key |
| 211 | 200 | * @return mixed |
| 212 | 201 | */ |
| 213 | - protected function removeArrayKey(array &$array, $key) |
|
| 214 | - { |
|
| 202 | + protected function removeArrayKey(array &$array, $key) { |
|
| 215 | 203 | if (array_key_exists($key, $array)) { |
| 216 | 204 | $value = $array[$key]; |
| 217 | 205 | unset($array[$key]); |
@@ -226,8 +214,7 @@ discard block |
||
| 226 | 214 | * @param array $params |
| 227 | 215 | * @return array |
| 228 | 216 | */ |
| 229 | - protected function sortParams(array $params) |
|
| 230 | - { |
|
| 217 | + protected function sortParams(array $params) { |
|
| 231 | 218 | $access_token = $this->removeArrayKey($params, 'access_token'); |
| 232 | 219 | $appsecret_proof = $this->removeArrayKey($params, 'appsecret_proof'); |
| 233 | 220 | $access_token !== null && $params['access_token'] = $access_token; |
@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | - * |
|
| 5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | - * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | - * form for use in connection with the web services and APIs provided by |
|
| 8 | - * Facebook. |
|
| 9 | - * |
|
| 10 | - * As with any software that integrates with the Facebook platform, your use |
|
| 11 | - * of this software is subject to the Facebook Developer Principles and |
|
| 12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | - * shall be included in all copies or substantial portions of the software. |
|
| 14 | - * |
|
| 15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | - * DEALINGS IN THE SOFTWARE. |
|
| 22 | - * |
|
| 23 | - */ |
|
| 3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | + * |
|
| 5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | + * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | + * form for use in connection with the web services and APIs provided by |
|
| 8 | + * Facebook. |
|
| 9 | + * |
|
| 10 | + * As with any software that integrates with the Facebook platform, your use |
|
| 11 | + * of this software is subject to the Facebook Developer Principles and |
|
| 12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | + * shall be included in all copies or substantial portions of the software. |
|
| 14 | + * |
|
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | + * DEALINGS IN THE SOFTWARE. |
|
| 22 | + * |
|
| 23 | + */ |
|
| 24 | 24 | |
| 25 | 25 | namespace FacebookAds\Object\Fields; |
| 26 | 26 | |
@@ -31,8 +31,7 @@ discard block |
||
| 31 | 31 | use FacebookAds\Object\Traits\CannotUpdate; |
| 32 | 32 | use FacebookAds\Object\Traits\FieldValidation; |
| 33 | 33 | |
| 34 | -class AdUser extends AbstractCrudObject |
|
| 35 | -{ |
|
| 34 | +class AdUser extends AbstractCrudObject { |
|
| 36 | 35 | use FieldValidation; |
| 37 | 36 | use CannotDelete; |
| 38 | 37 | use CannotCreate; |
@@ -41,16 +40,14 @@ discard block |
||
| 41 | 40 | /** |
| 42 | 41 | * @return string |
| 43 | 42 | */ |
| 44 | - protected function getEndpoint() |
|
| 45 | - { |
|
| 43 | + protected function getEndpoint() { |
|
| 46 | 44 | return 'users'; |
| 47 | 45 | } |
| 48 | 46 | |
| 49 | 47 | /** |
| 50 | 48 | * @return AdUserFields |
| 51 | 49 | */ |
| 52 | - public static function getFieldsEnum() |
|
| 53 | - { |
|
| 50 | + public static function getFieldsEnum() { |
|
| 54 | 51 | return AdUserFields::getInstance(); |
| 55 | 52 | } |
| 56 | 53 | |
@@ -60,8 +57,7 @@ discard block |
||
| 60 | 57 | * @return Cursor |
| 61 | 58 | */ |
| 62 | 59 | public function getAdAccounts( |
| 63 | - array $fields = array(), array $params = array()) |
|
| 64 | - { |
|
| 60 | + array $fields = array(), array $params = array()) { |
|
| 65 | 61 | return $this->getManyByConnection(AdAccount::className(), $fields, $params); |
| 66 | 62 | } |
| 67 | 63 | |
@@ -71,8 +67,7 @@ discard block |
||
| 71 | 67 | * @return Cursor |
| 72 | 68 | */ |
| 73 | 69 | public function getAdAccountGroups( |
| 74 | - array $fields = array(), array $params = array()) |
|
| 75 | - { |
|
| 70 | + array $fields = array(), array $params = array()) { |
|
| 76 | 71 | return $this->getManyByConnection( |
| 77 | 72 | AdAccountGroup::className(), |
| 78 | 73 | $fields, |
@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | - * |
|
| 5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | - * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | - * form for use in connection with the web services and APIs provided by |
|
| 8 | - * Facebook. |
|
| 9 | - * |
|
| 10 | - * As with any software that integrates with the Facebook platform, your use |
|
| 11 | - * of this software is subject to the Facebook Developer Principles and |
|
| 12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | - * shall be included in all copies or substantial portions of the software. |
|
| 14 | - * |
|
| 15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | - * DEALINGS IN THE SOFTWARE. |
|
| 22 | - * |
|
| 23 | - */ |
|
| 3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | + * |
|
| 5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | + * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | + * form for use in connection with the web services and APIs provided by |
|
| 8 | + * Facebook. |
|
| 9 | + * |
|
| 10 | + * As with any software that integrates with the Facebook platform, your use |
|
| 11 | + * of this software is subject to the Facebook Developer Principles and |
|
| 12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | + * shall be included in all copies or substantial portions of the software. |
|
| 14 | + * |
|
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | + * DEALINGS IN THE SOFTWARE. |
|
| 22 | + * |
|
| 23 | + */ |
|
| 24 | 24 | |
| 25 | 25 | namespace FacebookAds\Object\Fields; |
| 26 | 26 | |
@@ -27,8 +27,7 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * @method static AdSetFields getInstance() |
| 29 | 29 | */ |
| 30 | -class AdSetFields extends AbstractArchivableCrudObjectFields |
|
| 31 | -{ |
|
| 30 | +class AdSetFields extends AbstractArchivableCrudObjectFields { |
|
| 32 | 31 | const ACCOUNT_ID = 'account_id'; |
| 33 | 32 | const ADSET_SCHEDULE = 'adset_schedule'; |
| 34 | 33 | const BID_AMOUNT = 'bid_amount'; |
@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | - * |
|
| 5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | - * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | - * form for use in connection with the web services and APIs provided by |
|
| 8 | - * Facebook. |
|
| 9 | - * |
|
| 10 | - * As with any software that integrates with the Facebook platform, your use |
|
| 11 | - * of this software is subject to the Facebook Developer Principles and |
|
| 12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | - * shall be included in all copies or substantial portions of the software. |
|
| 14 | - * |
|
| 15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | - * DEALINGS IN THE SOFTWARE. |
|
| 22 | - * |
|
| 23 | - */ |
|
| 3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | + * |
|
| 5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | + * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | + * form for use in connection with the web services and APIs provided by |
|
| 8 | + * Facebook. |
|
| 9 | + * |
|
| 10 | + * As with any software that integrates with the Facebook platform, your use |
|
| 11 | + * of this software is subject to the Facebook Developer Principles and |
|
| 12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | + * shall be included in all copies or substantial portions of the software. |
|
| 14 | + * |
|
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | + * DEALINGS IN THE SOFTWARE. |
|
| 22 | + * |
|
| 23 | + */ |
|
| 24 | 24 | |
| 25 | 25 | namespace FacebookAds\Object\Fields; |
| 26 | 26 | |
@@ -29,29 +29,25 @@ |
||
| 29 | 29 | use FacebookAds\Object\Traits\CannotDelete; |
| 30 | 30 | use FacebookAds\Object\Traits\FieldValidation; |
| 31 | 31 | |
| 32 | -class SystemUser extends AbstractCrudObject |
|
| 33 | -{ |
|
| 32 | +class SystemUser extends AbstractCrudObject { |
|
| 34 | 33 | use FieldValidation; |
| 35 | 34 | use CannotDelete; |
| 36 | 35 | |
| 37 | 36 | /** |
| 38 | 37 | * @return string |
| 39 | 38 | */ |
| 40 | - protected function getEndpoint() |
|
| 41 | - { |
|
| 39 | + protected function getEndpoint() { |
|
| 42 | 40 | return 'system_users'; |
| 43 | 41 | } |
| 44 | 42 | |
| 45 | 43 | /** |
| 46 | 44 | * @return SystemUserFields |
| 47 | 45 | */ |
| 48 | - public static function getFieldsEnum() |
|
| 49 | - { |
|
| 46 | + public static function getFieldsEnum() { |
|
| 50 | 47 | return SystemUserFields::getInstance(); |
| 51 | 48 | } |
| 52 | 49 | |
| 53 | - public function invalidateAccessTokens() |
|
| 54 | - { |
|
| 50 | + public function invalidateAccessTokens() { |
|
| 55 | 51 | $this->getApi()->call( |
| 56 | 52 | '/'.$this->assureId().'/access_tokens', |
| 57 | 53 | RequestInterface::METHOD_DELETE); |
@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | - * |
|
| 5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | - * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | - * form for use in connection with the web services and APIs provided by |
|
| 8 | - * Facebook. |
|
| 9 | - * |
|
| 10 | - * As with any software that integrates with the Facebook platform, your use |
|
| 11 | - * of this software is subject to the Facebook Developer Principles and |
|
| 12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | - * shall be included in all copies or substantial portions of the software. |
|
| 14 | - * |
|
| 15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | - * DEALINGS IN THE SOFTWARE. |
|
| 22 | - * |
|
| 23 | - */ |
|
| 3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | + * |
|
| 5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | + * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | + * form for use in connection with the web services and APIs provided by |
|
| 8 | + * Facebook. |
|
| 9 | + * |
|
| 10 | + * As with any software that integrates with the Facebook platform, your use |
|
| 11 | + * of this software is subject to the Facebook Developer Principles and |
|
| 12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | + * shall be included in all copies or substantial portions of the software. |
|
| 14 | + * |
|
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | + * DEALINGS IN THE SOFTWARE. |
|
| 22 | + * |
|
| 23 | + */ |
|
| 24 | 24 | |
| 25 | 25 | namespace FacebookAds\Object\Fields; |
| 26 | 26 | |
@@ -29,8 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * @method static AdCreativeFields getInstance() |
| 31 | 31 | */ |
| 32 | -class AdCreativeFields extends AbstractEnum |
|
| 33 | -{ |
|
| 32 | +class AdCreativeFields extends AbstractEnum { |
|
| 34 | 33 | const ACTOR_ID = 'actor_id'; |
| 35 | 34 | const ACTOR_IMAGE_HASH = 'actor_image_hash'; |
| 36 | 35 | const ACTOR_NAME = 'actor_name'; |
@@ -1,26 +1,26 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | - * |
|
| 5 | - * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | - * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | - * form for use in connection with the web services and APIs provided by |
|
| 8 | - * Facebook. |
|
| 9 | - * |
|
| 10 | - * As with any software that integrates with the Facebook platform, your use |
|
| 11 | - * of this software is subject to the Facebook Developer Principles and |
|
| 12 | - * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | - * shall be included in all copies or substantial portions of the software. |
|
| 14 | - * |
|
| 15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | - * DEALINGS IN THE SOFTWARE. |
|
| 22 | - * |
|
| 23 | - */ |
|
| 3 | + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
|
| 4 | + * |
|
| 5 | + * You are hereby granted a non-exclusive, worldwide, royalty-free license to |
|
| 6 | + * use, copy, modify, and distribute this software in source code or binary |
|
| 7 | + * form for use in connection with the web services and APIs provided by |
|
| 8 | + * Facebook. |
|
| 9 | + * |
|
| 10 | + * As with any software that integrates with the Facebook platform, your use |
|
| 11 | + * of this software is subject to the Facebook Developer Principles and |
|
| 12 | + * Policies [http://developers.facebook.com/policy/]. This copyright notice |
|
| 13 | + * shall be included in all copies or substantial portions of the software. |
|
| 14 | + * |
|
| 15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 | + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 | + * DEALINGS IN THE SOFTWARE. |
|
| 22 | + * |
|
| 23 | + */ |
|
| 24 | 24 | |
| 25 | 25 | namespace FacebookAds\Object\Fields; |
| 26 | 26 | |
@@ -29,8 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * @method static TargetingSpecsFields getInstance() |
| 31 | 31 | */ |
| 32 | -class TargetingSpecsFields extends AbstractEnum |
|
| 33 | -{ |
|
| 32 | +class TargetingSpecsFields extends AbstractEnum { |
|
| 34 | 33 | const GENDERS = 'genders'; |
| 35 | 34 | const AGE_MIN = 'age_min'; |
| 36 | 35 | const AGE_MAX = 'age_max'; |