Skip to content

Commit

Permalink
[4] add missing and fix wrong includes in com_finder, and remove unse…
Browse files Browse the repository at this point in the history
…t on undefined var (#32058)

Signed-off-by: Phil E. Taylor <[email protected]>
  • Loading branch information
Phil Taylor authored Jan 16, 2021
1 parent c79ce14 commit 729041e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

\defined('_JEXEC') or die;

use Exception;
use Joomla\CMS\Factory;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\Database\DatabaseInterface;
Expand Down
1 change: 1 addition & 0 deletions administrator/components/com_finder/src/Indexer/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

\defined('_JEXEC') or die;

use Exception;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Multilanguage;
Expand Down
6 changes: 4 additions & 2 deletions administrator/components/com_finder/src/Indexer/Indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@

\defined('_JEXEC') or die;

use Exception;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Profiler\Profiler;
use Joomla\Database\ParameterType;
use Joomla\Database\QueryInterface;
use Joomla\String\StringHelper;

/**
Expand Down Expand Up @@ -102,7 +104,7 @@ class Indexer
/**
* Reusable Query Template. To be used with clone.
*
* @var Joomla\Database\QueryInterface
* @var QueryInterface
* @since 3.8.0
*/
protected $addTokensToDbQueryTemplate;
Expand Down Expand Up @@ -834,7 +836,7 @@ protected function tokenizeToDb($input, $context, $lang, $format)
// Parse, tokenise and add tokens to the database.
$count = $this->tokenizeToDbShort($string, $context, $lang, $format, $count);

unset($string, $tokens);
unset($string);
}

return $count;
Expand Down
1 change: 1 addition & 0 deletions administrator/components/com_finder/src/Indexer/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

\defined('_JEXEC') or die;

use Exception;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Joomla\CMS\Factory;
use Joomla\CMS\Form\Form;
use Joomla\CMS\MVC\Model\AdminModel;
use Joomla\Component\Finder\Administrator\Table\FilterTable;

/**
* Filter model class for Finder.
Expand Down Expand Up @@ -56,7 +57,7 @@ protected function cleanCache($group = 'com_finder', $clientId = 1)
/**
* Method to get the filter data.
*
* @return \Joomla\Component\Finder\Administrator\Table\Filter|boolean The filter data or false on a failure.
* @return FilterTable|boolean The filter data or false on a failure.
*
* @since 2.5
*/
Expand Down

0 comments on commit 729041e

Please sign in to comment.