Completed
Push — master ( 9ab091...ed74e2 )
by Alexpts
03:14
created
src/PTS/DataTransformer/ModelClosure.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public function getToDataFn()
15 15
     {
16 16
         if (!$this->toDataFn) {
17
-            $this->toDataFn = function (array $mapping, TypeConverter $typeConverter) {
17
+            $this->toDataFn = function(array $mapping, TypeConverter $typeConverter) {
18 18
                 $props = [];
19 19
 
20 20
                 foreach ($mapping as $name => $prop) {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function getFillFn()
50 50
     {
51 51
         if (!$this->fillFn) {
52
-            $this->fillFn = function (array $doc, array $mapping, TypeConverter $typeConverter) {
52
+            $this->fillFn = function(array $doc, array $mapping, TypeConverter $typeConverter) {
53 53
 
54 54
                 foreach ($doc as $name => $val) {
55 55
                     if (!array_key_exists($name, $mapping)) {
Please login to merge, or discard this patch.
src/PTS/DataTransformer/Types/BoolType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
      */
10 10
     public function toModel($value)
11 11
     {
12
-        return (bool)$value;
12
+        return (bool) $value;
13 13
     }
14 14
 
15 15
     /**
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function toStorage($value)
20 20
     {
21
-        return (bool)$value;
21
+        return (bool) $value;
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/PTS/DataTransformer/Types/FloatType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
      */
10 10
     public function toModel($value)
11 11
     {
12
-        return (float)$value;
12
+        return (float) $value;
13 13
     }
14 14
 
15 15
     /**
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function toStorage($value)
20 20
     {
21
-        return (float)$value;
21
+        return (float) $value;
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/PTS/DataTransformer/Types/IntType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
      */
10 10
     public function toModel($value)
11 11
     {
12
-        return (int)$value;
12
+        return (int) $value;
13 13
     }
14 14
 
15 15
     /**
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function toStorage($value)
20 20
     {
21
-        return (int)$value;
21
+        return (int) $value;
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/PTS/DataTransformer/Types/MongoIdType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
      */
10 10
     public function toModel(\MongoId $value)
11 11
     {
12
-        return (string)$value;
12
+        return (string) $value;
13 13
     }
14 14
 
15 15
     /**
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function toStorage($value)
20 20
     {
21
-        return new \MongoId((string)$value);
21
+        return new \MongoId((string) $value);
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/PTS/DataTransformer/Types/RefModelType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
      */
21 21
     public function toModel($value)
22 22
     {
23
-        return (string)$value;
23
+        return (string) $value;
24 24
     }
25 25
 }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
src/PTS/DataTransformer/Types/StringType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
      */
10 10
     public function toModel($value)
11 11
     {
12
-        return (string)$value;
12
+        return (string) $value;
13 13
     }
14 14
 
15 15
     /**
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function toStorage($value)
20 20
     {
21
-        return (string)$value;
21
+        return (string) $value;
22 22
     }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.