@@ -356,10 +356,10 @@ |
||
| 356 | 356 | // Whether or not is the data an array |
| 357 | 357 | $isArray = is_array($data); |
| 358 | 358 | |
| 359 | - if($isArray){ |
|
| 360 | - // implode array into string, with elements delimited by new paragraph (\r\n) |
|
| 361 | - $data = implode("\r\n", $data); |
|
| 362 | - } |
|
| 359 | + if($isArray){ |
|
| 360 | + // implode array into string, with elements delimited by new paragraph (\r\n) |
|
| 361 | + $data = implode("\r\n", $data); |
|
| 362 | + } |
|
| 363 | 363 | // Rethrow exceptions |
| 364 | 364 | try { |
| 365 | 365 | $responseArray = $this->getResponse($data); |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | // Whether or not is the data an array |
| 357 | 357 | $isArray = is_array($data); |
| 358 | 358 | |
| 359 | - if($isArray){ |
|
| 359 | + if ($isArray) { |
|
| 360 | 360 | // implode array into string, with elements delimited by new paragraph (\r\n) |
| 361 | 361 | $data = implode("\r\n", $data); |
| 362 | 362 | } |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | // Reduce array to generate translated sentenece |
| 417 | 417 | if ($isArray) { |
| 418 | 418 | if (is_array($responseArray[0])) { |
| 419 | - return array_reduce($responseArray[0], function ($carry, $item) { |
|
| 419 | + return array_reduce($responseArray[0], function($carry, $item) { |
|
| 420 | 420 | $carry[] = trim($item[0], "\r\n"); |
| 421 | 421 | |
| 422 | 422 | return $carry; |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | return $responseArray; |
| 431 | 431 | } else { |
| 432 | 432 | if (is_array($responseArray[0])) { |
| 433 | - return array_reduce($responseArray[0], function ($carry, $item) { |
|
| 433 | + return array_reduce($responseArray[0], function($carry, $item) { |
|
| 434 | 434 | $carry .= $item[0]; |
| 435 | 435 | |
| 436 | 436 | return $carry; |