@@ -56,7 +56,7 @@ |
||
56 | 56 | * @param \suda\orm\middleware\Middleware|null $middleware |
57 | 57 | * @return DataAccess |
58 | 58 | */ |
59 | - public static function new(string $object, ?Middleware $middleware = null):DataAccess |
|
59 | + public static function new(string $object, ?Middleware $middleware = null) : DataAccess |
|
60 | 60 | { |
61 | 61 | return new self($object, $middleware); |
62 | 62 | } |
@@ -178,7 +178,7 @@ |
||
178 | 178 | */ |
179 | 179 | private function inputSerialize($data) |
180 | 180 | { |
181 | - return $data === null? $data : \serialize($data); |
|
181 | + return $data === null ? $data : \serialize($data); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | public function input(string $name, $data) |
51 | 51 | { |
52 | 52 | if ($this->processor[$name] === ObjectMiddleware::SERIALIZE) { |
53 | - return $data === null? $data : \serialize($data); |
|
53 | + return $data === null ? $data : \serialize($data); |
|
54 | 54 | } |
55 | 55 | return $data; |
56 | 56 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | if ($doc = $property->getDocComment()) { |
97 | 97 | if (is_string($doc) && preg_match('/@var\s+(\w+)/i', $doc, $match)) { |
98 | 98 | $type = \strtolower($match[1]); |
99 | - if (\in_array($type, ['boolean', 'bool', 'integer', 'int' , 'float' , 'double', 'string'])) { |
|
99 | + if (\in_array($type, ['boolean', 'bool', 'integer', 'int', 'float', 'double', 'string'])) { |
|
100 | 100 | return ObjectMiddleware::RAW; |
101 | 101 | } |
102 | 102 | } |