Passed
Push — develop ( 0f2e57...ece4b2 )
by Martin
03:19
created
src/MartinGeorgiev/Utils/DataStructure.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/MartinGeorgiev/Doctrine/DBAL/Types/AbstractTypeArray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             $item = $this->transformArrayItemForPostgres($item);
44 44
         }
45 45
         
46
-        return '{'.join(',', $phpArray).'}';
46
+        return '{' . join(',', $phpArray) . '}';
47 47
     }
48 48
     
49 49
     /**
Please login to merge, or discard this patch.