Skip to content

Commit 078f2df

Browse files
fix indentation
1 parent 2b11e27 commit 078f2df

File tree

10 files changed

+20
-25
lines changed

10 files changed

+20
-25
lines changed

src/administrator/components/com_weblinks/script.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function install($parent)
114114
$category->setLocation(1, 'last-child');
115115

116116
try {
117-
// Check to make sure our data is valid (throws exception on failure)
117+
// Check to make sure our data is valid
118118
$category->check();
119119
} catch (\Exception $e) {
120120
Factory::getApplication()->enqueueMessage(Text::sprintf('COM_WEBLINKS_ERROR_INSTALL_CATEGORY', $e->getMessage()), 'error');
@@ -123,7 +123,7 @@ public function install($parent)
123123
}
124124

125125
try {
126-
// Now store the category (throws exception on failure)
126+
// Now store the category
127127
$category->store(true);
128128
} catch (\Exception $e) {
129129
Factory::getApplication()->enqueueMessage(Text::sprintf('COM_WEBLINKS_ERROR_INSTALL_CATEGORY', $e->getMessage()), 'error');

src/administrator/components/com_weblinks/src/Service/HTML/Icon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function edit($weblink, $params, $attribs = [], $legacy = false)
116116
&& $weblink->checked_out
117117
&& $weblink->checked_out !== $user->get('id')
118118
) {
119-
$userFactory = Factory::getContainer()->get(UserFactoryInterface::class);
119+
$userFactory = Factory::getContainer()->get(UserFactoryInterface::class);
120120
$checkoutUser = $userFactory->loadUserById($weblink->checked_out);
121121
$date = HTMLHelper::_('date', $weblink->checked_out_time);
122122
$tooltip = Text::sprintf('COM_WEBLINKS_CHECKED_OUT_BY', $checkoutUser->name)

src/administrator/components/com_weblinks/src/View/Weblink/HtmlView.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use Joomla\CMS\Helper\ContentHelper;
2020
use Joomla\CMS\Language\Associations;
2121
use Joomla\CMS\Language\Text;
22-
use Joomla\CMS\MVC\View\GenericDataException;
2322
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
2423
use Joomla\CMS\Toolbar\ToolbarHelper;
2524
use Joomla\Component\Weblinks\Administrator\Model\WeblinkModel;

src/administrator/components/com_weblinks/src/View/Weblinks/HtmlView.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Joomla\CMS\Factory;
1919
use Joomla\CMS\Helper\ContentHelper;
2020
use Joomla\CMS\Language\Text;
21-
use Joomla\CMS\MVC\View\GenericDataException;
2221
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
2322
use Joomla\CMS\Pagination\Pagination;
2423
use Joomla\CMS\Toolbar\ToolbarHelper;

src/components/com_weblinks/src/View/Category/HtmlView.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ protected function prepareDocument()
7272
}
7373

7474
// Get ID of the category from active menu item
75-
$app = Factory::getApplication();
76-
$menu = $app->getMenu()->getActive();
75+
$app = Factory::getApplication();
76+
$menu = $app->getMenu()->getActive();
7777
$pathway = $app->getPathway();
7878

