Skip to content

Commit

Permalink
fix: php lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ccailly authored and btry committed Aug 30, 2024
1 parent aab508d commit aa12610
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
9 changes: 3 additions & 6 deletions install/upgrade_to_2.13.10.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,14 @@ class PluginFormcreatorUpgradeTo2_13_10
/** @var Migration */
protected $migration;

public function isResyncIssuesRequired()
{
public function isResyncIssuesRequired() {
return false;
}

/**
* @param Migration $migration
*/
public function upgrade(Migration $migration)
{
public function upgrade(Migration $migration) {
$this->migration = $migration;
$this->resizeWidgets();
}
Expand All @@ -58,8 +56,7 @@ public function upgrade(Migration $migration)
*
* @return void
*/
public function resizeWidgets()
{
public function resizeWidgets() {
// Get container
$dashboard = new Dashboard();
$found = $dashboard->getFromDB("plugin_formcreator_issue_counters");
Expand Down
12 changes: 4 additions & 8 deletions install/upgrade_to_2.13.7.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,14 @@ class PluginFormcreatorUpgradeTo2_13_7
/** @var Migration */
protected $migration;

public function isResyncIssuesRequired()
{
public function isResyncIssuesRequired() {
return false;
}

/**
* @param Migration $migration
*/
public function upgrade(Migration $migration)
{
public function upgrade(Migration $migration) {
$this->migration = $migration;
$this->fixEncodingInQuestions();
$this->resizeWidgets();
Expand All @@ -61,8 +59,7 @@ public function upgrade(Migration $migration)
*
* @return void
*/
public function fixEncodingInQuestions()
{
public function fixEncodingInQuestions() {
global $DB;

$table = 'glpi_plugin_formcreator_questions';
Expand Down Expand Up @@ -99,8 +96,7 @@ public function fixEncodingInQuestions()
*
* @return void
*/
public function resizeWidgets()
{
public function resizeWidgets() {
// Get container
$dashboard = new Dashboard();
$found = $dashboard->getFromDB("plugin_formcreator_issue_counters");
Expand Down

0 comments on commit aa12610

Please sign in to comment.