mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-25 23:02:55 +00:00
Case in function/method call doesn't match the case in declaration (#33982)
This commit is contained in:
parent
2b70fb087c
commit
e27f9ea8fc
|
@ -106,7 +106,7 @@ class HtmlView extends BaseHtmlView
|
|||
throw new GenericDataException(implode("\n", $errors), 500);
|
||||
}
|
||||
|
||||
$this->addToolBar();
|
||||
$this->addToolbar();
|
||||
|
||||
// Load all actionlog plugins language files
|
||||
ActionlogsHelper::loadActionLogPluginsLanguage();
|
||||
|
|
|
@ -430,7 +430,7 @@ class SysinfoModel extends BaseDatabaseModel
|
|||
return $this->phpInfoArray;
|
||||
}
|
||||
|
||||
$phpInfo = $this->getPhpInfo();
|
||||
$phpInfo = $this->getPHPInfo();
|
||||
|
||||
$this->phpInfoArray = $this->parsePhpInfo($phpInfo);
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ class AssociationController extends FormController
|
|||
|
||||
foreach ($ids as $key => $id)
|
||||
{
|
||||
AssociationsHelper::getItem($extensionName, $typeName, $id)->checkin();
|
||||
AssociationsHelper::getItem($extensionName, $typeName, $id)->checkIn();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Joomla\Component\Banners\Administrator\Controller;
|
|||
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Application\CmsApplication;
|
||||
use Joomla\CMS\Application\CMSApplication;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
|
||||
|
@ -38,7 +38,7 @@ class BannersController extends AdminController
|
|||
*
|
||||
* @param array $config An optional associative array of configuration settings.
|
||||
* @param MVCFactoryInterface $factory The factory.
|
||||
* @param CmsApplication $app The JApplication for the dispatcher
|
||||
* @param CMSApplication $app The JApplication for the dispatcher
|
||||
* @param Input $input Input
|
||||
*
|
||||
* @since 3.0
|
||||
|
|
|
@ -503,7 +503,7 @@ class TracksModel extends ListModel
|
|||
|
||||
$files = array(
|
||||
'track' => array(
|
||||
'name' => $this->getBasename() . '.csv',
|
||||
'name' => $this->getBaseName() . '.csv',
|
||||
'data' => $this->content,
|
||||
'time' => time()
|
||||
)
|
||||
|
|
|
@ -888,7 +888,7 @@ class CategoryModel extends AdminModel
|
|||
|
||||
$db->setQuery($query);
|
||||
|
||||
$max = (int) $db->loadresult();
|
||||
$max = (int) $db->loadResult();
|
||||
$max++;
|
||||
|
||||
$query->clear();
|
||||
|
|
|
@ -1390,7 +1390,7 @@ class ApplicationModel extends FormModel
|
|||
|
||||
try
|
||||
{
|
||||
$mailSent = $mailer->Send();
|
||||
$mailSent = $mailer->send();
|
||||
}
|
||||
catch (MailDisabledException | phpMailerException $e)
|
||||
{
|
||||
|
|
|
@ -808,7 +808,7 @@ class ArticleModel extends AdminModel implements WorkflowModelInterface
|
|||
{
|
||||
if (Factory::getApplication()->get('unicodeslugs') == 1)
|
||||
{
|
||||
$data['alias'] = \JFilterOutput::stringURLUnicodeSlug($data['title']);
|
||||
$data['alias'] = \JFilterOutput::stringUrlUnicodeSlug($data['title']);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -964,7 +964,7 @@ abstract class AKAbstractUnarchiver extends AKAbstractPart
|
|||
|
||||
// Should I use FTP?
|
||||
case 'post_proc':
|
||||
$this->postProcEngine = AKFactory::getpostProc($value);
|
||||
$this->postProcEngine = AKFactory::getPostProc($value);
|
||||
break;
|
||||
|
||||
// Path to add in the beginning
|
||||
|
|
|
@ -241,7 +241,7 @@ class UpdateModel extends BaseDatabaseModel
|
|||
|
||||
// Fetch the full update details from the update details URL.
|
||||
$update = new Update;
|
||||
$update->loadFromXML($updateObject->detailsurl, $minimumStability);
|
||||
$update->loadFromXml($updateObject->detailsurl, $minimumStability);
|
||||
|
||||
$this->updateInformation['object'] = $update;
|
||||
|
||||
|
@ -1554,7 +1554,7 @@ ENDDATA;
|
|||
{
|
||||
$update = new \Joomla\CMS\Updater\Update;
|
||||
$update->set('jversion.full', $joomlaTargetVersion);
|
||||
$update->loadFromXML($updateFileUrl);
|
||||
$update->loadFromXml($updateFileUrl);
|
||||
|
||||
$downloadUrl = $update->get('downloadurl');
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ class ExportModel extends BaseDatabaseModel
|
|||
$mailer->addTemplateData($templateData);
|
||||
$mailer->addAttachment('user-data_' . Uri::getInstance()->toString(['host']) . '.xml', PrivacyHelper::renderDataAsXml($exportData));
|
||||
|
||||
if ($mailer->Send() === false)
|
||||
if ($mailer->send() === false)
|
||||
{
|
||||
$this->setError($mailer->ErrorInfo);
|
||||
|
||||
|
|
|
@ -496,7 +496,7 @@ class TemplateController extends BaseController
|
|||
$id = (int) $this->input->get('id', 0, 'int');
|
||||
$file = (string) $this->input->get('file', '', 'cmd');
|
||||
$name = (string) $this->input->get('name', '', 'cmd');
|
||||
$location = (string) InputFilter::getinstance(
|
||||
$location = (string) InputFilter::getInstance(
|
||||
[],
|
||||
[],
|
||||
InputFilter::ONLY_BLOCK_DEFINED_TAGS,
|
||||
|
@ -557,7 +557,7 @@ class TemplateController extends BaseController
|
|||
$id = (int) $this->input->get('id', 0, 'int');
|
||||
$file = (string) $this->input->getCmd('file', '');
|
||||
$upload = $this->input->files->get('files');
|
||||
$location = (string) InputFilter::getinstance(
|
||||
$location = (string) InputFilter::getInstance(
|
||||
[],
|
||||
[],
|
||||
InputFilter::ONLY_BLOCK_DEFINED_TAGS,
|
||||
|
@ -605,7 +605,7 @@ class TemplateController extends BaseController
|
|||
$id = (int) $this->input->get('id', 0, 'int');
|
||||
$file = (string) $this->input->getCmd('file', '');
|
||||
$name = $this->input->get('name');
|
||||
$location = (string) InputFilter::getinstance(
|
||||
$location = (string) InputFilter::getInstance(
|
||||
[],
|
||||
[],
|
||||
InputFilter::ONLY_BLOCK_DEFINED_TAGS,
|
||||
|
@ -657,7 +657,7 @@ class TemplateController extends BaseController
|
|||
$model = $this->getModel();
|
||||
$id = (int) $this->input->get('id', 0, 'int');
|
||||
$file = (string) $this->input->getCmd('file', '');
|
||||
$location = (string) InputFilter::getinstance(
|
||||
$location = (string) InputFilter::getInstance(
|
||||
[],
|
||||
[],
|
||||
InputFilter::ONLY_BLOCK_DEFINED_TAGS,
|
||||
|
@ -864,7 +864,7 @@ class TemplateController extends BaseController
|
|||
$id = (int) $this->input->get('id', 0, 'int');
|
||||
$file = (string) $this->input->getCmd('file', '');
|
||||
$newName = $this->input->get('new_name');
|
||||
$location = (string) InputFilter::getinstance(
|
||||
$location = (string) InputFilter::getInstance(
|
||||
[],
|
||||
[],
|
||||
InputFilter::ONLY_BLOCK_DEFINED_TAGS,
|
||||
|
|
|
@ -574,7 +574,7 @@ class UsersModel extends ListModel
|
|||
{
|
||||
$result = $db->setQuery($query)->loadColumn();
|
||||
}
|
||||
catch (\RunTimeException $e)
|
||||
catch (\RuntimeException $e)
|
||||
{
|
||||
$result = array();
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ $headerClass = $headerClass ? ' ' . htmlspecialchars($headerClass, ENT_QUOTES, '
|
|||
<div class="<?php echo $moduleClass; ?> module-wrapper">
|
||||
<<?php echo $moduleTag; ?> class="card pt-3<?php echo $moduleClassSfx; ?>">
|
||||
<?php if ($canEdit || $canChange) : ?>
|
||||
<?php $dropdownPosition = Factory::getLanguage()->isRTL() ? 'start' : 'end'; ?>
|
||||
<?php $dropdownPosition = Factory::getLanguage()->isRtl() ? 'start' : 'end'; ?>
|
||||
<div class="module-actions dropdown">
|
||||
<button type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn" id="dropdownMenuButton-<?php echo $id; ?>">
|
||||
<span class="icon-cog" aria-hidden="true"></span>
|
||||
|
|
|
@ -48,7 +48,7 @@ $headerIcon = $params->get('header_icon') ? '<span class="' . htmlspecialchars($
|
|||
<?php if ($canEdit || $canChange || $headerIcon || $module->showtitle) : ?>
|
||||
<div class="card-header">
|
||||
<?php if ($canEdit || $canChange) : ?>
|
||||
<?php $dropdownPosition = Factory::getLanguage()->isRTL() ? 'start' : 'end'; ?>
|
||||
<?php $dropdownPosition = Factory::getLanguage()->isRtl() ? 'start' : 'end'; ?>
|
||||
<div class="module-actions dropdown">
|
||||
<button type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn" id="dropdownMenuButton-<?php echo $id; ?>">
|
||||
<span class="icon-cog" aria-hidden="true"></span>
|
||||
|
|
|
@ -68,7 +68,7 @@ abstract class FormModel extends BaseForm
|
|||
}
|
||||
|
||||
// Attempt to check the row in.
|
||||
if (!$table->checkin($pk))
|
||||
if (!$table->checkIn($pk))
|
||||
{
|
||||
throw new \RuntimeException($table->getError());
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ abstract class FormModel extends BaseForm
|
|||
}
|
||||
|
||||
// Attempt to check the row out.
|
||||
if (!$table->checkout($user->get('id'), $pk))
|
||||
if (!$table->checkOut($user->get('id'), $pk))
|
||||
{
|
||||
throw new \RuntimeException($table->getError());
|
||||
}
|
||||
|
|
|
@ -188,12 +188,12 @@ class HtmlView extends BaseHtmlView
|
|||
|
||||
if ($this->params->get('menu-meta_keywords'))
|
||||
{
|
||||
$this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));
|
||||
$this->document->setMetaData('keywords', $this->params->get('menu-meta_keywords'));
|
||||
}
|
||||
|
||||
if ($this->params->get('robots'))
|
||||
{
|
||||
$this->document->setMetadata('robots', $this->params->get('robots'));
|
||||
$this->document->setMetaData('robots', $this->params->get('robots'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ class ArticleModel extends ItemModel
|
|||
$pk = $app->input->getInt('id');
|
||||
$this->setState('article.id', $pk);
|
||||
|
||||
$offset = $app->input->getUInt('limitstart');
|
||||
$offset = $app->input->getUint('limitstart');
|
||||
$this->setState('list.offset', $offset);
|
||||
|
||||
// Load the parameters.
|
||||
|
|
|
@ -52,7 +52,7 @@ class FeaturedModel extends ArticlesModel
|
|||
$app = Factory::getApplication('site');
|
||||
|
||||
// List state information
|
||||
$limitstart = $input->getUInt('limitstart', 0);
|
||||
$limitstart = $input->getUint('limitstart', 0);
|
||||
$this->setState('list.start', $limitstart);
|
||||
|
||||
$params = $this->state->params;
|
||||
|
|
|
@ -90,7 +90,7 @@ $currentDate = Factory::getDate()->format('Y-m-d H:i:s');
|
|||
</span>
|
||||
<select name="filter-search" id="filter-search" class="form-select" onchange="document.adminForm.submit();">
|
||||
<option value=""><?php echo Text::_('JOPTION_SELECT_MONTH'); ?></option>
|
||||
<?php echo HtmlHelper::_('select.options', HtmlHelper::_('content.months', $this->state), 'value', 'text', $this->state->get('list.filter')); ?>
|
||||
<?php echo HTMLHelper::_('select.options', HTMLHelper::_('content.months', $this->state), 'value', 'text', $this->state->get('list.filter')); ?>
|
||||
</select>
|
||||
<?php else : ?>
|
||||
<label class="filter-search-lbl visually-hidden" for="filter-search">
|
||||
|
|
|
@ -120,7 +120,7 @@ class HtmlView extends BaseHtmlView
|
|||
|
||||
if ($this->params->get('robots'))
|
||||
{
|
||||
$this->document->setMetadata('robots', $this->params->get('robots'));
|
||||
$this->document->setMetaData('robots', $this->params->get('robots'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -195,7 +195,7 @@ class DatabaseModel extends BaseInstallationModel
|
|||
// Try to create the database now using the alternate driver
|
||||
try
|
||||
{
|
||||
$this->createDb($altDB, $options, $altDB->hasUTFSupport());
|
||||
$this->createDb($altDB, $options, $altDB->hasUtfSupport());
|
||||
}
|
||||
catch (\RuntimeException $e)
|
||||
{
|
||||
|
@ -243,7 +243,7 @@ class DatabaseModel extends BaseInstallationModel
|
|||
}
|
||||
|
||||
// Get database's UTF support.
|
||||
$utfSupport = $db->hasUTFSupport();
|
||||
$utfSupport = $db->hasUtfSupport();
|
||||
|
||||
// Try to select the database.
|
||||
try
|
||||
|
|
|
@ -37,7 +37,7 @@ class BreadcrumbsHelper
|
|||
{
|
||||
// Get the PathWay object from the application
|
||||
$pathway = $app->getPathway();
|
||||
$items = $pathway->getPathWay();
|
||||
$items = $pathway->getPathway();
|
||||
$lang = $app->getLanguage();
|
||||
$menu = $app->getMenu();
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ class PlgSystemAccessibility extends CMSPlugin
|
|||
$this->loadLanguage();
|
||||
|
||||
// Determine if it is an LTR or RTL language
|
||||
$direction = Factory::getLanguage()->isRTL() ? 'right' : 'left';
|
||||
$direction = Factory::getLanguage()->isRtl() ? 'right' : 'left';
|
||||
|
||||
// Detect the current active language
|
||||
$lang = Factory::getLanguage()->getTag();
|
||||
|
|
Loading…
Reference in New Issue
Block a user