7979
if (

src/components/com_weblinks/src/View/Form/HtmlView.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
use Joomla\CMS\Factory;
1818
use Joomla\CMS\Language\Text;
19-
use Joomla\CMS\MVC\View\GenericDataException;
2019
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
2120
use Joomla\CMS\User\User;
2221
use Joomla\Component\Weblinks\Site\Model\FormModel;

src/components/com_weblinks/src/View/Weblink/HtmlView.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
namespace Joomla\Component\Weblinks\Site\View\Weblink;
1212

13+
use Joomla\CMS\Event\Content\AfterDisplayEvent;
14+
use Joomla\CMS\Event\Content\AfterTitleEvent;
15+
use Joomla\CMS\Event\Content\BeforeDisplayEvent;
1316
use Joomla\CMS\Factory;
1417
use Joomla\CMS\MVC\View\GenericDataException;
1518
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1619
use Joomla\CMS\Plugin\PluginHelper;
1720
use Joomla\Component\Weblinks\Site\Model\WeblinkModel;
18-
use Joomla\CMS\Event\Content\AfterTitleEvent;
19-
use Joomla\CMS\Event\Content\BeforeDisplayEvent;
20-
use Joomla\CMS\Event\Content\AfterDisplayEvent;
2121

2222
// phpcs:disable PSR1.Files.SideEffects
2323
\defined('_JEXEC') or die;
@@ -93,25 +93,24 @@ public function display($tpl = null)
9393
$item->params->merge($temp);
9494
$offset = $this->state->get('list.offset');
9595

96-
$dispatcher = $app->getDispatcher();
97-
$item->event = new \stdClass();
98-
99-
$item->event->afterDisplayTitle = '';
96+
$dispatcher = $app->getDispatcher();
97+
$item->event = new \stdClass();
98+
$item->event->afterDisplayTitle = '';
10099
$item->event->beforeDisplayContent = '';
101-
$item->event->afterDisplayContent = '';
100+
$item->event->afterDisplayContent = '';
102101

103102
$eventAfterTitleArgs = ['context' => 'com_weblinks.weblink', 'subject' => $item, 'params' => $item->params, 'offset' => $offset];
104-
$eventAfterTitle = AfterTitleEvent::create('onContentAfterTitle', $eventAfterTitleArgs);
103+
$eventAfterTitle = AfterTitleEvent::create('onContentAfterTitle', $eventAfterTitleArgs);
105104
$dispatcher->dispatch('onContentAfterTitle', $eventAfterTitle);
106105

107106
$eventBeforeDisplayArgs = ['context' => 'com_weblinks.weblink', 'subject' => $item, 'params' => $item->params, 'offset' => $offset];
108-
$eventBeforeDisplay = BeforeDisplayEvent::create('onContentBeforeDisplay', $eventBeforeDisplayArgs);
107+
$eventBeforeDisplay = BeforeDisplayEvent::create('onContentBeforeDisplay', $eventBeforeDisplayArgs);
109108
$dispatcher->dispatch('onContentBeforeDisplay', $eventBeforeDisplay);
110109

111110
$eventAfterDisplayArgs = ['context' => 'com_weblinks.weblink', 'subject' => $item, 'params' => $item->params, 'offset' => $offset];
112-
$eventAfterDisplay = AfterDisplayEvent::create('onContentAfterDisplay', $eventAfterDisplayArgs);
111+
$eventAfterDisplay = AfterDisplayEvent::create('onContentAfterDisplay', $eventAfterDisplayArgs);
113112
$dispatcher->dispatch('onContentAfterDisplay', $eventAfterDisplay);
114113

115114
parent::display($tpl);
116115
}
117-
}
116+
}

src/plugins/editors-xtd/weblink/src/Extension/Weblink.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ public function __construct(DispatcherInterface $dispatcher, array $config, CMSA
5959
*
6060
* @since __DEPLOY_VERSION__
6161
*/
62-
public function onDisplay($name): ?object
63-
{
64-
$user = $this->getApplication()->getIdentity();
62+
public function onDisplay($name): ?object
63+
{
64+
$user = $this->getApplication()->getIdentity();
6565

6666
if (
6767
$user->authorise('core.create', 'com_weblinks')

src/plugins/finder/weblinks/src/Extension/Weblinks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
use Joomla\CMS\Categories\Categories;
1818
use Joomla\CMS\Component\ComponentHelper;
19-
use Joomla\CMS\Table\Table;
2019
use Joomla\CMS\Factory;
20+
use Joomla\CMS\Table\Table;
2121
use Joomla\Component\Finder\Administrator\Indexer\Adapter;
2222
use Joomla\Component\Finder\Administrator\Indexer\Helper;
2323
use Joomla\Component\Finder\Administrator\Indexer\Indexer;

src/plugins/search/weblinks/src/Extension/Weblinks.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Joomla\CMS\Language\Multilanguage;
1515
use Joomla\CMS\Language\Text;
1616
use Joomla\CMS\Plugin\CMSPlugin;
17-
use Joomla\Component\Search\Administrator\Helper\SearchHelper;
1817
use Joomla\Component\Weblinks\Site\Helper\RouteHelper;
1918
use Joomla\Database\DatabaseAwareTrait;
2019
use Joomla\Database\DatabaseInterface;

0 commit comments

Comments
 (0)