Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions administrator/components/com_finder/src/Indexer/Indexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Profiler\Profiler;
use Joomla\Database\DatabaseInterface;
Expand Down Expand Up @@ -83,7 +82,7 @@ class Indexer
/**
* The indexer state object.
*
* @var CMSObject
* @var \stdClass
* @since 2.5
*/
public static $state;
Expand Down Expand Up @@ -146,7 +145,7 @@ public function __construct(?DatabaseInterface $db = null)
/**
* Method to get the indexer state.
*
* @return CMSObject The indexer state object.
* @return \stdClass The indexer state object.
*
* @since 2.5
*/
Expand All @@ -163,7 +162,7 @@ public static function getState()

// If the state is empty, load the values for the first time.
if (empty($data)) {
$data = new CMSObject();
$data = new \stdClass();
$data->force = false;

// Load the default configuration options.
Expand Down Expand Up @@ -228,7 +227,7 @@ public static function getState()
/**
* Method to set the indexer state.
*
* @param CMSObject $data A new indexer state object.
* @param \stdClass $data A new indexer state object.
*
* @return boolean True on success, false on failure.
*
Expand All @@ -237,7 +236,7 @@ public static function getState()
public static function setState($data)
{
// Check the state object.
if (empty($data) || !$data instanceof CMSObject) {
if (empty($data) || !$data instanceof \stdClass) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Plugin\PluginHelper;

// phpcs:disable PSR1.Files.SideEffects
Expand All @@ -29,7 +28,7 @@ class StatisticsModel extends BaseDatabaseModel
/**
* Method to get the component statistics
*
* @return CMSObject The component statistics
* @return \stdClass The component statistics
*
* @since 2.5
*/
Expand All @@ -38,7 +37,7 @@ public function getData()
// Initialise
$db = $this->getDatabase();
$query = $db->getQuery(true);
$data = new CMSObject();
$data = new \stdClass();

$query->select('COUNT(term_id)')
->from($db->quoteName('#__finder_terms'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class HtmlView extends BaseHtmlView
/**
* The index statistics
*
* @var \Joomla\CMS\Object\CMSObject
* @var \stdClass
*
* @since 3.6.1
*/
Expand Down