Failed Conditions
Pull Request — master (#191)
by Emanuele
03:09
created
src/FacebookAds/Object/Values/AppRoles.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 AppRoles getInstance()
31 31
  */
32
-class AppRoles extends AbstractEnum
33
-{
32
+class AppRoles extends AbstractEnum {
34 33
     const ADMINISTRATOR    = 'ADMINISTRATOR';
35 34
     const DEVELOPER = 'DEVELOPER';
36 35
     const TESTER = 'TESTER';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Values/InsightsBreakdowns.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 InsightsBreakdowns getInstance()
31 31
  */
32
-class InsightsBreakdowns extends AbstractEnum
33
-{
32
+class InsightsBreakdowns extends AbstractEnum {
34 33
     const AGE = 'age';
35 34
     const COUNTRY = 'country';
36 35
     const GENDER = 'gender';
Please login to merge, or discard this patch.
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 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 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/AdVideo.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,28 +30,24 @@  discard block
 block discarded – undo
30 30
 use FacebookAds\Object\Traits\CannotUpdate;
31 31
 use FacebookAds\Object\Traits\FieldValidation;
32 32
 
33
-class AdVideo extends AbstractCrudObject
34
-{
33
+class AdVideo 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 'advideos';
43 41
     }
44 42
 
45 43
     /**
46 44
      * @return AdVideoFields
47 45
      */
48
-    public static function getFieldsEnum()
49
-    {
46
+    public static function getFieldsEnum() {
50 47
         return AdVideoFields::getInstance();
51 48
     }
52 49
 
53
-    public function create(array $params = array())
54
-    {
50
+    public function create(array $params = array()) {
55 51
         $data = $this->exportData();
56 52
         $source = null;
57 53
         if (array_key_exists(AdVideoFields::SOURCE, $data)) {
@@ -85,8 +81,7 @@  discard block
 block discarded – undo
85 81
      * @return Cursor
86 82
      */
87 83
     public function getVideoThumbnails(
88
-        array $fields = array(), array $params = array())
89
-    {
84
+        array $fields = array(), array $params = array()) {
90 85
         return $this->getManyByConnection(
91 86
             VideoThumbnail::className(), $fields, $params, 'thumbnails');
92 87
     }
Please login to merge, or discard this patch.