@@ -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 | |
@@ -24,13 +24,11 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -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 | |
@@ -24,13 +24,11 @@ discard block |
||
| 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 |
||
| 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) |
@@ -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 | |
@@ -24,6 +24,5 @@ |
||
| 24 | 24 | |
| 25 | 25 | namespace FacebookAds\Exception; |
| 26 | 26 | |
| 27 | -class Exception extends \Exception |
|
| 28 | -{ |
|
| 27 | +class Exception extends \Exception { |
|
| 29 | 28 | } |
@@ -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 | 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 |
@@ -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 | |
@@ -28,23 +28,20 @@ |
||
| 28 | 28 | use FacebookAds\Object\Fields\ProductSetFields; |
| 29 | 29 | use FacebookAds\Object\Traits\FieldValidation; |
| 30 | 30 | |
| 31 | -class ProductSet extends AbstractCrudObject |
|
| 32 | -{ |
|
| 31 | +class ProductSet extends AbstractCrudObject { |
|
| 33 | 32 | use FieldValidation; |
| 34 | 33 | |
| 35 | 34 | /** |
| 36 | 35 | * @return string |
| 37 | 36 | */ |
| 38 | - protected function getEndpoint() |
|
| 39 | - { |
|
| 37 | + protected function getEndpoint() { |
|
| 40 | 38 | return 'product_sets'; |
| 41 | 39 | } |
| 42 | 40 | |
| 43 | 41 | /** |
| 44 | 42 | * @return ProductSetFields |
| 45 | 43 | */ |
| 46 | - public static function getFieldsEnum() |
|
| 47 | - { |
|
| 44 | + public static function getFieldsEnum() { |
|
| 48 | 45 | return ProductSetFields::getInstance(); |
| 49 | 46 | } |
| 50 | 47 | |
@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | use FacebookAds\Object\Traits\FieldValidation; |
| 30 | 30 | use FacebookAds\Object\Values\ReachFrequencyPredictionActions; |
| 31 | 31 | |
| 32 | -class ReachFrequencyPrediction extends AbstractCrudObject |
|
| 33 | -{ |
|
| 32 | +class ReachFrequencyPrediction extends AbstractCrudObject { |
|
| 34 | 33 | use FieldValidation; |
| 35 | 34 | |
| 36 | 35 | /** |
@@ -46,16 +45,14 @@ discard block |
||
| 46 | 45 | /** |
| 47 | 46 | * @return string |
| 48 | 47 | */ |
| 49 | - protected function getEndpoint() |
|
| 50 | - { |
|
| 48 | + protected function getEndpoint() { |
|
| 51 | 49 | return 'reachfrequencypredictions'; |
| 52 | 50 | } |
| 53 | 51 | |
| 54 | 52 | /** |
| 55 | 53 | * @return ReachFrequencyPredictionFields |
| 56 | 54 | */ |
| 57 | - public static function getFieldsEnum() |
|
| 58 | - { |
|
| 55 | + public static function getFieldsEnum() { |
|
| 59 | 56 | return ReachFrequencyPredictionFields::getInstance(); |
| 60 | 57 | } |
| 61 | 58 | |
@@ -95,8 +92,7 @@ discard block |
||
| 95 | 92 | /** |
| 96 | 93 | * @return ReachFrequencyPrediction |
| 97 | 94 | */ |
| 98 | - public function cancel() |
|
| 99 | - { |
|
| 95 | + public function cancel() { |
|
| 100 | 96 | $params = array( |
| 101 | 97 | ReachFrequencyPredictionFields::PREDICTION_ID => $this->assureId(), |
| 102 | 98 | ReachFrequencyPredictionFields::ACTION |
@@ -30,24 +30,21 @@ discard block |
||
| 30 | 30 | use FacebookAds\Object\Traits\CannotDelete; |
| 31 | 31 | use FacebookAds\Object\Traits\FieldValidation; |
| 32 | 32 | |
| 33 | -class AdsPixel extends AbstractCrudObject |
|
| 34 | -{ |
|
| 33 | +class AdsPixel extends AbstractCrudObject { |
|
| 35 | 34 | use CannotDelete; |
| 36 | 35 | use FieldValidation; |
| 37 | 36 | |
| 38 | 37 | /** |
| 39 | 38 | * @return AdsPixelsFields |
| 40 | 39 | */ |
| 41 | - public static function getFieldsEnum() |
|
| 42 | - { |
|
| 40 | + public static function getFieldsEnum() { |
|
| 43 | 41 | return AdsPixelsFields::getInstance(); |
| 44 | 42 | } |
| 45 | 43 | |
| 46 | 44 | /** |
| 47 | 45 | * @return string |
| 48 | 46 | */ |
| 49 | - protected function getEndpoint() |
|
| 50 | - { |
|
| 47 | + protected function getEndpoint() { |
|
| 51 | 48 | return 'adspixels'; |
| 52 | 49 | } |
| 53 | 50 | |
@@ -55,8 +52,7 @@ discard block |
||
| 55 | 52 | * @param int $business_id |
| 56 | 53 | * @param string $account_id |
| 57 | 54 | */ |
| 58 | - public function sharePixelWithAdAccount($business_id, $account_id) |
|
| 59 | - { |
|
| 55 | + public function sharePixelWithAdAccount($business_id, $account_id) { |
|
| 60 | 56 | $this->getApi()->call( |
| 61 | 57 | '/'.$this->assureId().'/shared_accounts', |
| 62 | 58 | RequestInterface::METHOD_POST, |
@@ -71,8 +67,7 @@ discard block |
||
| 71 | 67 | * @param $business_id |
| 72 | 68 | * @param $account_id |
| 73 | 69 | */ |
| 74 | - public function unsharePixelWithAdAccount($business_id, $account_id) |
|
| 75 | - { |
|
| 70 | + public function unsharePixelWithAdAccount($business_id, $account_id) { |
|
| 76 | 71 | $this->getApi()->call( |
| 77 | 72 | '/'.$this->assureId().'/shared_accounts', |
| 78 | 73 | RequestInterface::METHOD_DELETE, |
@@ -87,8 +82,7 @@ discard block |
||
| 87 | 82 | * @param int $business_id |
| 88 | 83 | * @param int $agency_id |
| 89 | 84 | */ |
| 90 | - public function sharePixelWithAgency($business_id, $agency_id) |
|
| 91 | - { |
|
| 85 | + public function sharePixelWithAgency($business_id, $agency_id) { |
|
| 92 | 86 | $this->getApi()->call( |
| 93 | 87 | '/'.$this->assureId().'/shared_agencies', |
| 94 | 88 | RequestInterface::METHOD_POST, |
@@ -103,8 +97,7 @@ discard block |
||
| 103 | 97 | * @param int $business_id |
| 104 | 98 | * @param int $agency_id |
| 105 | 99 | */ |
| 106 | - public function unsharePixelWithAgency($business_id, $agency_id) |
|
| 107 | - { |
|
| 100 | + public function unsharePixelWithAgency($business_id, $agency_id) { |
|
| 108 | 101 | $this->getApi()->call( |
| 109 | 102 | '/'.$this->assureId().'/shared_agencies', |
| 110 | 103 | RequestInterface::METHOD_DELETE, |