Remove unused class imports, import docblock reference for Apache_Solr_Response, use strict comparison

This commit is contained in:
Robbie Averill 2019-05-17 09:51:20 +12:00
parent 492769aea2
commit b1ec2ed6d9
2 changed files with 2 additions and 4 deletions

0
bin/fulltextsearch_quickstart Normal file → Executable file
View File

View File

@ -2,10 +2,8 @@
namespace SilverStripe\FullTextSearch\Solr\Services;
use Apache_Solr_Response;
use SilverStripe\Core\Config\Config;
use SilverStripe\FullTextSearch\Solr\Solr;
use SilverStripe\FullTextSearch\Solr\SolrIndex;
use Silverstripe\Core\ClassInfo;
/**
* The API for accessing the primary Solr installation, which includes both SolrService_Core,
@ -23,7 +21,7 @@ class SolrService extends SolrService_Core
{
$command = strtoupper($command);
$params = array_merge($params, array('action' => $command, 'wt' => 'json'));
$params[$command == 'CREATE' ? 'name' : 'core'] = $core;
$params[$command === 'CREATE' ? 'name' : 'core'] = $core;
return $this->_sendRawGet($this->_constructUrl('admin/cores', $params));
}