Commit 72ffa056 authored by Bas de Nooijer's avatar Bas de Nooijer

Merge branch 'release/2.4.0' into develop

parents 67f5cb9f 9deb64d5
......@@ -2,18 +2,14 @@
"name": "solarium/solarium",
"type": "library",
"description": "PHP Solr client",
"keywords": ["solr", "search"],
"keywords": ["solr", "search", "php"],
"homepage": "http://www.solarium-project.org",
"version": "2.3.0",
"version": "2.4.0",
"license": "NewBSD",
"authors": [
{
"name": "Bas de Nooijer",
"email": "github@raspberry.nl"
},
{
"name": "Gasol Wu",
"email": "gasol.wu@gmail.com"
"name": "See GitHub contributors",
"homepage": "https://github.com/basdenooijer/solarium/contributors"
}
],
"require": {
......
......@@ -112,14 +112,16 @@ class Solarium_Client_ResponseParser_Analysis_Field extends Solarium_Client_Resp
if (is_string($analysis)) {
$item = new Solarium_Result_Analysis_Item(array(
'text' => $analysis,
'start' => null,
'end' => null,
'position' => null,
'positionHistory' => null,
'type' => null,
));
$item = new Solarium_Result_Analysis_Item(
array(
'text' => $analysis,
'start' => null,
'end' => null,
'position' => null,
'positionHistory' => null,
'type' => null,
)
);
$classes[] = new Solarium_Result_Analysis_List($class, array($item));
......
......@@ -102,7 +102,8 @@ class Solarium_Plugin_ParallelExecution extends Solarium_Plugin_Abstract
*
* @return self Provides fluent interface
*/
public function clearQueries() {
public function clearQueries()
{
$this->_queries = array();
return $this;
}
......@@ -121,7 +122,7 @@ class Solarium_Plugin_ParallelExecution extends Solarium_Plugin_Abstract
public function execute($queries = null)
{
// this is for backwards compatibility
if(is_array($queries)) {
if (is_array($queries)) {
foreach ($queries as $key => $query) {
$this->addQuery($key, $query);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment