Completed
Push — master ( cd8a43...4b8780 )
by Alexpts
02:40
created
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/MapsManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,6 +84,6 @@
 block discarded – undo
84 84
      */
85 85
     protected function getByPath($path)
86 86
     {
87
-        return (array)$this->yamlParser->parse(file_get_contents($path));
87
+        return (array) $this->yamlParser->parse(file_get_contents($path));
88 88
     }
89 89
 }
Please login to merge, or discard this patch.