Skip to content

Commit 729041e

Browse files
author
Phil Taylor
authored
[4] add missing and fix wrong includes in com_finder, and remove unset on undefined var (#32058)
Signed-off-by: Phil E. Taylor <[email protected]>
1 parent c79ce14 commit 729041e

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

administrator/components/com_finder/src/Indexer/Adapter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
\defined('_JEXEC') or die;
1313

14+
use Exception;
1415
use Joomla\CMS\Factory;
1516
use Joomla\CMS\Plugin\CMSPlugin;
1617
use Joomla\Database\DatabaseInterface;

administrator/components/com_finder/src/Indexer/Helper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
\defined('_JEXEC') or die;
1313

14+
use Exception;
1415
use Joomla\CMS\Component\ComponentHelper;
1516
use Joomla\CMS\Factory;
1617
use Joomla\CMS\Language\Multilanguage;

administrator/components/com_finder/src/Indexer/Indexer.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111

1212
\defined('_JEXEC') or die;
1313

14+
use Exception;
1415
use Joomla\CMS\Component\ComponentHelper;
1516
use Joomla\CMS\Factory;
1617
use Joomla\CMS\Filesystem\File;
1718
use Joomla\CMS\Object\CMSObject;
1819
use Joomla\CMS\Plugin\PluginHelper;
1920
use Joomla\CMS\Profiler\Profiler;
2021
use Joomla\Database\ParameterType;
22+
use Joomla\Database\QueryInterface;
2123
use Joomla\String\StringHelper;
2224

2325
/**
@@ -102,7 +104,7 @@ class Indexer
102104
/**
103105
* Reusable Query Template. To be used with clone.
104106
*
105-
* @var Joomla\Database\QueryInterface
107+
* @var QueryInterface
106108
* @since 3.8.0
107109
*/
108110
protected $addTokensToDbQueryTemplate;
@@ -834,7 +836,7 @@ protected function tokenizeToDb($input, $context, $lang, $format)
834836
// Parse, tokenise and add tokens to the database.
835837
$count = $this->tokenizeToDbShort($string, $context, $lang, $format, $count);
836838

837-
unset($string, $tokens);
839+
unset($string);
838840
}
839841

840842
return $count;

administrator/components/com_finder/src/Indexer/Query.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
\defined('_JEXEC') or die;
1313

14+
use Exception;
1415
use Joomla\CMS\Component\ComponentHelper;
1516
use Joomla\CMS\Factory;
1617
use Joomla\CMS\Language\Text;

administrator/components/com_finder/src/Model/FilterModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Joomla\CMS\Factory;
1515
use Joomla\CMS\Form\Form;
1616
use Joomla\CMS\MVC\Model\AdminModel;
17+
use Joomla\Component\Finder\Administrator\Table\FilterTable;
1718

1819
/**
1920
* Filter model class for Finder.
@@ -56,7 +57,7 @@ protected function cleanCache($group = 'com_finder', $clientId = 1)
5657
/**
5758
* Method to get the filter data.
5859
*
59-
* @return \Joomla\Component\Finder\Administrator\Table\Filter|boolean The filter data or false on a failure.
60+
* @return FilterTable|boolean The filter data or false on a failure.
6061
*
6162
* @since 2.5
6263
*/

0 commit comments

Comments
 (0)