mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 03:38:40 +00:00
update
This commit is contained in:
parent
3a621e6309
commit
cb2861eae8
|
|
@ -285,7 +285,8 @@ foreach ($modules as $module) {
|
|||
foreach ($create as $c) {
|
||||
$nUpdate1 = \str_replace(['Create', 'Add'], 'Update', $c);
|
||||
$nUpdate2 = \str_replace(['Create', 'Add'], 'Change', $c);
|
||||
if (!\in_array($nUpdate1, $update) && !\in_array($nUpdate2, $update)) {
|
||||
$nUpdate3 = \str_replace(['Create', 'Add'], 'Set', $c);
|
||||
if (!\in_array($nUpdate1, $update) && !\in_array($nUpdate2, $update) && !\in_array($nUpdate3, $update)) {
|
||||
$missing[] = $nUpdate1;
|
||||
|
||||
$modelName = \str_replace(['api', 'Update', 'Change', 'Set', 'Remove', 'Delete', 'Create', 'Add'], '', $c);
|
||||
|
|
@ -350,7 +351,8 @@ foreach ($modules as $module) {
|
|||
|
||||
$nUpdate1 = \str_replace(['Delete', 'Remove'], 'Update', $d);
|
||||
$nUpdate2 = \str_replace(['Delete', 'Remove'], 'Change', $d);
|
||||
if (!\in_array($nUpdate1, $update) && !\in_array($nUpdate2, $update)) {
|
||||
$nUpdate3 = \str_replace(['Delete', 'Remove'], 'Set', $d);
|
||||
if (!\in_array($nUpdate1, $update) && !\in_array($nUpdate2, $update) && !\in_array($nUpdate3, $update)) {
|
||||
$missing[] = $nUpdate1;
|
||||
|
||||
$modelName = \str_replace(['api', 'Update', 'Change', 'Set', 'Remove', 'Delete', 'Create', 'Add'], '', $d);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user