@@ -41,8 +41,8 @@ |
||
| 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 | |
@@ -31,7 +31,7 @@ |
||
| 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'; |
@@ -31,7 +31,7 @@ |
||
| 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'; |
@@ -31,7 +31,7 @@ |
||
| 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'; |
@@ -31,7 +31,7 @@ |
||
| 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 | } |
@@ -31,6 +31,6 @@ |
||
| 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 | } |
@@ -145,8 +145,7 @@ |
||
| 145 | 145 | $normalizers = new \ArrayObject(array( |
| 146 | 146 | new HashNormalizer() |
| 147 | 147 | )); |
| 148 | - } |
|
| 149 | - else { |
|
| 148 | + } else { |
|
| 150 | 149 | $normalizers = clone $this->getNormalizers(); |
| 151 | 150 | $normalizers->append(new HashNormalizer()); |
| 152 | 151 | } |
@@ -208,7 +208,7 @@ |
||
| 208 | 208 | array_merge($this->exportData(), $params)); |
| 209 | 209 | $this->clearHistory(); |
| 210 | 210 | $data = $response->getContent(); |
| 211 | - if (!isset($params['execution_options'])){ |
|
| 211 | + if (!isset($params['execution_options'])) { |
|
| 212 | 212 | $id = is_string($data) ? $data : $data[static::FIELD_ID]; |
| 213 | 213 | /** @var AbstractCrudObject $this */ |
| 214 | 214 | if ($this instanceof CanRedownloadInterface |
@@ -70,12 +70,12 @@ discard block |
||
| 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 |
||
| 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 |
@@ -152,7 +152,7 @@ |
||
| 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 |