@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public static function transformPostgresTextArrayToPHPArray($postgresArray) |
| 21 | 21 | { |
| 22 | - $transform = function ($textArrayToTransform) use (&$transform) { |
|
| 22 | + $transform = function($textArrayToTransform) use (&$transform) { |
|
| 23 | 23 | $phpArray = str_getcsv(trim($textArrayToTransform, '{}')); |
| 24 | 24 | foreach ($phpArray as $i => $text) { |
| 25 | 25 | if ($text === null) { |
@@ -27,13 +27,13 @@ discard block |
||
| 27 | 27 | break; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - $isInteger = is_numeric($text) && ''.intval($text) === $text; |
|
| 30 | + $isInteger = is_numeric($text) && '' . intval($text) === $text; |
|
| 31 | 31 | if ($isInteger) { |
| 32 | 32 | $phpArray[$i] = (int)$text; |
| 33 | 33 | continue; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - $isFloat = is_numeric($text) && ''.floatval($text) === $text; |
|
| 36 | + $isFloat = is_numeric($text) && '' . floatval($text) === $text; |
|
| 37 | 37 | if ($isFloat) { |
| 38 | 38 | $phpArray[$i] = (float)$text; |
| 39 | 39 | continue; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public static function transformPHPArrayToPostgresTextArray(array $phpArray) |
| 59 | 59 | { |
| 60 | - $transform = function (array $phpArrayToTransform) use (&$transform) { |
|
| 60 | + $transform = function(array $phpArrayToTransform) use (&$transform) { |
|
| 61 | 61 | $result = []; |
| 62 | 62 | foreach ($phpArrayToTransform as $text) { |
| 63 | 63 | if (is_array($text)) { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $item = $this->transformArrayItemForPostgres($item); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - return '{'.join(',', $phpArray).'}'; |
|
| 46 | + return '{' . join(',', $phpArray) . '}'; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |