Skip to content

Commit

Permalink
More tabs reverted to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
trp89 committed Dec 19, 2024
1 parent 2a077e0 commit 24abf23
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions InlineHtmlGalleySettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,55 +20,55 @@

class InlineHtmlGalleySettingsForm extends Form {

/** @var $plugin InlineHtmlGalleyPlugin */
var $plugin;
/** @var $plugin InlineHtmlGalleyPlugin */
var $plugin;

/** @var $contextId int */
var $contextId;
/** @var $contextId int */
var $contextId;

/**
* Constructor
* @param $plugin InlineHtmlGalleyPlugin
* @param $contextId int
*/
function __construct($plugin, $contextId) {
$this->plugin = $plugin;
$this->contextId = $contextId;
/**
* Constructor
* @param $plugin InlineHtmlGalleyPlugin
* @param $contextId int
*/
function __construct($plugin, $contextId) {
$this->plugin = $plugin;
$this->contextId = $contextId;

parent::__construct(method_exists($plugin, 'getTemplateResource') ? $plugin->getTemplateResource('settingsForm.tpl') : $plugin->getTemplatePath() . 'settingsForm.tpl');
parent::__construct(method_exists($plugin, 'getTemplateResource') ? $plugin->getTemplateResource('settingsForm.tpl') : $plugin->getTemplatePath() . 'settingsForm.tpl');

$this->addCheck(new FormValidatorPost($this));
$this->addCheck(new FormValidatorCSRF($this));
}
$this->addCheck(new FormValidatorPost($this));
$this->addCheck(new FormValidatorCSRF($this));
}

/**
* @copydoc Form::initData()
*/
function initData() {
$this->setData('xpath', $this->plugin->getSetting($this->contextId, 'xpath'));
}
/**
* @copydoc Form::initData()
*/
function initData() {
$this->setData('xpath', $this->plugin->getSetting($this->contextId, 'xpath'));
}

/**
* @copydoc Form::readInputData()
*/
function readInputData() {
$this->readUserVars(array('xpath'));
}
/**
* @copydoc Form::readInputData()
*/
function readInputData() {
$this->readUserVars(array('xpath'));
}

/**
* @copydoc Form::fetch()
*/
function fetch($request, $template = null, $display = false) {
$templateMgr = TemplateManager::getManager($request);
$templateMgr->assign('pluginName', $this->plugin->getName());
/**
* @copydoc Form::fetch()
*/
function fetch($request, $template = null, $display = false) {
$templateMgr = TemplateManager::getManager($request);
$templateMgr->assign('pluginName', $this->plugin->getName());

return parent::fetch($request, $template, $display);
}
return parent::fetch($request, $template, $display);
}

/**
* @copydoc Form::execute()
*/
function execute(...$functionArgs) {
$this->plugin->updateSetting($this->contextId, 'xpath', $this->getData('xpath'));
}
/**
* @copydoc Form::execute()
*/
function execute(...$functionArgs) {
$this->plugin->updateSetting($this->contextId, 'xpath', $this->getData('xpath'));
}
}

0 comments on commit 24abf23

Please # to comment.