mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
Remove unused class imports, import docblock reference for Apache_Solr_Response, use strict comparison
This commit is contained in:
parent
492769aea2
commit
b1ec2ed6d9
0
bin/fulltextsearch_quickstart
Normal file → Executable file
0
bin/fulltextsearch_quickstart
Normal file → Executable 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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user