Failed Conditions
Pull Request — master (#191)
by Emanuele
03:09
created
src/FacebookAds/Object/Values/ReachFrequencyPredictionActions.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * @method static ReachFrequencyPredictionActions getInstance()
31 31
  */
32
-class ReachFrequencyPredictionActions extends AbstractEnum
33
-{
32
+class ReachFrequencyPredictionActions extends AbstractEnum {
34 33
     const RESERVE = 'reserve';
35 34
     const CANCEL = 'cancel';
36 35
 }
Please login to merge, or discard this patch.
src/FacebookAds/Object/Values/InsightsLevels.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * @method static InsightsLevels getInstance()
31 31
  */
32
-class InsightsLevels extends AbstractEnum
33
-{
32
+class InsightsLevels extends AbstractEnum {
34 33
     const ACCOUNT = 'account';
35 34
     const AD = 'ad';
36 35
     const ADSET = 'adset';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Values/AdObjectives.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
 class AdObjectives extends AbstractEnum
33 33
 {
34 34
     const CANVAS_APP_ENGAGEMENT = 'CANVAS_APP_ENGAGEMENT';
35
-    const CANVAS_APP_INSTALLS    = 'CANVAS_APP_INSTALLS';
35
+    const CANVAS_APP_INSTALLS = 'CANVAS_APP_INSTALLS';
36 36
     const EVENT_RESPONSES = 'EVENT_RESPONSES';
37 37
     const LOCAL_AWARENESS = 'LOCAL_AWARENESS';
38 38
     const MOBILE_APP_ENGAGEMENT = 'MOBILE_APP_ENGAGEMENT';
39 39
     const MOBILE_APP_INSTALLS = 'MOBILE_APP_INSTALLS';
40
-    const NONE    = 'NONE';
40
+    const NONE = 'NONE';
41 41
     const OFFER_CLAIMS    = 'OFFER_CLAIMS';
42 42
     const PAGE_LIKES = 'PAGE_LIKES';
43 43
     const POST_ENGAGEMENT = 'POST_ENGAGEMENT';
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * @method static AdObjectives getInstance()
31 31
  */
32
-class AdObjectives extends AbstractEnum
33
-{
32
+class AdObjectives extends AbstractEnum {
34 33
     const CANVAS_APP_ENGAGEMENT = 'CANVAS_APP_ENGAGEMENT';
35 34
     const CANVAS_APP_INSTALLS    = 'CANVAS_APP_INSTALLS';
36 35
     const EVENT_RESPONSES = 'EVENT_RESPONSES';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Values/OptimizationGoals.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * @method static OptimizationGoals getInstance()
31 31
  */
32
-class OptimizationGoals extends AbstractEnum
33
-{
32
+class OptimizationGoals extends AbstractEnum {
34 33
     const APP_INSTALLS = 'APP_INSTALLS';
35 34
     const ENGAGED_USERS = 'ENGAGED_USERS';
36 35
     const EVENT_RESPONSES = 'EVENT_RESPONSES';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Values/InsightsActionReportTimes.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * @method static InsightsActionReportTimes getInstance()
31 31
  */
32
-class InsightsActionReportTimes extends AbstractEnum
33
-{
32
+class InsightsActionReportTimes extends AbstractEnum {
34 33
     const CONVERSION = 'conversion';
35 34
     const IMPRESSION = 'impression';
36 35
 }
Please login to merge, or discard this patch.
src/FacebookAds/Object/ProductCatalog.php 1 patch
Braces   +12 added lines, -24 removed lines patch added patch discarded remove patch
@@ -30,23 +30,20 @@  discard block
 block discarded – undo
30 30
 use FacebookAds\Object\Fields\ProductCatalogFields;
31 31
 use FacebookAds\Object\Traits\FieldValidation;
32 32
 
33
-class ProductCatalog extends AbstractCrudObject
34
-{
33
+class ProductCatalog extends AbstractCrudObject {
35 34
     use FieldValidation;
36 35
 
37 36
     /**
38 37
      * @return string
39 38
      */
40
-    protected function getEndpoint()
41
-    {
39
+    protected function getEndpoint() {
42 40
         return 'product_catalogs';
43 41
     }
44 42
 
45 43
     /**
46 44
      * @return ProductCatalogFields
47 45
      */
48
-    public static function getFieldsEnum()
49
-    {
46
+    public static function getFieldsEnum() {
50 47
         return ProductCatalogFields::getInstance();
51 48
     }
52 49
 
@@ -56,8 +53,7 @@  discard block
 block discarded – undo
56 53
      * @return Cursor
57 54
      */
58 55
     public function getProducts(
59
-        array $fields = array(), array $params = array())
60
-    {
56
+        array $fields = array(), array $params = array()) {
61 57
         return $this->getManyByConnection(
62 58
             Product::className(), $fields, $params);
63 59
     }
@@ -68,8 +64,7 @@  discard block
 block discarded – undo
68 64
      * @return Cursor
69 65
      */
70 66
     public function getProductSets(
71
-        array $fields = array(), array $params = array())
72
-    {
67
+        array $fields = array(), array $params = array()) {
73 68
         return $this->getManyByConnection(
74 69
             ProductSet::className(), $fields, $params);
75 70
     }
@@ -80,8 +75,7 @@  discard block
 block discarded – undo
80 75
      * @return Cursor
81 76
      */
82 77
     public function getProductFeeds(
83
-        array $fields = array(), array $params = array())
84
-    {
78
+        array $fields = array(), array $params = array()) {
85 79
         return $this->getManyByConnection(
86 80
             ProductFeed::className(), $fields, $params);
87 81
     }
@@ -89,8 +83,7 @@  discard block
 block discarded – undo
89 83
     /**
90 84
      * @return array
91 85
      */
92
-    public function getExternalEventSources()
93
-    {
86
+    public function getExternalEventSources() {
94 87
         $response = $this->getApi()->call(
95 88
             '/'.$this->assureId().'/external_event_sources',
96 89
             RequestInterface::METHOD_GET);
@@ -102,8 +95,7 @@  discard block
 block discarded – undo
102 95
      * @param array $pixel_ids
103 96
      * @return bool
104 97
      */
105
-    public function setExternalEventSources(array $pixel_ids)
106
-    {
98
+    public function setExternalEventSources(array $pixel_ids) {
107 99
         return $this->modifyExternalEventSources(
108 100
             RequestInterface::METHOD_POST,
109 101
             $pixel_ids);
@@ -113,8 +105,7 @@  discard block
 block discarded – undo
113 105
      * @param array $pixel_ids
114 106
      * @return bool
115 107
      */
116
-    public function removeExternalEventSources(array $pixel_ids)
117
-    {
108
+    public function removeExternalEventSources(array $pixel_ids) {
118 109
         return $this->modifyExternalEventSources(
119 110
             RequestInterface::METHOD_DELETE,
120 111
             $pixel_ids);
@@ -125,8 +116,7 @@  discard block
 block discarded – undo
125 116
      * @param array $pixel_ids
126 117
      * @return bool
127 118
      */
128
-    protected function modifyExternalEventSources($method, array $pixel_ids)
129
-    {
119
+    protected function modifyExternalEventSources($method, array $pixel_ids) {
130 120
         $params = array(
131 121
             ProductCatalogFields::EXTERNAL_EVENT_SOURCES => $pixel_ids,
132 122
         );
@@ -143,8 +133,7 @@  discard block
 block discarded – undo
143 133
      * @param int $user_id
144 134
      * @param string $role
145 135
      */
146
-    public function addUserPermission($user_id, $role)
147
-    {
136
+    public function addUserPermission($user_id, $role) {
148 137
         $params = array(
149 138
             'user' => $user_id,
150 139
             'role' => $role,
@@ -158,8 +147,7 @@  discard block
 block discarded – undo
158 147
     /**
159 148
      * @param int $user_id
160 149
      */
161
-    public function deleteUserPermission($user_id)
162
-    {
150
+    public function deleteUserPermission($user_id) {
163 151
         $params = array(
164 152
             'user' => $user_id,
165 153
         );
Please login to merge, or discard this patch.
src/FacebookAds/Object/Fields/ProductAudienceFields.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * @method static ProductAudienceFields getInstance()
31 31
  */
32
-class ProductAudienceFields extends AbstractEnum
33
-{
32
+class ProductAudienceFields extends AbstractEnum {
34 33
     const ID = 'id';
35 34
     const NAME = 'name';
36 35
     const DESCRIPTION = 'description';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Fields/ReachFrequencyPredictionFields.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     const BUDGET = 'budget';
38 38
     const BUYING_TYPE = 'buying_type';
39 39
     const CAMPAIGN_ID = 'campaign_id';
40
-    const CAMPAIGN_TIME_START= 'campaign_time_start';
40
+    const CAMPAIGN_TIME_START = 'campaign_time_start';
41 41
     const CAMPAIGN_TIME_STOP = 'campaign_time_stop';
42 42
     const CURVE_BUDGET_REACH = 'curve_budget_reach';
43 43
     const DESTINATION_ID = 'destination_id';
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * @method static ReachFrequencyPredictionFields getInstance()
31 31
  */
32
-class ReachFrequencyPredictionFields extends AbstractEnum
33
-{
32
+class ReachFrequencyPredictionFields extends AbstractEnum {
34 33
     const ID = 'id';
35 34
     const ACCOUNT_ID = 'account_id';
36 35
     const ACTION = 'action';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Fields/ClickTrackingTagFields.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 /**
30 30
  * @method static ClickTrackingTagFields getInstance()
31 31
  */
32
-class ClickTrackingTagFields extends AbstractEnum
33
-{
32
+class ClickTrackingTagFields extends AbstractEnum {
34 33
     const ID = 'id';
35 34
     const ADD_TEMPLATE_PARAM = 'add_template_param';
36 35
     const URL = 'url';
Please login to merge, or discard this patch.