remove unused class and change function name to be PSR1 compliant
This commit is contained in:
@@ -35,10 +35,10 @@ abstract class AbstractSmartyPlugin
|
||||
/**
|
||||
* Explode a comma separated list in a array, trimming all array elements
|
||||
*
|
||||
* @param unknown $commaSeparatedValues
|
||||
* @return multitype:
|
||||
* @param mixed $commaSeparatedValues
|
||||
* @return mixed:
|
||||
*/
|
||||
protected function _explode($commaSeparatedValues)
|
||||
protected function explode($commaSeparatedValues)
|
||||
{
|
||||
if (null === $commaSeparatedValues) {
|
||||
return array();
|
||||
|
||||
@@ -43,7 +43,7 @@ class AdminUtilities extends AbstractSmartyPlugin
|
||||
$this->securityContext = $securityContext;
|
||||
}
|
||||
|
||||
protected function fetch_snippet($smarty, $templateName, $variablesArray)
|
||||
protected function fetchSnippet($smarty, $templateName, $variablesArray)
|
||||
{
|
||||
$data = '';
|
||||
|
||||
@@ -97,7 +97,7 @@ class AdminUtilities extends AbstractSmartyPlugin
|
||||
$module === null ? array() : array($module),
|
||||
array($access))
|
||||
) {
|
||||
return $this->fetch_snippet($smarty, 'includes/admin-utilities-position-block', array(
|
||||
return $this->fetchSnippet($smarty, 'includes/admin-utilities-position-block', array(
|
||||
'admin_utilities_go_up_url' => URL::getInstance()->absoluteUrl($path, array('mode' => 'up', $url_parameter => $id)),
|
||||
'admin_utilities_in_place_edit_class' => $in_place_edit_class,
|
||||
'admin_utilities_object_id' => $id,
|
||||
@@ -146,7 +146,7 @@ class AdminUtilities extends AbstractSmartyPlugin
|
||||
$order_change = $order;
|
||||
}
|
||||
|
||||
return $this->fetch_snippet($smarty, 'includes/admin-utilities-sortable-column-header', array(
|
||||
return $this->fetchSnippet($smarty, 'includes/admin-utilities-sortable-column-header', array(
|
||||
'admin_utilities_sort_direction' => $sort_direction,
|
||||
'admin_utilities_sorting_url' => URL::getInstance()->absoluteUrl($path, array($request_parameter_name => $order_change)),
|
||||
'admin_utilities_header_text' => $label
|
||||
|
||||
@@ -53,10 +53,10 @@ class Security extends AbstractSmartyPlugin
|
||||
*/
|
||||
public function checkAuthFunction($params, &$smarty)
|
||||
{
|
||||
$roles = $this->_explode($this->getParam($params, 'role'));
|
||||
$resources = $this->_explode($this->getParam($params, 'resource'));
|
||||
$modules = $this->_explode($this->getParam($params, 'module'));
|
||||
$accesses = $this->_explode($this->getParam($params, 'access'));
|
||||
$roles = $this->explode($this->getParam($params, 'role'));
|
||||
$resources = $this->explode($this->getParam($params, 'resource'));
|
||||
$modules = $this->explode($this->getParam($params, 'module'));
|
||||
$accesses = $this->explode($this->getParam($params, 'access'));
|
||||
|
||||
if (! $this->securityContext->isGranted($roles, $resources, $modules, $accesses)) {
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ class TemplateHelper
|
||||
}
|
||||
}
|
||||
|
||||
protected function normalize_path($path)
|
||||
protected function normalizePath($path)
|
||||
{
|
||||
$path = str_replace(
|
||||
str_replace('\\', '/', THELIA_ROOT),
|
||||
@@ -203,7 +203,7 @@ class TemplateHelper
|
||||
|
||||
if ($content = file_get_contents($fileInfo->getPathName())) {
|
||||
|
||||
$short_path = $this->normalize_path($fileInfo->getPathName());
|
||||
$short_path = $this->normalizePath($fileInfo->getPathName());
|
||||
|
||||
Tlog::getInstance()->debug("Examining file $short_path\n");
|
||||
|
||||
@@ -249,7 +249,7 @@ class TemplateHelper
|
||||
}
|
||||
|
||||
|
||||
public function write_translation($file, $texts, $translations)
|
||||
public function writeTranslation($file, $texts, $translations)
|
||||
{
|
||||
if ($fp = @fopen($file, 'w')) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user