Failed Conditions
Pull Request — master (#191)
by Emanuele
03:09
created
src/FacebookAds/Object/Ad.php 1 patch
Braces   +11 added lines, -22 removed lines patch added patch discarded remove patch
@@ -30,24 +30,21 @@  discard block
 block discarded – undo
30 30
 use FacebookAds\Object\Traits\FieldValidation;
31 31
 
32 32
 class Ad extends AbstractArchivableCrudObject
33
-    implements CanRedownloadInterface
34
-{
33
+    implements CanRedownloadInterface {
35 34
     use FieldValidation;
36 35
     use AdLabelAwareCrudObjectTrait;
37 36
 
38 37
     /**
39 38
      * @return string
40 39
      */
41
-    protected function getEndpoint()
42
-    {
40
+    protected function getEndpoint() {
43 41
         return 'ads';
44 42
     }
45 43
 
46 44
     /**
47 45
      * @return AdFields
48 46
      */
49
-    public static function getFieldsEnum()
50
-    {
47
+    public static function getFieldsEnum() {
51 48
         return AdFields::getInstance();
52 49
     }
53 50
 
@@ -57,8 +54,7 @@  discard block
 block discarded – undo
57 54
      * @return Cursor
58 55
      */
59 56
     public function getAdCreatives(
60
-        array $fields = array(), array $params = array())
61
-    {
57
+        array $fields = array(), array $params = array()) {
62 58
         return $this->getManyByConnection(
63 59
             AdCreative::className(), $fields, $params);
64 60
     }
@@ -68,8 +64,7 @@  discard block
 block discarded – undo
68 64
      * @param array $params
69 65
      * @return Cursor
70 66
      */
71
-    public function getLeads(array $fields = array(), array $params = array())
72
-    {
67
+    public function getLeads(array $fields = array(), array $params = array()) {
73 68
         return $this->getManyByConnection(Lead::className(), $fields, $params);
74 69
     }
75 70
 
@@ -79,8 +74,7 @@  discard block
 block discarded – undo
79 74
      * @return TargetingDescription
80 75
      */
81 76
     public function getTargetingDescription(
82
-        array $fields = array(), array $params = array())
83
-    {
77
+        array $fields = array(), array $params = array()) {
84 78
         return $this->getOneByConnection(
85 79
             TargetingDescription::className(),
86 80
             $fields,
@@ -95,8 +89,7 @@  discard block
 block discarded – undo
95 89
      * @return Cursor
96 90
      */
97 91
     public function getAdPreviews(
98
-        array $fields = array(), array $params = array())
99
-    {
92
+        array $fields = array(), array $params = array()) {
100 93
         return $this->getManyByConnection(
101 94
             AdPreview::className(), $fields, $params, 'previews');
102 95
     }
@@ -107,8 +100,7 @@  discard block
 block discarded – undo
107 100
      * @return ReachEstimate
108 101
      */
109 102
     public function getReachEstimate(
110
-        array $fields = array(), array $params = array())
111
-    {
103
+        array $fields = array(), array $params = array()) {
112 104
         return $this->getOneByConnection(
113 105
             ReachEstimate::className(), $fields, $params, 'reachestimate');
114 106
     }
@@ -119,8 +111,7 @@  discard block
 block discarded – undo
119 111
      * @return Cursor
120 112
      */
121 113
     public function getClickTrackingTag(
122
-        array $fields = array(), array $params = array())
123
-    {
114
+        array $fields = array(), array $params = array()) {
124 115
         return $this->getManyByConnection(
125 116
             ClickTrackingTag::className(), $fields, $params, 'trackingtag');
126 117
     }
@@ -131,8 +122,7 @@  discard block
 block discarded – undo
131 122
      * @return Cursor
132 123
      */
133 124
     public function getInsights(
134
-        array $fields = array(), array $params = array())
135
-    {
125
+        array $fields = array(), array $params = array()) {
136 126
         return $this->getManyByConnection(
137 127
             Insights::classname(), $fields, $params, 'insights');
138 128
     }
@@ -143,8 +133,7 @@  discard block
 block discarded – undo
143 133
      * @return AsyncJobInsights
144 134
      */
145 135
     public function getInsightsAsync(
146
-        array $fields = array(), array $params = array())
147
-    {
136
+        array $fields = array(), array $params = array()) {
148 137
         return $this->createAsyncJob(
149 138
             AsyncJobInsights::className(), $fields, $params);
150 139
     }
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 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 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.
src/FacebookAds/Object/Fields/AsyncJobFields.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 AsyncJobFields getInstance()
31 31
  */
32
-class AsyncJobFields extends AbstractEnum
33
-{
32
+class AsyncJobFields extends AbstractEnum {
34 33
     const ASYNC_PERCENT_COMPLETITION = 'async_percent_completion';
35 34
     const EXPORT_COLUMNS = 'export_columns';
36 35
     const FORMAT = 'format';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Fields/ProductFeedUploadErrorSampleFields.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 ProductFeedUploadErrorSampleFields getInstance()
31 31
  */
32
-class ProductFeedUploadErrorSampleFields extends AbstractEnum
33
-{
32
+class ProductFeedUploadErrorSampleFields extends AbstractEnum {
34 33
     const ID = 'id';
35 34
     const RETAILER_ID = 'retailer_id';
36 35
     const ROW_NUMBER = 'row_number';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Fields/VideoThumbnailFields.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 VideoThumbnailFields getInstance()
31 31
  */
32
-class VideoThumbnailFields extends AbstractEnum
33
-{
32
+class VideoThumbnailFields extends AbstractEnum {
34 33
     const HEIGHT = 'height';
35 34
     const ID = 'id';
36 35
     const IS_PREFERRED = 'is_preferred';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Fields/AdVideoFields.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 AdVideoFields getInstance()
31 31
  */
32
-class AdVideoFields extends AbstractEnum
33
-{
32
+class AdVideoFields extends AbstractEnum {
34 33
     const CREATED_TIME = 'created_time';
35 34
     const DESCRIPTION = 'description';
36 35
     const EMBED_HTML = 'embed_html';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Fields/AdAccountGroupFields.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 AdAccountGroupFields getInstance()
31 31
  */
32
-class AdAccountGroupFields extends AbstractEnum
33
-{
32
+class AdAccountGroupFields extends AbstractEnum {
34 33
     const ID = 'id';
35 34
     const ACCOUNT_GROUP_ID = 'account_group_id';
36 35
     const NAME = 'name';
Please login to merge, or discard this patch.