Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lainow committed Jun 12, 2024
1 parent 5587069 commit 0769e1d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions inc/model.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -826,30 +826,30 @@ public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $
if ($item->getType() == __CLASS__ && $item instanceof self) {
switch ($tabnum) {
case 1:
$item->showAdvancedForm($item->getID()); /** @phpstan-ignore-line */
$item->showAdvancedForm($item->getID());
break;

case 3:
$options['confirm'] = 'creation';
$options['models_id'] = $item->fields['id']; /** @phpstan-ignore-line */
$options['models_id'] = $item->fields['id'];
$options['add_form'] = true;
$options['submit'] = __('Load this file', 'datainjection');
PluginDatainjectionClientInjection::showUploadFileForm($options);
break;

case 4:
PluginDatainjectionMapping::showFormMappings($item);/** @phpstan-ignore-line */
PluginDatainjectionMapping::showFormMappings($item);
break;

case 5:
if ($item->fields['step'] > self::MAPPING_STEP) { /** @phpstan-ignore-line */
PluginDatainjectionInfo::showFormInfos($item);/** @phpstan-ignore-line */
if ($item->fields['step'] > self::MAPPING_STEP) {
PluginDatainjectionInfo::showFormInfos($item);
}
break;

case 6:
if ($item->fields['step'] > self::MAPPING_STEP) { /** @phpstan-ignore-line */
$item->showValidationForm(); /** @phpstan-ignore-line */
if ($item->fields['step'] > self::MAPPING_STEP) {
$item->showValidationForm();
}
break;
}
Expand Down

0 comments on commit 0769e1d

Please sign in to comment.