@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
@@ -20,6 +20,6 @@ |
||
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 |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
@@ -36,7 +36,7 @@ |
||
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 |
@@ -31,6 +31,6 @@ |
||
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 |
@@ -16,7 +16,7 @@ |
||
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 |