Skip to content

Commit 81131a6

Browse files
committed
Update ezSchema.php
1 parent 506aa54 commit 81131a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared/ezSchema.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function __call($type, $args)
111111
// check for string data type
112112
$numberOrString = $args[0];
113113
$store = \is_int($numberOrString) ? '('.$numberOrString.')' : '';
114-
$store = empty($store) && !empty($numberOrString) ? $numberOrString : $store;
114+
$store = empty($store) && !empty($numberOrString) ? ' '.$numberOrString : $store;
115115
$value = !empty($args[1]) ? ' '.$args[1] : '';
116116
$options = !empty($args[2]) ? ' '.$args[2] : '';
117117
$extra = !empty($args[3]) ? ' '.$args[3] : '';
@@ -128,7 +128,7 @@ public function __call($type, $args)
128128
// check for numeric data type
129129
$numberOrString = $args[0];
130130
$store = \is_int($numberOrString) ? '('.$numberOrString.')' : '';
131-
$store = empty($store) && !empty($numberOrString) ? $numberOrString : $store;
131+
$store = empty($store) && !empty($numberOrString) ? ' '.$numberOrString : $store;
132132
$value = !empty($args[1]) ? ' '.$args[1] : '';
133133
$options = !empty($args[2]) ? ' '.$args[2] : '';
134134
$extra = !empty($args[3]) ? ' '.$args[3] : '';
@@ -137,7 +137,7 @@ public function __call($type, $args)
137137
// check for date time data type
138138
$numberOrString = $args[0];
139139
$store = \is_int($numberOrString) ? '('.$numberOrString.')' : '';
140-
$fraction = empty($store) && !empty($numberOrString) ? $numberOrString : $store;
140+
$fraction = empty($store) && !empty($numberOrString) ? ' '.$numberOrString : $store;
141141
$value = !empty($args[1]) ? ' '.$args[1] : '';
142142
$options = !empty($args[2]) ? ' '.$args[2] : '';
143143
$data = $type.$fraction.$value.$options;

0 commit comments

Comments
 (0)