@@ -17,8 +17,8 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @inheritdoc |
| 19 | 19 | */ |
| 20 | - public function getBody($asArray = true) { |
|
| 21 | - return json_decode($this->body,$asArray); |
|
| 20 | + public function getBody($asArray = true){ |
|
| 21 | + return json_decode($this->body, $asArray); |
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | } |
| 25 | 25 | \ No newline at end of file |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @inheritdoc |
| 19 | 19 | */ |
| 20 | - public function getBody($asArray = true) { |
|
| 20 | + public function getBody($asArray = true){ |
|
| 21 | 21 | return json_decode($this->body,$asArray); |
| 22 | 22 | } |
| 23 | 23 | |
@@ -8,8 +8,8 @@ |
||
| 8 | 8 | |
| 9 | 9 | protected $message = 'Authentication Exception [%s] occurred in SDK Client. Message: %s'; |
| 10 | 10 | |
| 11 | - public function __construct($message) { |
|
| 12 | - parent::__construct(sprintf($this->message,get_called_class(),$message)); |
|
| 11 | + public function __construct($message){ |
|
| 12 | + parent::__construct(sprintf($this->message, get_called_class(), $message)); |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | } |
| 16 | 16 | \ No newline at end of file |
@@ -8,8 +8,8 @@ |
||
| 8 | 8 | |
| 9 | 9 | protected $message = 'EntryPoint Exception [%s] occurred on EntryPoint %s: %s'; |
| 10 | 10 | |
| 11 | - public function __construct($EntryPoint,$data) { |
|
| 12 | - parent::__construct(sprintf($this->message,get_called_class(),$EntryPoint,$data)); |
|
| 11 | + public function __construct($EntryPoint, $data){ |
|
| 12 | + parent::__construct(sprintf($this->message, get_called_class(), $EntryPoint, $data)); |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | } |
| 16 | 16 | \ No newline at end of file |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | protected $message = 'EntryPoint Exception [%s] occurred on EntryPoint %s: %s'; |
| 10 | 10 | |
| 11 | - public function __construct($EntryPoint,$data) { |
|
| 11 | + public function __construct($EntryPoint,$data){ |
|
| 12 | 12 | parent::__construct(sprintf($this->message,get_called_class(),$EntryPoint,$data)); |
| 13 | 13 | } |
| 14 | 14 | |
@@ -9,14 +9,14 @@ |
||
| 9 | 9 | |
| 10 | 10 | abstract class AbstractDeleteEntryPoint extends AbstractEntryPoint { |
| 11 | 11 | |
| 12 | - public function __construct($url, array $options = array()) { |
|
| 12 | + public function __construct($url, array $options = array()){ |
|
| 13 | 13 | $this->setRequest(new DELETE()); |
| 14 | 14 | parent::__construct($url, $options); |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | - public function execute($data = null) { |
|
| 17 | + public function execute($data = null){ |
|
| 18 | 18 | parent::execute($data); |
| 19 | - $this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
|
| 19 | + $this->setResponse(new JSON($this->Request->getResponse(), $this->Request->getCurlObject())); |
|
| 20 | 20 | return $this; |
| 21 | 21 | } |
| 22 | 22 | |
@@ -9,12 +9,12 @@ |
||
| 9 | 9 | |
| 10 | 10 | abstract class AbstractDeleteEntryPoint extends AbstractEntryPoint { |
| 11 | 11 | |
| 12 | - public function __construct($url, array $options = array()) { |
|
| 12 | + public function __construct($url, array $options = array()){ |
|
| 13 | 13 | $this->setRequest(new DELETE()); |
| 14 | 14 | parent::__construct($url, $options); |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | - public function execute($data = null) { |
|
| 17 | + public function execute($data = null){ |
|
| 18 | 18 | parent::execute($data); |
| 19 | 19 | $this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
| 20 | 20 | return $this; |
@@ -94,12 +94,12 @@ discard block |
||
| 94 | 94 | protected $accessToken; |
| 95 | 95 | |
| 96 | 96 | |
| 97 | - public function __construct($url,$options = array()){ |
|
| 97 | + public function __construct($url, $options = array()){ |
|
| 98 | 98 | $this->baseUrl = $url; |
| 99 | 99 | |
| 100 | - if (!empty($options)) { |
|
| 100 | + if (!empty($options)){ |
|
| 101 | 101 | $this->setOptions($options); |
| 102 | - }elseif(!$this->requiresOptions()){ |
|
| 102 | + }elseif (!$this->requiresOptions()){ |
|
| 103 | 103 | $this->configureURL(); |
| 104 | 104 | } |
| 105 | 105 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | public function setData($data){ |
| 123 | 123 | $this->Data = $data; |
| 124 | - if ($this->verifyData()) { |
|
| 124 | + if ($this->verifyData()){ |
|
| 125 | 125 | $this->Request->setBody($data); |
| 126 | 126 | } |
| 127 | 127 | return $this; |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | /** |
| 131 | 131 | * @inheritdoc |
| 132 | 132 | */ |
| 133 | - public function setAuth($accessToken) { |
|
| 133 | + public function setAuth($accessToken){ |
|
| 134 | 134 | if ($this->authRequired()){ |
| 135 | 135 | $this->accessToken = $accessToken; |
| 136 | 136 | $this->Request->addHeader('OAuth-Token', $accessToken); |
@@ -142,9 +142,9 @@ discard block |
||
| 142 | 142 | * @inheritdoc |
| 143 | 143 | * @throws InvalidURLException - When passed in URL contains $variables |
| 144 | 144 | */ |
| 145 | - public function setUrl($url) { |
|
| 145 | + public function setUrl($url){ |
|
| 146 | 146 | $this->Url = $url; |
| 147 | - if ($this->verifyUrl()) { |
|
| 147 | + if ($this->verifyUrl()){ |
|
| 148 | 148 | $this->Request->setURL($this->Url); |
| 149 | 149 | } |
| 150 | 150 | return $this; |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | /** |
| 154 | 154 | * @inheritdoc |
| 155 | 155 | */ |
| 156 | - public function setRequest(RequestInterface $Request) { |
|
| 156 | + public function setRequest(RequestInterface $Request){ |
|
| 157 | 157 | $this->Request = $Request; |
| 158 | 158 | return $this; |
| 159 | 159 | } |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | /** |
| 162 | 162 | * @inheritdoc |
| 163 | 163 | */ |
| 164 | - public function setResponse(ResponseInterface $Response) { |
|
| 164 | + public function setResponse(ResponseInterface $Response){ |
|
| 165 | 165 | $this->Response = $Response; |
| 166 | 166 | return $this; |
| 167 | 167 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * @inheritdoc |
| 171 | 171 | */ |
| 172 | - public function getModule() { |
|
| 172 | + public function getModule(){ |
|
| 173 | 173 | return $this->Module; |
| 174 | 174 | } |
| 175 | 175 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | /** |
| 216 | 216 | * @inheritdoc |
| 217 | 217 | */ |
| 218 | - public function authRequired() { |
|
| 218 | + public function authRequired(){ |
|
| 219 | 219 | return $this->_AUTH_REQUIRED; |
| 220 | 220 | } |
| 221 | 221 | |
@@ -223,8 +223,8 @@ discard block |
||
| 223 | 223 | * Override function for configuring Default Values on some EntryPoints to allow for short hand |
| 224 | 224 | */ |
| 225 | 225 | protected function configureData($data){ |
| 226 | - if (!empty($this->_REQUIRED_DATA)&&is_array($data)){ |
|
| 227 | - foreach($this->_REQUIRED_DATA as $property => $value){ |
|
| 226 | + if (!empty($this->_REQUIRED_DATA) && is_array($data)){ |
|
| 227 | + foreach ($this->_REQUIRED_DATA as $property => $value){ |
|
| 228 | 228 | if (!isset($data[$property])){ |
| 229 | 229 | $data[$property] = $value; |
| 230 | 230 | } |
@@ -240,18 +240,18 @@ discard block |
||
| 240 | 240 | */ |
| 241 | 241 | protected function configureURL(){ |
| 242 | 242 | $url = $this->_URL; |
| 243 | - if ($this->requiresOptions()) { |
|
| 243 | + if ($this->requiresOptions()){ |
|
| 244 | 244 | $urlParts = explode("/", $this->_URL); |
| 245 | 245 | $o = 0; |
| 246 | - foreach ($urlParts as $key => $part) { |
|
| 247 | - if (strpos($part, "$") !== FALSE) { |
|
| 248 | - if (isset($this->Options[$o])) { |
|
| 246 | + foreach ($urlParts as $key => $part){ |
|
| 247 | + if (strpos($part, "$")!==FALSE){ |
|
| 248 | + if (isset($this->Options[$o])){ |
|
| 249 | 249 | $urlParts[$key] = $this->Options[$o]; |
| 250 | 250 | $o++; |
| 251 | 251 | } |
| 252 | 252 | } |
| 253 | 253 | } |
| 254 | - $url = implode($urlParts,"/"); |
|
| 254 | + $url = implode($urlParts, "/"); |
|
| 255 | 255 | } |
| 256 | 256 | $url = $this->baseUrl.$url; |
| 257 | 257 | $this->setUrl($url); |
@@ -263,9 +263,9 @@ discard block |
||
| 263 | 263 | * @throws InvalidURLException |
| 264 | 264 | */ |
| 265 | 265 | protected function verifyUrl(){ |
| 266 | - $UrlArray = explode("?",$this->Url); |
|
| 267 | - if (strpos($UrlArray[0],"$") !== FALSE){ |
|
| 268 | - throw new InvalidURLException(get_called_class(),"Configured URL is ".$this->Url); |
|
| 266 | + $UrlArray = explode("?", $this->Url); |
|
| 267 | + if (strpos($UrlArray[0], "$")!==FALSE){ |
|
| 268 | + throw new InvalidURLException(get_called_class(), "Configured URL is ".$this->Url); |
|
| 269 | 269 | } |
| 270 | 270 | return true; |
| 271 | 271 | } |
@@ -276,11 +276,11 @@ discard block |
||
| 276 | 276 | * @throws RequiredOptionsException |
| 277 | 277 | */ |
| 278 | 278 | protected function verifyOptions(){ |
| 279 | - $urlVarCount = substr_count($this->_URL,"$"); |
|
| 279 | + $urlVarCount = substr_count($this->_URL, "$"); |
|
| 280 | 280 | $optionCount = 0; |
| 281 | 281 | $optionCount += count($this->Options); |
| 282 | 282 | if ($urlVarCount!==$optionCount){ |
| 283 | - throw new RequiredOptionsException(get_called_class(),"URL requires $urlVarCount options."); |
|
| 283 | + throw new RequiredOptionsException(get_called_class(), "URL requires $urlVarCount options."); |
|
| 284 | 284 | } |
| 285 | 285 | return true; |
| 286 | 286 | } |
@@ -291,20 +291,20 @@ discard block |
||
| 291 | 291 | * @throws RequiredDataException |
| 292 | 292 | */ |
| 293 | 293 | protected function verifyData(){ |
| 294 | - if (isset($this->_DATA_TYPE)||!empty($this->_DATA_TYPE)) { |
|
| 295 | - if (gettype($this->Data) !== $this->_DATA_TYPE) { |
|
| 296 | - throw new RequiredDataException(get_called_class(),"Valid DataType is {$this->_DATA_TYPE}"); |
|
| 294 | + if (isset($this->_DATA_TYPE) || !empty($this->_DATA_TYPE)){ |
|
| 295 | + if (gettype($this->Data)!==$this->_DATA_TYPE){ |
|
| 296 | + throw new RequiredDataException(get_called_class(), "Valid DataType is {$this->_DATA_TYPE}"); |
|
| 297 | 297 | } |
| 298 | 298 | } |
| 299 | 299 | if (!empty($this->_REQUIRED_DATA)){ |
| 300 | 300 | $errors = array(); |
| 301 | - foreach($this->_REQUIRED_DATA as $property => $defaultValue){ |
|
| 301 | + foreach ($this->_REQUIRED_DATA as $property => $defaultValue){ |
|
| 302 | 302 | if (!isset($this->Data[$property])){ |
| 303 | 303 | $errors[] = $property; |
| 304 | 304 | } |
| 305 | 305 | } |
| 306 | 306 | if (count($errors)>0){ |
| 307 | - throw new RequiredDataException(get_called_class(),"Missing data for $errors"); |
|
| 307 | + throw new RequiredDataException(get_called_class(), "Missing data for $errors"); |
|
| 308 | 308 | } |
| 309 | 309 | } |
| 310 | 310 | return true; |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | * @return bool |
| 316 | 316 | */ |
| 317 | 317 | protected function requiresOptions(){ |
| 318 | - return strpos($this->_URL,"$") !== FALSE?TRUE:FALSE; |
|
| 318 | + return strpos($this->_URL, "$")!==FALSE?TRUE:FALSE; |
|
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | } |
| 322 | 322 | \ No newline at end of file |
@@ -97,9 +97,9 @@ discard block |
||
| 97 | 97 | public function __construct($url,$options = array()){ |
| 98 | 98 | $this->baseUrl = $url; |
| 99 | 99 | |
| 100 | - if (!empty($options)) { |
|
| 100 | + if (!empty($options)){ |
|
| 101 | 101 | $this->setOptions($options); |
| 102 | - }elseif(!$this->requiresOptions()){ |
|
| 102 | + } elseif(!$this->requiresOptions()){ |
|
| 103 | 103 | $this->configureURL(); |
| 104 | 104 | } |
| 105 | 105 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | public function setData($data){ |
| 123 | 123 | $this->Data = $data; |
| 124 | - if ($this->verifyData()) { |
|
| 124 | + if ($this->verifyData()){ |
|
| 125 | 125 | $this->Request->setBody($data); |
| 126 | 126 | } |
| 127 | 127 | return $this; |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | /** |
| 131 | 131 | * @inheritdoc |
| 132 | 132 | */ |
| 133 | - public function setAuth($accessToken) { |
|
| 133 | + public function setAuth($accessToken){ |
|
| 134 | 134 | if ($this->authRequired()){ |
| 135 | 135 | $this->accessToken = $accessToken; |
| 136 | 136 | $this->Request->addHeader('OAuth-Token', $accessToken); |
@@ -142,9 +142,9 @@ discard block |
||
| 142 | 142 | * @inheritdoc |
| 143 | 143 | * @throws InvalidURLException - When passed in URL contains $variables |
| 144 | 144 | */ |
| 145 | - public function setUrl($url) { |
|
| 145 | + public function setUrl($url){ |
|
| 146 | 146 | $this->Url = $url; |
| 147 | - if ($this->verifyUrl()) { |
|
| 147 | + if ($this->verifyUrl()){ |
|
| 148 | 148 | $this->Request->setURL($this->Url); |
| 149 | 149 | } |
| 150 | 150 | return $this; |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | /** |
| 154 | 154 | * @inheritdoc |
| 155 | 155 | */ |
| 156 | - public function setRequest(RequestInterface $Request) { |
|
| 156 | + public function setRequest(RequestInterface $Request){ |
|
| 157 | 157 | $this->Request = $Request; |
| 158 | 158 | return $this; |
| 159 | 159 | } |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | /** |
| 162 | 162 | * @inheritdoc |
| 163 | 163 | */ |
| 164 | - public function setResponse(ResponseInterface $Response) { |
|
| 164 | + public function setResponse(ResponseInterface $Response){ |
|
| 165 | 165 | $this->Response = $Response; |
| 166 | 166 | return $this; |
| 167 | 167 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * @inheritdoc |
| 171 | 171 | */ |
| 172 | - public function getModule() { |
|
| 172 | + public function getModule(){ |
|
| 173 | 173 | return $this->Module; |
| 174 | 174 | } |
| 175 | 175 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | /** |
| 216 | 216 | * @inheritdoc |
| 217 | 217 | */ |
| 218 | - public function authRequired() { |
|
| 218 | + public function authRequired(){ |
|
| 219 | 219 | return $this->_AUTH_REQUIRED; |
| 220 | 220 | } |
| 221 | 221 | |
@@ -240,12 +240,12 @@ discard block |
||
| 240 | 240 | */ |
| 241 | 241 | protected function configureURL(){ |
| 242 | 242 | $url = $this->_URL; |
| 243 | - if ($this->requiresOptions()) { |
|
| 243 | + if ($this->requiresOptions()){ |
|
| 244 | 244 | $urlParts = explode("/", $this->_URL); |
| 245 | 245 | $o = 0; |
| 246 | - foreach ($urlParts as $key => $part) { |
|
| 247 | - if (strpos($part, "$") !== FALSE) { |
|
| 248 | - if (isset($this->Options[$o])) { |
|
| 246 | + foreach ($urlParts as $key => $part){ |
|
| 247 | + if (strpos($part, "$") !== FALSE){ |
|
| 248 | + if (isset($this->Options[$o])){ |
|
| 249 | 249 | $urlParts[$key] = $this->Options[$o]; |
| 250 | 250 | $o++; |
| 251 | 251 | } |
@@ -291,8 +291,8 @@ discard block |
||
| 291 | 291 | * @throws RequiredDataException |
| 292 | 292 | */ |
| 293 | 293 | protected function verifyData(){ |
| 294 | - if (isset($this->_DATA_TYPE)||!empty($this->_DATA_TYPE)) { |
|
| 295 | - if (gettype($this->Data) !== $this->_DATA_TYPE) { |
|
| 294 | + if (isset($this->_DATA_TYPE)||!empty($this->_DATA_TYPE)){ |
|
| 295 | + if (gettype($this->Data) !== $this->_DATA_TYPE){ |
|
| 296 | 296 | throw new RequiredDataException(get_called_class(),"Valid DataType is {$this->_DATA_TYPE}"); |
| 297 | 297 | } |
| 298 | 298 | } |
@@ -8,14 +8,14 @@ |
||
| 8 | 8 | |
| 9 | 9 | abstract class AbstractGetEntryPoint extends AbstractEntryPoint { |
| 10 | 10 | |
| 11 | - public function __construct($url, array $options = array()) { |
|
| 11 | + public function __construct($url, array $options = array()){ |
|
| 12 | 12 | $this->setRequest(new GET()); |
| 13 | 13 | parent::__construct($url, $options); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - public function execute($data = null) { |
|
| 16 | + public function execute($data = null){ |
|
| 17 | 17 | parent::execute($data); |
| 18 | - $this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
|
| 18 | + $this->setResponse(new JSON($this->Request->getResponse(), $this->Request->getCurlObject())); |
|
| 19 | 19 | return $this; |
| 20 | 20 | } |
| 21 | 21 | |
@@ -8,12 +8,12 @@ |
||
| 8 | 8 | |
| 9 | 9 | abstract class AbstractGetEntryPoint extends AbstractEntryPoint { |
| 10 | 10 | |
| 11 | - public function __construct($url, array $options = array()) { |
|
| 11 | + public function __construct($url, array $options = array()){ |
|
| 12 | 12 | $this->setRequest(new GET()); |
| 13 | 13 | parent::__construct($url, $options); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - public function execute($data = null) { |
|
| 16 | + public function execute($data = null){ |
|
| 17 | 17 | parent::execute($data); |
| 18 | 18 | $this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
| 19 | 19 | return $this; |
@@ -14,14 +14,14 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | protected $downloadDir = null; |
| 16 | 16 | |
| 17 | - public function __construct($url, array $options = array()) { |
|
| 17 | + public function __construct($url, array $options = array()){ |
|
| 18 | 18 | $this->setRequest(new GETFile()); |
| 19 | 19 | parent::__construct($url, $options); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - public function execute($data = null) { |
|
| 22 | + public function execute($data = null){ |
|
| 23 | 23 | parent::execute($data); |
| 24 | - $this->setResponse(new FileResponse($this->Request->getResponse(),$this->Request->getCurlObject(),$this->downloadDir)); |
|
| 24 | + $this->setResponse(new FileResponse($this->Request->getResponse(), $this->Request->getCurlObject(), $this->downloadDir)); |
|
| 25 | 25 | return $this; |
| 26 | 26 | } |
| 27 | 27 | |
@@ -14,12 +14,12 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | protected $downloadDir = null; |
| 16 | 16 | |
| 17 | - public function __construct($url, array $options = array()) { |
|
| 17 | + public function __construct($url, array $options = array()){ |
|
| 18 | 18 | $this->setRequest(new GETFile()); |
| 19 | 19 | parent::__construct($url, $options); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - public function execute($data = null) { |
|
| 22 | + public function execute($data = null){ |
|
| 23 | 23 | parent::execute($data); |
| 24 | 24 | $this->setResponse(new FileResponse($this->Request->getResponse(),$this->Request->getCurlObject(),$this->downloadDir)); |
| 25 | 25 | return $this; |
@@ -8,14 +8,14 @@ |
||
| 8 | 8 | |
| 9 | 9 | abstract class AbstractPutEntryPoint extends AbstractEntryPoint { |
| 10 | 10 | |
| 11 | - public function __construct($url, array $options = array()) { |
|
| 11 | + public function __construct($url, array $options = array()){ |
|
| 12 | 12 | $this->setRequest(new PUT()); |
| 13 | 13 | parent::__construct($url, $options); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - public function execute($data = null) { |
|
| 16 | + public function execute($data = null){ |
|
| 17 | 17 | parent::execute($data); |
| 18 | - $this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
|
| 18 | + $this->setResponse(new JSON($this->Request->getResponse(), $this->Request->getCurlObject())); |
|
| 19 | 19 | return $this; |
| 20 | 20 | } |
| 21 | 21 | |
@@ -8,12 +8,12 @@ |
||
| 8 | 8 | |
| 9 | 9 | abstract class AbstractPutEntryPoint extends AbstractEntryPoint { |
| 10 | 10 | |
| 11 | - public function __construct($url, array $options = array()) { |
|
| 11 | + public function __construct($url, array $options = array()){ |
|
| 12 | 12 | $this->setRequest(new PUT()); |
| 13 | 13 | parent::__construct($url, $options); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - public function execute($data = null) { |
|
| 16 | + public function execute($data = null){ |
|
| 17 | 17 | parent::execute($data); |
| 18 | 18 | $this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
| 19 | 19 | return $this; |
@@ -8,14 +8,14 @@ |
||
| 8 | 8 | |
| 9 | 9 | abstract class AbstractPostEntryPoint extends AbstractEntryPoint { |
| 10 | 10 | |
| 11 | - public function __construct($url, array $options = array()) { |
|
| 11 | + public function __construct($url, array $options = array()){ |
|
| 12 | 12 | $this->setRequest(new POST()); |
| 13 | 13 | parent::__construct($url, $options); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - public function execute($data = null) { |
|
| 16 | + public function execute($data = null){ |
|
| 17 | 17 | parent::execute($data); |
| 18 | - $this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
|
| 18 | + $this->setResponse(new JSON($this->Request->getResponse(), $this->Request->getCurlObject())); |
|
| 19 | 19 | return $this; |
| 20 | 20 | } |
| 21 | 21 | |
@@ -8,12 +8,12 @@ |
||
| 8 | 8 | |
| 9 | 9 | abstract class AbstractPostEntryPoint extends AbstractEntryPoint { |
| 10 | 10 | |
| 11 | - public function __construct($url, array $options = array()) { |
|
| 11 | + public function __construct($url, array $options = array()){ |
|
| 12 | 12 | $this->setRequest(new POST()); |
| 13 | 13 | parent::__construct($url, $options); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - public function execute($data = null) { |
|
| 16 | + public function execute($data = null){ |
|
| 17 | 17 | parent::execute($data); |
| 18 | 18 | $this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
| 19 | 19 | return $this; |