29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-29 16:43:42 +00:00

Correct class casing (#29667)

This commit is contained in:
SharkyKZ 2020-06-17 13:20:49 +03:00 committed by GitHub
parent fdd6248086
commit 4661352b51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 32 additions and 32 deletions

View File

@ -12,7 +12,7 @@ namespace Joomla\Component\Admin\Administrator\View\Sysinfo;
\defined('_JEXEC') or die;
use Exception;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
@ -83,7 +83,7 @@ class HtmlView extends BaseHtmlView
// Access check.
if (!Factory::getUser()->authorise('core.admin'))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
/** @var SysinfoModel $model */

View File

@ -12,7 +12,7 @@ namespace Joomla\Component\Admin\Administrator\View\Sysinfo;
\defined('_JEXEC') or die;
use Exception;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\AbstractView;
@ -41,7 +41,7 @@ class JsonView extends AbstractView
// Access check.
if (!Factory::getUser()->authorise('core.admin'))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
header('MIME-Version: 1.0');

View File

@ -12,7 +12,7 @@ namespace Joomla\Component\Admin\Administrator\View\Sysinfo;
\defined('_JEXEC') or die;
use Exception;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\AbstractView;
@ -41,7 +41,7 @@ class TextView extends AbstractView
// Access check.
if (!Factory::getUser()->authorise('core.admin'))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
header('Content-Type: text/plain; charset=utf-8');

View File

@ -11,7 +11,7 @@ namespace Joomla\Component\Associations\Administrator\Dispatcher;
\defined('_JEXEC') or die;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Dispatcher\ComponentDispatcher;
use Joomla\CMS\Language\Text;
use Joomla\Component\Associations\Administrator\Helper\AssociationsHelper;
@ -30,7 +30,7 @@ class Dispatcher extends ComponentDispatcher
*
* @return void
*
* @throws \Exception|Notallowed
* @throws \Exception|NotAllowed
*/
protected function checkAccess()
{

View File

@ -11,7 +11,7 @@ namespace Joomla\Component\Contenthistory\Administrator\Dispatcher;
\defined('_JEXEC') or die;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Dispatcher\ComponentDispatcher;
/**
@ -28,14 +28,14 @@ class Dispatcher extends ComponentDispatcher
*
* @return void
*
* @throws \Exception|Notallowed
* @throws \Exception|NotAllowed
*/
protected function checkAccess()
{
// Check the user has permission to access this component if in the backend
if ($this->app->getIdentity()->guest)
{
throw new Notallowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
}
}
}

View File

@ -11,7 +11,7 @@ namespace Joomla\Component\Cpanel\Administrator\Dispatcher;
\defined('_JEXEC') or die;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Dispatcher\ComponentDispatcher;
/**
@ -28,7 +28,7 @@ class Dispatcher extends ComponentDispatcher
*
* @return void
*
* @throws \Exception|Notallowed
* @throws \Exception|NotAllowed
*/
protected function checkAccess()
{

View File

@ -42,7 +42,7 @@ class Dispatcher extends ComponentDispatcher
if (!$parts || !$this->app->getIdentity()->authorise('core.manage', $parts[0]))
{
throw new Notallowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
}
}
}

View File

@ -11,7 +11,7 @@ namespace Joomla\Component\Users\Administrator\Controller;
\defined('_JEXEC') or die;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Helper\ContentHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\BaseController;
@ -80,7 +80,7 @@ class DisplayController extends BaseController
if (!$this->canView($view))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
// Check for edit form.

View File

@ -8,7 +8,7 @@
*/
namespace Joomla\Component\Users\Administrator\Controller;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\AdminController;
@ -56,7 +56,7 @@ class GroupsController extends AdminController
{
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
parent::delete();
@ -75,7 +75,7 @@ class GroupsController extends AdminController
{
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
parent::publish();
@ -94,7 +94,7 @@ class GroupsController extends AdminController
{
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
return parent::reorder();
@ -113,7 +113,7 @@ class GroupsController extends AdminController
{
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
return parent::saveorder();
@ -132,7 +132,7 @@ class GroupsController extends AdminController
{
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
return parent::checkin();

View File

@ -12,7 +12,7 @@ namespace Joomla\Component\Users\Administrator\Controller;
\defined('_JEXEC') or die;
use Joomla\CMS\Access\Access;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Controller\FormController;
@ -115,7 +115,7 @@ class LevelController extends FormController
if (!$this->app->getIdentity()->authorise('core.admin', $this->option))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
elseif (empty($ids))
{

View File

@ -11,7 +11,7 @@ namespace Joomla\Component\Users\Administrator\View\Debuggroup;
\defined('_JEXEC') or die;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Factory;
use Joomla\CMS\Helper\ContentHelper;
use Joomla\CMS\Language\Text;
@ -92,7 +92,7 @@ class HtmlView extends BaseHtmlView
// Access check.
if (!Factory::getUser()->authorise('core.manage', 'com_users'))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
$this->actions = $this->get('DebugActions');

View File

@ -11,7 +11,7 @@ namespace Joomla\Component\Users\Administrator\View\Debuguser;
\defined('_JEXEC') or die;
use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Factory;
use Joomla\CMS\Helper\ContentHelper;
use Joomla\CMS\Language\Text;
@ -92,7 +92,7 @@ class HtmlView extends BaseHtmlView
// Access check.
if (!Factory::getUser()->authorise('core.manage', 'com_users'))
{
throw new Notallowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
$this->actions = $this->get('DebugActions');

View File

@ -28,7 +28,7 @@ class Dispatcher extends ComponentDispatcher
*
* @return void
*
* @throws Exception|Notallowed
* @throws Exception|NotAllowed
*/
protected function checkAccess()
{
@ -36,7 +36,7 @@ class Dispatcher extends ComponentDispatcher
if (!$this->app->getIdentity()->authorise('core.admin'))
{
throw new Notallowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
}
}
}

View File

@ -43,14 +43,14 @@ class Dispatcher extends ComponentDispatcher
*
* @return void
*
* @throws \Exception|Notallowed
* @throws \Exception|NotAllowed
*/
protected function checkAccess()
{
// Check the user has permission to access this component if in the backend
if ($this->app->getIdentity()->guest)
{
throw new Notallowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
throw new NotAllowed($this->app->getLanguage()->_('JERROR_ALERTNOAUTHOR'), 403);
}
}