fix PSR12 CS
This commit is contained in:
parent
66a0caa6c1
commit
57722643b8
11 changed files with 35 additions and 35 deletions
|
@ -52,4 +52,4 @@ class packmanBehaviors
|
||||||
&& isset($params['p'])
|
&& isset($params['p'])
|
||||||
&& $params['p'] == 'pacKman';
|
&& $params['p'] == 'pacKman';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,4 +119,4 @@ __('Remove comments from files') . '</label></p>
|
||||||
form::checkbox('packman_pack_fixnewline', 1, $packman_pack_fixnewline) . ' ' .
|
form::checkbox('packman_pack_fixnewline', 1, $packman_pack_fixnewline) . ' ' .
|
||||||
__('Fix newline style from files content') . '</label></p>
|
__('Fix newline style from files content') . '</label></p>
|
||||||
|
|
||||||
</div>';
|
</div>';
|
||||||
|
|
|
@ -27,4 +27,4 @@ $this->registerModule(
|
||||||
'details' => 'https://plugins.dotaddict.org/dc2/details/pacKman',
|
'details' => 'https://plugins.dotaddict.org/dc2/details/pacKman',
|
||||||
'repository' => 'https://raw.githubusercontent.com/JcDenis/pacKman/master/dcstore.xml'
|
'repository' => 'https://raw.githubusercontent.com/JcDenis/pacKman/master/dcstore.xml'
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
|
@ -110,4 +110,4 @@ try {
|
||||||
$core->error->add($e->getMessage());
|
$core->error->add($e->getMessage());
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,4 +18,4 @@ $d = dirname(__FILE__) . '/inc/';
|
||||||
|
|
||||||
$__autoload['dcPackman'] = $d . 'class.dc.packman.php';
|
$__autoload['dcPackman'] = $d . 'class.dc.packman.php';
|
||||||
$__autoload['libPackman'] = $d . 'lib.packman.php';
|
$__autoload['libPackman'] = $d . 'lib.packman.php';
|
||||||
$__autoload['packmanFileZip'] = $d . 'lib.packman.filezip.php';
|
$__autoload['packmanFileZip'] = $d . 'lib.packman.filezip.php';
|
||||||
|
|
|
@ -17,67 +17,67 @@ if (!defined('DC_CONTEXT_ADMIN')) {
|
||||||
$mod_id = 'pacKman';
|
$mod_id = 'pacKman';
|
||||||
|
|
||||||
$this->addUserAction(
|
$this->addUserAction(
|
||||||
/* type */
|
/* type */
|
||||||
'settings',
|
'settings',
|
||||||
/* action */
|
/* action */
|
||||||
'delete_all',
|
'delete_all',
|
||||||
/* ns */
|
/* ns */
|
||||||
$mod_id,
|
$mod_id,
|
||||||
/* desc */
|
/* desc */
|
||||||
__('delete all settings')
|
__('delete all settings')
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->addUserAction(
|
$this->addUserAction(
|
||||||
/* type */
|
/* type */
|
||||||
'plugins',
|
'plugins',
|
||||||
/* action */
|
/* action */
|
||||||
'delete',
|
'delete',
|
||||||
/* ns */
|
/* ns */
|
||||||
$mod_id,
|
$mod_id,
|
||||||
/* desc */
|
/* desc */
|
||||||
__('delete plugin files')
|
__('delete plugin files')
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->addUserAction(
|
$this->addUserAction(
|
||||||
/* type */
|
/* type */
|
||||||
'versions',
|
'versions',
|
||||||
/* action */
|
/* action */
|
||||||
'delete',
|
'delete',
|
||||||
/* ns */
|
/* ns */
|
||||||
$mod_id,
|
$mod_id,
|
||||||
/* desc */
|
/* desc */
|
||||||
__('delete the version number')
|
__('delete the version number')
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->addDirectAction(
|
$this->addDirectAction(
|
||||||
/* type */
|
/* type */
|
||||||
'settings',
|
'settings',
|
||||||
/* action */
|
/* action */
|
||||||
'delete_all',
|
'delete_all',
|
||||||
/* ns */
|
/* ns */
|
||||||
$mod_id,
|
$mod_id,
|
||||||
/* desc */
|
/* desc */
|
||||||
sprintf(__('delete all %s settings'), $mod_id)
|
sprintf(__('delete all %s settings'), $mod_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->addDirectAction(
|
$this->addDirectAction(
|
||||||
/* type */
|
/* type */
|
||||||
'plugins',
|
'plugins',
|
||||||
/* action */
|
/* action */
|
||||||
'delete',
|
'delete',
|
||||||
/* ns */
|
/* ns */
|
||||||
$mod_id,
|
$mod_id,
|
||||||
/* desc */
|
/* desc */
|
||||||
sprintf(__('delete %s plugin files'), $mod_id)
|
sprintf(__('delete %s plugin files'), $mod_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->addDirectAction(
|
$this->addDirectAction(
|
||||||
/* type */
|
/* type */
|
||||||
'versions',
|
'versions',
|
||||||
/* action */
|
/* action */
|
||||||
'delete',
|
'delete',
|
||||||
/* ns */
|
/* ns */
|
||||||
$mod_id,
|
$mod_id,
|
||||||
/* desc */
|
/* desc */
|
||||||
sprintf(__('delete %s version number'), $mod_id)
|
sprintf(__('delete %s version number'), $mod_id)
|
||||||
);
|
);
|
||||||
|
|
|
@ -231,4 +231,4 @@ class dcPackman
|
||||||
|
|
||||||
return $c;
|
return $c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,4 +124,4 @@ class packmanFileZip extends fileZip
|
||||||
{
|
{
|
||||||
return str_replace("\r\n", "\n", $content);
|
return str_replace("\r\n", "\n", $content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,4 +214,4 @@ class libPackman
|
||||||
|
|
||||||
return $modules;
|
return $modules;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -331,4 +331,4 @@ $core->callBehavior('packmanAdminTabs', $core);
|
||||||
dcPage::helpBlock('pacKman');
|
dcPage::helpBlock('pacKman');
|
||||||
|
|
||||||
echo
|
echo
|
||||||
'</body></html>';
|
'</body></html>';
|
||||||
|
|
|
@ -16,4 +16,4 @@ if (!defined('DC_RC_PATH')) {
|
||||||
|
|
||||||
if (!isset($__resources['help']['pacKman'])) {
|
if (!isset($__resources['help']['pacKman'])) {
|
||||||
$__resources['help']['pacKman'] = dirname(__FILE__) . '/help/help.html';
|
$__resources['help']['pacKman'] = dirname(__FILE__) . '/help/help.html';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue