@@ -14,7 +14,7 @@ discard block |
||
| 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 |
||
| 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)) { |
@@ -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 |
@@ -9,7 +9,7 @@ discard block |
||
| 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 |
||
| 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 |
@@ -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 |