Completed
Pull Request — master (#423)
by Philipp
13:16
created
src/FacebookAds/Object/TargetingSearch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
    */
42 42
   public static function search(
43 43
     $type,
44
-    $class=null,
45
-    $query=null,
44
+    $class = null,
45
+    $query = null,
46 46
     array $params = array(),
47 47
     Api $api = null) {
48 48
 
Please login to merge, or discard this patch.
src/FacebookAds/Object/Values/AppRoles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
  */
32 32
 class AppRoles extends AbstractEnum {
33 33
 
34
-  const ADMINISTRATOR  = 'ADMINISTRATOR';
34
+  const ADMINISTRATOR = 'ADMINISTRATOR';
35 35
   const DEVELOPER = 'DEVELOPER';
36 36
   const TESTER = 'TESTER';
37 37
   const INSIGHTS_USER = 'INSIGHTS_USER';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Values/FeedEncoding.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
  */
32 32
 class FeedEncoding extends AbstractEnum {
33 33
 
34
-  const AUTODETECT  = 'AUTODETECT';
34
+  const AUTODETECT = 'AUTODETECT';
35 35
   const ASCII = 'ASCII';
36 36
   const UTF_8 = 'UTF_8';
37 37
   const UTF_16 = 'UTF_16';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Values/PageRoles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
  */
32 32
 class PageRoles extends AbstractEnum {
33 33
 
34
-  const ADVERTISER  = 'ADVERTISER';
34
+  const ADVERTISER = 'ADVERTISER';
35 35
   const CONTENT_CREATOR = 'CONTENT_CREATOR';
36 36
   const MANAGER = 'MANAGER';
37 37
   const MODERATOR = 'MODERATOR';
Please login to merge, or discard this patch.
src/FacebookAds/Object/Values/TermsOfService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
  */
32 32
 class TermsOfService extends AbstractEnum {
33 33
 
34
-  const CUSTOM_AUDIENCE  = 'custom_audience';
34
+  const CUSTOM_AUDIENCE = 'custom_audience';
35 35
   const WEBSITE_CUSTOM_AUDIENCE = 'website_custom_audience';
36 36
   const MOBILE_APP_CUSTOM_AUDIENCE = 'mobile_app_custom_audience';
37 37
 }
Please login to merge, or discard this patch.
src/FacebookAds/Object/Values/UserPermissionRoles.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
31 31
  */
32 32
 class UserPermissionRoles extends AbstractEnum {
33 33
 
34
-  const ADMIN  = 'ADMIN';
35
-  const EMPLOYEE  = 'EMPLOYEE';
34
+  const ADMIN = 'ADMIN';
35
+  const EMPLOYEE = 'EMPLOYEE';
36 36
 }
Please login to merge, or discard this patch.
src/FacebookAds/Logger/CurlLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
     }
153 153
     foreach ($params->export() as $name => $value) {
154 154
       if ($is_file && $params->offsetGet($name) instanceof FileParameter) {
155
-        $value = "@" . $this->normalizeFileParam($params->offsetGet($name));
155
+        $value = "@".$this->normalizeFileParam($params->offsetGet($name));
156 156
       } else {
157 157
         $value = addcslashes(
158 158
           strpos($value, "\n") !== false
Please login to merge, or discard this patch.
src/FacebookAds/Object/AbstractCrudObject.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
       }
71 71
       throw new \InvalidArgumentException(
72 72
         'Object ID must be an integer or integer string but was passed "'
73
-        .(string)$id.'" ('.gettype($id).').'.(string)$extra_message);
73
+        .(string) $id.'" ('.gettype($id).').'.(string) $extra_message);
74 74
     }
75 75
     $this->data[static::FIELD_ID] = $id;
76 76
 
77 77
     if (!is_null($parent_id)) {
78
-      $warning_message = "\$parent_id as a parameter of constructor is being " .
78
+      $warning_message = "\$parent_id as a parameter of constructor is being ".
79 79
         "deprecated, please try not to use this in new code.\n";
80 80
       error_log($warning_message);
81 81
     }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
       array_merge($this->exportData(), $params));
236 236
     $this->clearHistory();
237 237
     $data = $response->getContent();
238
-    if (!isset($params['execution_options'])){
238
+    if (!isset($params['execution_options'])) {
239 239
       $id = is_string($data) ? $data : $data[static::FIELD_ID];
240 240
     /** @var AbstractCrudObject $this */
241 241
       if ($this instanceof CanRedownloadInterface
Please login to merge, or discard this patch.