From b1ec2ed6d9cd35d6c5e8669ebc8d4fdb9b320558 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Fri, 17 May 2019 09:51:20 +1200 Subject: [PATCH] Remove unused class imports, import docblock reference for Apache_Solr_Response, use strict comparison --- bin/fulltextsearch_quickstart | 0 src/Solr/Services/SolrService.php | 6 ++---- 2 files changed, 2 insertions(+), 4 deletions(-) mode change 100644 => 100755 bin/fulltextsearch_quickstart diff --git a/bin/fulltextsearch_quickstart b/bin/fulltextsearch_quickstart old mode 100644 new mode 100755 diff --git a/src/Solr/Services/SolrService.php b/src/Solr/Services/SolrService.php index 1044260..4ce595f 100644 --- a/src/Solr/Services/SolrService.php +++ b/src/Solr/Services/SolrService.php @@ -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)); }