@@ -66,8 +66,9 @@ |
||
| 66 | 66 | */ |
| 67 | 67 | public function setPedidos($pedidos) |
| 68 | 68 | { |
| 69 | - foreach ($pedidos as $pedido) |
|
| 70 | - $this->pedidos[] = SerializerHelper::denormalize($pedido, Pedido::class); |
|
| 69 | + foreach ($pedidos as $pedido) { |
|
| 70 | + $this->pedidos[] = SerializerHelper::denormalize($pedido, Pedido::class); |
|
| 71 | + } |
|
| 71 | 72 | |
| 72 | 73 | return $this; |
| 73 | 74 | } |
@@ -21,8 +21,9 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public static function getInstance(array $params, Client $client = null) |
| 23 | 23 | { |
| 24 | - if(!isset($params[ControlPayParameterConst::CONTROLPAY_OAUTH_TYPE])) |
|
| 25 | - throw new \Exception("Tipo de autenticação não especificado"); |
|
| 24 | + if(!isset($params[ControlPayParameterConst::CONTROLPAY_OAUTH_TYPE])) { |
|
| 25 | + throw new \Exception("Tipo de autenticação não especificado"); |
|
| 26 | + } |
|
| 26 | 27 | |
| 27 | 28 | switch ($params[ControlPayParameterConst::CONTROLPAY_OAUTH_TYPE]) |
| 28 | 29 | { |