Skip to content

Commit

Permalink
Comment unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardomozart authored Feb 3, 2025
1 parent 590d3f9 commit 990322f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions inc/provider.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -660,15 +660,15 @@ static function dropdownType($name, $options = []) {
*
* @return string
* */
static function getHistoryEntry($data) {
/* static function getHistoryEntry($data) {
switch ($data['linked_action'] - Log::HISTORY_PLUGIN) {

Check failure on line 665 in inc/provider.class.php

View workflow job for this annotation

GitHub Actions / lint

Line indented incorrectly; expected 3 spaces, found 6
case 0:

Check failure on line 666 in inc/provider.class.php

View workflow job for this annotation

GitHub Actions / lint

Line indented incorrectly; expected 3 spaces, found 9
return __('History from plugin example', 'example');

Check failure on line 667 in inc/provider.class.php

View workflow job for this annotation

GitHub Actions / lint

Line indented incorrectly; expected 3 spaces, found 12
}

Check failure on line 668 in inc/provider.class.php

View workflow job for this annotation

GitHub Actions / lint

Line indented incorrectly; expected 3 spaces, found 6
return '';

Check failure on line 670 in inc/provider.class.php

View workflow job for this annotation

GitHub Actions / lint

Line indented incorrectly; expected 3 spaces, found 6
}
} */

//////////////////////////////
////// SPECIFIC MODIF MASSIVE FUNCTIONS ///////
Expand All @@ -678,22 +678,22 @@ static function getHistoryEntry($data) {
*
* @see CommonDBTM::getSpecificMassiveActions()
* */
function getSpecificMassiveActions($checkitem = null) {
/* function getSpecificMassiveActions($checkitem = null) {
$actions = parent::getSpecificMassiveActions($checkitem);

Check failure on line 683 in inc/provider.class.php

View workflow job for this annotation

GitHub Actions / lint

Line indented incorrectly; expected 3 spaces, found 6
$actions['Document_Item' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add'] = _x('button', 'Add a document'); // GLPI core one

Check failure on line 685 in inc/provider.class.php

View workflow job for this annotation

GitHub Actions / lint

Line indented incorrectly; expected 3 spaces, found 6
$actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'do_nothing'] = __('Do Nothing - just for fun', 'example'); // Specific one

Check failure on line 686 in inc/provider.class.php

View workflow job for this annotation

GitHub Actions / lint

Line indented incorrectly; expected 3 spaces, found 6
return $actions;

Check failure on line 688 in inc/provider.class.php

View workflow job for this annotation

GitHub Actions / lint

Line indented incorrectly; expected 3 spaces, found 6
}
} */

/**
* @since version 0.85
*
* @see CommonDBTM::showMassiveActionsSubForm()
* */
static function showMassiveActionsSubForm(MassiveAction $ma) {
/* static function showMassiveActionsSubForm(MassiveAction $ma) {
switch ($ma->getAction()) {

Check failure on line 698 in inc/provider.class.php

View workflow job for this annotation

GitHub Actions / lint

Line indented incorrectly; expected 3 spaces, found 6
case 'DoIt':
Expand All @@ -704,14 +704,14 @@ static function showMassiveActionsSubForm(MassiveAction $ma) {
return true;
}
return parent::showMassiveActionsSubForm($ma);
}
} */

/**
* @since version 0.85
*
* @see CommonDBTM::processMassiveActionsForOneItemtype()
* */
static function processMassiveActionsForOneItemtype(MassiveAction $ma, CommonDBTM $item, array $ids) {
/* static function processMassiveActionsForOneItemtype(MassiveAction $ma, CommonDBTM $item, array $ids) {
global $DB;
switch ($ma->getAction()) {
Expand Down Expand Up @@ -755,7 +755,7 @@ static function processMassiveActionsForOneItemtype(MassiveAction $ma, CommonDBT
return;
}
parent::processMassiveActionsForOneItemtype($ma, $item, $ids);
}
} */

static function getIcon() {
return "fas fa-user-lock";
Expand Down

0 comments on commit 990322f

Please sign in to comment.