Completed
Push — master ( e71287...84d0dd )
by Alexpts
204:14 queued 201:54
created
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
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.
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
 }
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 toData($value)
20 20
     {
21
-        return (bool)$value;
21
+        return (bool) $value;
22 22
     }
23 23
 }
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 toData($value)
20 20
     {
21
-        return (float)$value;
21
+        return (float) $value;
22 22
     }
23 23
 }
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 toData($value)
20 20
     {
21
-        return (int)$value;
21
+        return (int) $value;
22 22
     }
23 23
 }
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
 }
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 toData($value)
20 20
     {
21
-        return (string)$value;
21
+        return (string) $value;
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/PTS/DataTransformer/TypeConverter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      * @param DataTransformer $transformer
40 40
      * @return mixed
41 41
      */
42
-    protected function convert($direction, $val, PropRule $propRule, DataTransformer $transformer){
42
+    protected function convert($direction, $val, PropRule $propRule, DataTransformer $transformer) {
43 43
         list($type, $isCollection) = $this->getType($propRule);
44 44
         if (!$isCollection) {
45 45
             return $type->{$direction}($val, $propRule, $transformer);
Please login to merge, or discard this patch.