Completed
Push — master ( 5724f6...93ca06 )
by Alexpts
02:09
created
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/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.
src/PTS/DataTransformer/ModelClosure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @return \Closure
37 37
      */
38 38
     protected function createDataFn() {
39
-        return function (array $mapping, DataTransformer $transformer) {
39
+        return function(array $mapping, DataTransformer $transformer) {
40 40
             $typeConverter = $transformer->getConverter();
41 41
             $props = [];
42 42
 
Please login to merge, or discard this patch.
src/PTS/DataTransformer/Types/RefModelsToArrayStringIdType.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,6 +31,6 @@
 block discarded – undo
31 31
      */
32 32
     public function toModel($value)
33 33
     {
34
-       return array_map('strval', $value);
34
+        return array_map('strval', $value);
35 35
     }
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     {
17 17
         $newValue = [];
18 18
         foreach ($value as $model) {
19
-            $relId = is_object($model) ? $model->getId() : (string)$model;
19
+            $relId = is_object($model) ? $model->getId() : (string) $model;
20 20
             $newValue[] = $relId;
21 21
         }
22 22
 
Please login to merge, or discard this patch.