Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #364

Merged
merged 2 commits into from
Jan 3, 2024
Merged

Dev #364

merged 2 commits into from
Jan 3, 2024

Conversation

henrystivens
Copy link
Member

No description provided.

Copy link

sonarcloud bot commented Jan 3, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@@ -40,7 +40,7 @@ public static function create(object $model, string $action = ''): void
$pk = $model->primary_key[0];
echo '<input id="', $model_name, '_', $pk, '" name="', $model_name, '[', $pk, ']" class="id" value="', $model->$pk , '" type="hidden">' , PHP_EOL;

$fields = array_diff($model->fields, [$model->_at, $model->_in, $model->primary_key]);
$fields = array_diff($model->fields, array_merge($model->_at, $model->_in, $model->primary_key));
Copy link
Member

@joanhey joanhey Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posiblemente mejor usar Spread Operator.
[...$model->_at, ...$model->_in, ...$model->primary_key]

Es una estructura del lenguaje en vez de una llamada a la función.

@joanhey joanhey merged commit 91b1556 into KumbiaPHP:dev Jan 3, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants