More work
This commit is contained in:
@@ -28,12 +28,17 @@ class SchemaItem
|
||||
|
||||
$this->type = Schema::mergeTypes($this->type, $type);
|
||||
|
||||
if (str_contains($this->type, "[]") && !is_null($this->elements)) {
|
||||
foreach ($value as $element) {
|
||||
if (!in_array($element, $this->elements)) {
|
||||
$this->elements[] = $element;
|
||||
if (!!is_null($this->elements)) {
|
||||
if (str_contains($this->type, "[]")) {
|
||||
foreach ($value as $element) {
|
||||
if (!in_array($element, $this->elements)) {
|
||||
$this->elements[] = $element;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!in_array($value, $this->elements)) {
|
||||
$this->elements[] = $value;
|
||||
}
|
||||
|
||||
if (count($this->elements) > 20) {
|
||||
$this->elements = null;
|
||||
@@ -64,5 +69,4 @@ class SchemaItem
|
||||
return $rows;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user