Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
260818e4
Commit
260818e4
authored
Oct 31, 2014
by
Simon Mönch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PSR-2 fixes
parent
6123e8d2
Changes
45
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
117 additions
and
136 deletions
+117
-136
library/Solarium/Core/Client/Adapter/ZendHttp.php
library/Solarium/Core/Client/Adapter/ZendHttp.php
+2
-2
library/Solarium/Core/Client/Client.php
library/Solarium/Core/Client/Client.php
+21
-21
library/Solarium/Core/Client/Request.php
library/Solarium/Core/Client/Request.php
+1
-1
library/Solarium/Core/Configurable.php
library/Solarium/Core/Configurable.php
+1
-1
library/Solarium/Core/ConfigurableInterface.php
library/Solarium/Core/ConfigurableInterface.php
+1
-1
library/Solarium/Core/Plugin/Plugin.php
library/Solarium/Core/Plugin/Plugin.php
+0
-1
library/Solarium/Core/Plugin/PluginInterface.php
library/Solarium/Core/Plugin/PluginInterface.php
+0
-1
library/Solarium/Core/Query/Helper.php
library/Solarium/Core/Query/Helper.php
+5
-5
library/Solarium/Core/Query/Query.php
library/Solarium/Core/Query/Query.php
+0
-1
library/Solarium/Core/Query/QueryInterface.php
library/Solarium/Core/Query/QueryInterface.php
+0
-1
library/Solarium/Core/Query/RequestBuilder.php
library/Solarium/Core/Query/RequestBuilder.php
+0
-2
library/Solarium/Core/Query/RequestBuilderInterface.php
library/Solarium/Core/Query/RequestBuilderInterface.php
+0
-1
library/Solarium/Plugin/BufferedAdd/BufferedAdd.php
library/Solarium/Plugin/BufferedAdd/BufferedAdd.php
+1
-0
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
+2
-2
library/Solarium/QueryType/Analysis/RequestBuilder/RequestBuilder.php
...rium/QueryType/Analysis/RequestBuilder/RequestBuilder.php
+1
-1
library/Solarium/QueryType/Analysis/Result/Document.php
library/Solarium/QueryType/Analysis/Result/Document.php
+0
-1
library/Solarium/QueryType/Extract/Query.php
library/Solarium/QueryType/Extract/Query.php
+2
-2
library/Solarium/QueryType/MoreLikeThis/Result.php
library/Solarium/QueryType/MoreLikeThis/Result.php
+0
-1
library/Solarium/QueryType/RealtimeGet/RequestBuilder.php
library/Solarium/QueryType/RealtimeGet/RequestBuilder.php
+1
-1
library/Solarium/QueryType/RealtimeGet/Result.php
library/Solarium/QueryType/RealtimeGet/Result.php
+1
-0
library/Solarium/QueryType/Select/Query/Component/DistributedSearch.php
...um/QueryType/Select/Query/Component/DistributedSearch.php
+1
-1
library/Solarium/QueryType/Select/Query/Component/Facet/Pivot.php
...Solarium/QueryType/Select/Query/Component/Facet/Pivot.php
+1
-2
library/Solarium/QueryType/Select/Query/Component/FacetSet.php
...ry/Solarium/QueryType/Select/Query/Component/FacetSet.php
+15
-15
library/Solarium/QueryType/Select/Query/Component/Highlighting/Highlighting.php
...Type/Select/Query/Component/Highlighting/Highlighting.php
+9
-9
library/Solarium/QueryType/Select/Query/Component/Spellcheck.php
.../Solarium/QueryType/Select/Query/Component/Spellcheck.php
+4
-4
library/Solarium/QueryType/Select/Query/Component/Stats/Field.php
...Solarium/QueryType/Select/Query/Component/Stats/Field.php
+1
-1
library/Solarium/QueryType/Select/Query/Component/Stats/Stats.php
...Solarium/QueryType/Select/Query/Component/Stats/Stats.php
+1
-1
library/Solarium/QueryType/Select/Query/Query.php
library/Solarium/QueryType/Select/Query/Query.php
+3
-3
library/Solarium/QueryType/Select/ResponseParser/Component/FacetSet.php
...um/QueryType/Select/ResponseParser/Component/FacetSet.php
+13
-13
library/Solarium/QueryType/Select/ResponseParser/Component/Spellcheck.php
.../QueryType/Select/ResponseParser/Component/Spellcheck.php
+2
-2
library/Solarium/QueryType/Select/Result/Highlighting/Highlighting.php
...ium/QueryType/Select/Result/Highlighting/Highlighting.php
+0
-2
library/Solarium/QueryType/Select/Result/MoreLikeThis/MoreLikeThis.php
...ium/QueryType/Select/Result/MoreLikeThis/MoreLikeThis.php
+0
-2
library/Solarium/QueryType/Select/Result/MoreLikeThis/Result.php
.../Solarium/QueryType/Select/Result/MoreLikeThis/Result.php
+3
-3
library/Solarium/QueryType/Select/Result/Result.php
library/Solarium/QueryType/Select/Result/Result.php
+0
-1
library/Solarium/QueryType/Select/Result/Spellcheck/Result.php
...ry/Solarium/QueryType/Select/Result/Spellcheck/Result.php
+0
-3
library/Solarium/QueryType/Select/Result/Spellcheck/Suggestion.php
...olarium/QueryType/Select/Result/Spellcheck/Suggestion.php
+5
-5
library/Solarium/QueryType/Select/Result/Stats/Stats.php
library/Solarium/QueryType/Select/Result/Stats/Stats.php
+0
-2
library/Solarium/QueryType/Suggester/Query.php
library/Solarium/QueryType/Suggester/Query.php
+0
-2
library/Solarium/QueryType/Suggester/RequestBuilder.php
library/Solarium/QueryType/Suggester/RequestBuilder.php
+1
-1
library/Solarium/QueryType/Terms/Query.php
library/Solarium/QueryType/Terms/Query.php
+0
-2
library/Solarium/QueryType/Terms/RequestBuilder.php
library/Solarium/QueryType/Terms/RequestBuilder.php
+1
-1
library/Solarium/QueryType/Terms/ResponseParser.php
library/Solarium/QueryType/Terms/ResponseParser.php
+0
-1
library/Solarium/QueryType/Update/Query/Document/Document.php
...ary/Solarium/QueryType/Update/Query/Document/Document.php
+7
-4
library/Solarium/QueryType/Update/Query/Query.php
library/Solarium/QueryType/Update/Query/Query.php
+6
-5
library/Solarium/QueryType/Update/RequestBuilder.php
library/Solarium/QueryType/Update/RequestBuilder.php
+5
-5
No files found.
library/Solarium/Core/Client/Adapter/ZendHttp.php
View file @
260818e4
...
...
@@ -161,8 +161,8 @@ class ZendHttp extends Configurable implements AdapterInterface
*
* @throws HttpException
* @throws OutOfBoundsException
* @param Request $request
* @param Endpoint $endpoint
* @param Request
$request
* @param Endpoint
$endpoint
* @return Response
*/
public
function
execute
(
$request
,
$endpoint
)
...
...
library/Solarium/Core/Client/Client.php
View file @
260818e4
...
...
@@ -750,8 +750,8 @@ class Client extends Configurable
/**
* Execute a query
*
* @param QueryInterface $query
* @param Endpoint|string|null $endpoint
* @param
QueryInterface $query
* @param
Endpoint|string|null $endpoint
* @return ResultInterface
*/
public
function
execute
(
QueryInterface
$query
,
$endpoint
=
null
)
...
...
@@ -819,8 +819,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
*
* @param QueryInterface|\Solarium\QueryType\Ping\Query $query
* @param Endpoint|string|null $endpoint
* @param
QueryInterface|\Solarium\QueryType\Ping\Query $query
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Ping\Result
*/
public
function
ping
(
QueryInterface
$query
,
$endpoint
=
null
)
...
...
@@ -845,8 +845,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
*
* @param QueryInterface|\Solarium\QueryType\Update\Query\Query $query
* @param Endpoint|string|null $endpoint
* @param
QueryInterface|\Solarium\QueryType\Update\Query\Query $query
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Update\Result
*/
public
function
update
(
QueryInterface
$query
,
$endpoint
=
null
)
...
...
@@ -870,8 +870,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
*
* @param QueryInterface|\Solarium\QueryType\Select\Query\Query $query
* @param Endpoint|string|null $endpoint
* @param
QueryInterface|\Solarium\QueryType\Select\Query\Query $query
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Select\Result\Result
*/
public
function
select
(
QueryInterface
$query
,
$endpoint
=
null
)
...
...
@@ -895,8 +895,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
*
* @param QueryInterface|\Solarium\QueryType\MoreLikeThis\Query $query
* @param Endpoint|string|null $endpoint
* @param
QueryInterface|\Solarium\QueryType\MoreLikeThis\Query $query
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\MoreLikeThis\Result
*/
public
function
moreLikeThis
(
QueryInterface
$query
,
$endpoint
=
null
)
...
...
@@ -910,8 +910,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
*
* @param QueryInterface|\Solarium\QueryType\Analysis\Query\Document|\Solarium\QueryType\Analysis\Query\Field $query
* @param
Endpoint|string|null
$endpoint
* @param
QueryInterface|\Solarium\QueryType\Analysis\Query\Document|\Solarium\QueryType\Analysis\Query\Field $query
* @param
Endpoint|string|null
$endpoint
* @return \Solarium\QueryType\Analysis\Result\Document|\Solarium\QueryType\Analysis\Result\Field
*/
public
function
analyze
(
QueryInterface
$query
,
$endpoint
=
null
)
...
...
@@ -925,8 +925,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
*
* @param QueryInterface|\Solarium\QueryType\Terms\Query $query
* @param Endpoint|string|null $endpoint
* @param
QueryInterface|\Solarium\QueryType\Terms\Query $query
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Terms\Result
*/
public
function
terms
(
QueryInterface
$query
,
$endpoint
=
null
)
...
...
@@ -940,8 +940,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
*
* @param QueryInterface|\Solarium\QueryType\Suggester\Query $query
* @param Endpoint|string|null $endpoint
* @param
QueryInterface|\Solarium\QueryType\Suggester\Query $query
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Suggester\Result\Result
*/
public
function
suggester
(
QueryInterface
$query
,
$endpoint
=
null
)
...
...
@@ -955,8 +955,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
*
* @param QueryInterface|\Solarium\QueryType\Extract\Query $query
* @param Endpoint|string|null $endpoint
* @param
QueryInterface|\Solarium\QueryType\Extract\Query $query
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Extract\Result
*/
public
function
extract
(
QueryInterface
$query
,
$endpoint
=
null
)
...
...
@@ -970,8 +970,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
*
* @param QueryInterface|\Solarium\QueryType\RealtimeGet\Query $query
* @param Endpoint|string|null $endpoint
* @param
QueryInterface|\Solarium\QueryType\RealtimeGet\Query $query
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\RealtimeGet\Result
*/
public
function
realtimeGet
(
QueryInterface
$query
,
$endpoint
=
null
)
...
...
@@ -1118,7 +1118,7 @@ class Client extends Configurable
/**
* Create a RealtimeGet query instance
*
* @param mixed $options
* @param mixed
$options
* @return \Solarium\QueryType\RealtimeGet\Query
*/
public
function
createRealtimeGet
(
$options
=
null
)
...
...
library/Solarium/Core/Client/Request.php
View file @
260818e4
...
...
@@ -325,7 +325,7 @@ class Request extends Configurable
* Set the file to upload via "multipart/form-data" POST request
*
* @throws RuntimeException
* @param string $filename Name of file to upload
* @param string
$filename Name of file to upload
* @return self
*/
public
function
setFileUpload
(
$filename
)
...
...
library/Solarium/Core/Configurable.php
View file @
260818e4
...
...
@@ -87,7 +87,7 @@ class Configurable implements ConfigurableInterface
* @throws InvalidArgumentException
* @param array|\Zend_Config $options
* @param boolean $overwrite True for overwriting existing options, false
* for merging (new values overwrite old ones if needed)
*
for merging (new values overwrite old ones if needed)
*
* @return void
*/
...
...
library/Solarium/Core/ConfigurableInterface.php
View file @
260818e4
...
...
@@ -72,7 +72,7 @@ interface ConfigurableInterface
* @throws InvalidArgumentException
* @param array|\Zend_Config $options
* @param boolean $overwrite True for overwriting existing options, false
* for merging (new values overwrite old ones if needed)
*
for merging (new values overwrite old ones if needed)
*
* @return void
*/
...
...
library/Solarium/Core/Plugin/Plugin.php
View file @
260818e4
...
...
@@ -40,7 +40,6 @@ namespace Solarium\Core\Plugin;
use
Solarium\Core\Client\Client
;
use
Solarium\Core\Configurable
;
use
Solarium\Core\Query\Query
;
/**
* Base class for plugins
...
...
library/Solarium/Core/Plugin/PluginInterface.php
View file @
260818e4
...
...
@@ -40,7 +40,6 @@ namespace Solarium\Core\Plugin;
use
Solarium\Core\ConfigurableInterface
;
use
Solarium\Core\Client\Client
;
use
Solarium\Core\Query\Query
;
/**
* Interface for plugins
...
...
library/Solarium/Core/Query/Helper.php
View file @
260818e4
...
...
@@ -38,7 +38,6 @@
*/
namespace
Solarium\Core\Query
;
use
Solarium\Core\Query\Query
;
use
Solarium\Exception\InvalidArgumentException
;
/**
...
...
@@ -346,6 +345,7 @@ class Helper
foreach
(
$params
as
$key
=>
$value
)
{
$this
->
query
->
addParam
(
$key
,
$value
);
}
return
$name
.
'()'
;
}
else
{
return
$name
.
'('
.
implode
(
$params
,
','
)
.
')'
;
...
...
@@ -442,8 +442,8 @@ class Helper
*
* @see http://wiki.apache.org/solr/SolrQuerySyntax#Other_built-in_useful_query_parsers
*
* @param string $field
* @param
float
$weight
* @param
string $field
* @param
float
$weight
* @return string
*/
public
function
qparserTerm
(
$field
,
$weight
)
...
...
@@ -458,8 +458,8 @@ class Helper
*
* @see http://wiki.apache.org/solr/CommonQueryParameters#Caching_of_filters
*
* @param boolean $useCache
* @param float|null $cost
* @param
boolean $useCache
* @param
float|null $cost
* @return string
*/
public
function
cacheControl
(
$useCache
,
$cost
=
null
)
...
...
library/Solarium/Core/Query/Query.php
View file @
260818e4
...
...
@@ -38,7 +38,6 @@
*/
namespace
Solarium\Core\Query
;
use
Solarium\Core\Query\Helper
;
use
Solarium\Core\Configurable
;
/**
...
...
library/Solarium/Core/Query/QueryInterface.php
View file @
260818e4
...
...
@@ -38,7 +38,6 @@
*/
namespace
Solarium\Core\Query
;
use
Solarium\Core\Query\Helper
;
use
Solarium\Core\ConfigurableInterface
;
/**
...
...
library/Solarium/Core/Query/RequestBuilder.php
View file @
260818e4
...
...
@@ -38,9 +38,7 @@
*/
namespace
Solarium\Core\Query
;
use
Solarium\Core\Query\Query
;
use
Solarium\Core\Client\Request
;
use
Solarium\Core\Query\QueryInterface
;
/**
* Class for building Solarium client requests
...
...
library/Solarium/Core/Query/RequestBuilderInterface.php
View file @
260818e4
...
...
@@ -38,7 +38,6 @@
*/
namespace
Solarium\Core\Query
;
use
Solarium\Core\Query\QueryInterface
;
use
Solarium\Core\Client\Request
;
/**
...
...
library/Solarium/Plugin/BufferedAdd/BufferedAdd.php
View file @
260818e4
...
...
@@ -111,6 +111,7 @@ class BufferedAdd extends Plugin
public
function
setEndpoint
(
$endpoint
)
{
$this
->
endpoint
=
$endpoint
;
return
$this
;
}
...
...
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
View file @
260818e4
...
...
@@ -485,8 +485,8 @@ class Loadbalancer extends Plugin
* Execute a request using the adapter
*
* @throws RuntimeException
* @param Request $request
* @return Response $response
* @param Request
$request
* @return Response
$response
*/
protected
function
getLoadbalancedResponse
(
$request
)
{
...
...
library/Solarium/QueryType/Analysis/RequestBuilder/RequestBuilder.php
View file @
260818e4
...
...
@@ -52,7 +52,7 @@ class RequestBuilder extends BaseRequestBuilder
/**
* Build request for an analysis query
*
* @param QueryInterface|Query
$query
* @param QueryInterface|Query $query
* @return Request
*/
public
function
build
(
QueryInterface
$query
)
...
...
library/Solarium/QueryType/Analysis/Result/Document.php
View file @
260818e4
...
...
@@ -39,7 +39,6 @@
namespace
Solarium\QueryType\Analysis\Result
;
use
Solarium\Core\Query\Result\QueryType
as
BaseResult
;
use
Solarium\QueryType\Analysis\Result\ResultList
;
/**
* Analysis document query result
...
...
library/Solarium/QueryType/Extract/Query.php
View file @
260818e4
...
...
@@ -393,8 +393,8 @@ class Query extends BaseQuery
* You can optionally directly supply the fields and boosts
* to get a ready-made document instance for direct use in an add command
*
* @param array $fields
* @param array $boosts
* @param array
$fields
* @param array
$boosts
* @return DocumentInterface
*/
public
function
createDocument
(
$fields
=
array
(),
$boosts
=
array
())
...
...
library/Solarium/QueryType/MoreLikeThis/Result.php
View file @
260818e4
...
...
@@ -42,7 +42,6 @@ namespace Solarium\QueryType\MoreLikeThis;
use
Solarium\QueryType\Select\Result\Document
as
ReadOnlyDocument
;
use
Solarium\QueryType\Select\Result\Result
as
SelectResult
;
use
Solarium\Exception\UnexpectedValueException
;
use
Solarium\QueryType\MoreLikeThis\Query
;
/**
* MoreLikeThis query result
...
...
library/Solarium/QueryType/RealtimeGet/RequestBuilder.php
View file @
260818e4
...
...
@@ -50,7 +50,7 @@ class RequestBuilder extends BaseRequestBuilder
/**
* Build request for a ping query
*
* @param QueryInterface|Query
$query
* @param QueryInterface|Query $query
* @return Request
*/
public
function
build
(
QueryInterface
$query
)
...
...
library/Solarium/QueryType/RealtimeGet/Result.php
View file @
260818e4
...
...
@@ -56,6 +56,7 @@ class Result extends BaseResult implements \IteratorAggregate, \Countable
public
function
getDocument
()
{
$docs
=
$this
->
getDocuments
();
return
reset
(
$docs
);
}
}
library/Solarium/QueryType/Select/Query/Component/DistributedSearch.php
View file @
260818e4
...
...
@@ -249,7 +249,7 @@ class DistributedSearch extends Component
/**
* Add a collection
*
* @param string $key unique string
* @param string $key
unique string
* @param string $collection The syntax is host:port/base_url
* @return self Provides fluent interface
* @link http://wiki.apache.org/solr/SolrCloud/
...
...
library/Solarium/QueryType/Select/Query/Component/Facet/Pivot.php
View file @
260818e4
...
...
@@ -97,7 +97,6 @@ class Pivot extends Facet
return
$this
->
getOption
(
'mincount'
);
}
/**
* Specify a field to return in the resultset
*
...
...
@@ -116,7 +115,7 @@ class Pivot extends Facet
* Specify multiple fields to return in the resultset
*
* @param string|array $fields can be an array or string with comma
* separated fieldnames
*
separated fieldnames
*
* @return self Provides fluent interface
*/
...
...
library/Solarium/QueryType/Select/Query/Component/FacetSet.php
View file @
260818e4
...
...
@@ -159,8 +159,8 @@ class FacetSet extends Component
* Allow extraction of facets without having to define
* them on the query
*
* @param boolean $extract
* @return self Provides fluent interface
* @param
boolean $extract
* @return self
Provides fluent interface
*/
public
function
setExtractFromResponse
(
$extract
)
{
...
...
@@ -437,9 +437,9 @@ class FacetSet extends Component
* after setting the key, by using the addFacet method.
*
* @throws OutOfBoundsException
* @param string $type
* @param array|object|null $options
* @param boolean $add
* @param string
$type
* @param array|object|null
$options
* @param boolean
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\Facet
*/
public
function
createFacet
(
$type
,
$options
=
null
,
$add
=
true
)
...
...
@@ -470,8 +470,8 @@ class FacetSet extends Component
/**
* Get a facet field instance
*
* @param mixed $options
* @param bool $add
* @param mixed
$options
* @param bool
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\Field
*/
public
function
createFacetField
(
$options
=
null
,
$add
=
true
)
...
...
@@ -482,8 +482,8 @@ class FacetSet extends Component
/**
* Get a facet query instance
*
* @param mixed $options
* @param bool $add
* @param mixed
$options
* @param bool
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\Query
*/
public
function
createFacetQuery
(
$options
=
null
,
$add
=
true
)
...
...
@@ -494,8 +494,8 @@ class FacetSet extends Component
/**
* Get a facet multiquery instance
*
* @param mixed $options
* @param bool $add
* @param mixed
$options
* @param bool
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\MultiQuery
*/
public
function
createFacetMultiQuery
(
$options
=
null
,
$add
=
true
)
...
...
@@ -506,8 +506,8 @@ class FacetSet extends Component
/**
* Get a facet range instance
*
* @param mixed $options
* @param bool $add
* @param mixed
$options
* @param bool
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\Range
*/
public
function
createFacetRange
(
$options
=
null
,
$add
=
true
)
...
...
@@ -518,8 +518,8 @@ class FacetSet extends Component
/**
* Get a facet pivot instance
*
* @param mixed $options
* @param bool $add
* @param mixed
$options
* @param bool
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\Pivot
*/
public
function
createFacetPivot
(
$options
=
null
,
$add
=
true
)
...
...
library/Solarium/QueryType/Select/Query/Component/Highlighting/Highlighting.php
View file @
260818e4
...
...
@@ -188,7 +188,7 @@ class Highlighting extends Component
* Add multiple fields for highlighting
*
* @param string|array $fields can be an array of object instances or a string with comma
* separated fieldnames
*
separated fieldnames
*
* @return self Provides fluent interface
*/
...
...
@@ -821,8 +821,8 @@ class Highlighting extends Component
/**
* Set boundaryscannerchars option
*
* @param string
$chars
* @return self Provides fluent interface
* @param string $chars
* @return self
Provides fluent interface
*/
public
function
setBoundaryScannerChars
(
$chars
)
{
...
...
@@ -842,8 +842,8 @@ class Highlighting extends Component
/**
* Set boundaryscannertype option
*
* @param string
$type
* @return self Provides fluent interface
* @param string $type
* @return self
Provides fluent interface
*/
public
function
setBoundaryScannerType
(
$type
)
{
...
...
@@ -863,8 +863,8 @@ class Highlighting extends Component
/**
* Set boundaryscannerlanguage option
*
* @param string
$language
* @return self Provides fluent interface
* @param string $language
* @return self
Provides fluent interface
*/
public
function
setBoundaryScannerLanguage
(
$language
)
{
...
...
@@ -884,8 +884,8 @@ class Highlighting extends Component
/**
* Set boundaryscannercountry option
*
* @param string
$country
* @return self Provides fluent interface
* @param string $country
* @return self
Provides fluent interface
*/
public
function
setBoundaryScannerCountry
(
$country
)
{
...
...
library/Solarium/QueryType/Select/Query/Component/Spellcheck.php
View file @
260818e4
...
...
@@ -373,16 +373,16 @@ class Spellcheck extends Component
return
$this
->
getOption
(
'accuracy'
);
}
/**
* Set a collation param
* @param string $param
* @param
mixed
$value
* @return self Provides fluent interface
* @param
string $param
* @param
mixed
$value
* @return self
Provides fluent interface
*/
public
function
setCollateParam
(
$param
,
$value
)
{
$this
->
collateParams
[
$param
]
=
$value
;
return
$this
;
}
...
...
library/Solarium/QueryType/Select/Query/Component/Stats/Field.php
View file @
260818e4
...
...
@@ -109,7 +109,7 @@ class Field extends Configurable
* Specify multiple facets to return in the resultset
*
* @param string|array $facets can be an array or string with comma
* separated facetnames
*
separated facetnames
*
* @return self Provides fluent interface
*/
...
...
library/Solarium/QueryType/Select/Query/Component/Stats/Stats.php
View file @
260818e4
...
...
@@ -288,7 +288,7 @@ class Stats extends Component
* Specify multiple facets to return in the resultset
*
* @param string|array $facets can be an array or string with comma
* separated facetnames
*
separated facetnames
*
* @return self Provides fluent interface
*/
...
...
library/Solarium/QueryType/Select/Query/Query.php
View file @
260818e4
...
...
@@ -451,7 +451,7 @@ class Query extends BaseQuery
* Specify multiple fields to return in the resultset
*
* @param string|array $fields can be an array or string with comma
* separated fieldnames
*
separated fieldnames
*
* @return self Provides fluent interface
*/
...
...
@@ -851,8 +851,8 @@ class Query extends BaseQuery
*
* You can remove a component by passing its key or the component instance.
*
* @param string|AbstractComponent
$component
* @return self
Provides fluent interface
* @param string|AbstractComponent $component
* @return self Provides fluent interface
*/
public
function
removeComponent
(
$component
)
{
...
...
library/Solarium/QueryType/Select/ResponseParser/Component/FacetSet.php
View file @
260818e4
...
...
@@ -144,9 +144,9 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
/**
* Add a facet result for a field facet
*
* @param Query $query
* @param QueryFacetField $facet
* @param array $data
* @param Query
$query
* @param QueryFacetField
$facet
* @param array
$data
* @return ResultFacetField|null
*/
protected
function
facetField
(
$query
,
$facet
,
$data
)
...
...
@@ -168,8 +168,8 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
/**
* Add a facet result for a facet query
*
* @param QueryFacetQuery $facet
* @param array $data
* @param QueryFacetQuery
$facet
* @param array
$data
* @return ResultFacetQuery|null
*/
protected
function
facetQuery
(
$facet
,
$data
)
...
...
@@ -185,8 +185,8 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
/**
* Add a facet result for a multiquery facet
*
* @param QueryFacetMultiQuery $facet
* @param array $data
* @param QueryFacetMultiQuery
$facet
* @param array
$data
* @return ResultFacetMultiQuery|null
*/
protected
function
facetMultiQuery
(
$facet
,
$data
)
...
...
@@ -210,9 +210,9 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
/**
* Add a facet result for a range facet
*
* @param Query $query
* @param QueryFacetRange $facet
* @param array $data
* @param Query
$query
* @param QueryFacetRange
$facet
* @param array
$data
* @return ResultFacetRange|null
*/
protected
function
facetRange
(
$query
,
$facet
,
$data
)
...
...
@@ -240,9 +240,9 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
/**
* Add a facet result for a range facet
*
* @param Query $query
* @param QueryFacetPivot $facet
* @param array $data
* @param Query
$query
* @param QueryFacetPivot
$facet
* @param array
$data
* @return ResultFacetPivot|null
*/
protected
function
facetPivot
(
$query
,
$facet
,
$data
)
...
...
library/Solarium/QueryType/Select/ResponseParser/Component/Spellcheck.php
View file @
260818e4
...
...
@@ -99,8 +99,8 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
/**
* Parse collation data into a result object
*
* @param Query $queryObject
* @param array $values
* @param Query
$queryObject
* @param array
$values
* @return Collation[]
*/
protected
function
parseCollation
(
$queryObject
,
$values
)
...
...
library/Solarium/QueryType/Select/Result/Highlighting/Highlighting.php
View file @
260818e4
...
...
@@ -38,8 +38,6 @@
*/
namespace
Solarium\QueryType\Select\Result\Highlighting
;
use
Solarium\QueryType\Select\Result\Highlighting\Result
;
/**
* Select component highlighting result
*/
...
...
library/Solarium/QueryType/Select/Result/MoreLikeThis/MoreLikeThis.php
View file @
260818e4
...
...
@@ -38,8 +38,6 @@
*/
namespace
Solarium\QueryType\Select\Result\MoreLikeThis
;
use
Solarium\QueryType\Select\Result\MoreLikeThis\Result
;
/**
* Select component morelikethis result
*/
...
...
library/Solarium/QueryType/Select/Result/MoreLikeThis/Result.php
View file @
260818e4
...
...
@@ -71,9 +71,9 @@ class Result implements \IteratorAggregate, \Countable
/**
* Constructor
*
* @param
int $numFound
* @param
float|null $maxScore
* @param
array $documents
* @param int $numFound
* @param float|null $maxScore
* @param array $documents
*/
public
function
__construct
(
$numFound
,
$maxScore
,
$documents
)
{
...
...
library/Solarium/QueryType/Select/Result/Result.php
View file @
260818e4
...
...
@@ -40,7 +40,6 @@ namespace Solarium\QueryType\Select\Result;
use
Solarium\QueryType\Select\Query\Query
as
SelectQuery
;
use
Solarium\Core\Query\Result\QueryType
as
BaseResult
;
use
Solarium\QueryType\Select\Result\DocumentInterface
;
/**
* Select query result
...
...
library/Solarium/QueryType/Select/Result/Spellcheck/Result.php
View file @
260818e4
...
...
@@ -38,9 +38,6 @@
*/
namespace
Solarium\QueryType\Select\Result\Spellcheck
;
use
Solarium\QueryType\Select\Result\Spellcheck\Collation
;
use
Solarium\QueryType\Select\Result\Spellcheck\Suggestion
;
/**
* Select component spellcheck result
*/
...
...
library/Solarium/QueryType/Select/Result/Spellcheck/Suggestion.php
View file @
260818e4
...
...
@@ -46,11 +46,11 @@ class Suggestion
/**
* Constructor
*
* @param int
$numFound
* @param int
$startOffset
* @param int
$endOffset
* @param int
$originalFrequency
* @param array
$words
* @param int $numFound
* @param int $startOffset
* @param int $endOffset
* @param int $originalFrequency
* @param array $words
*/
public
function
__construct
(
$numFound
,
$startOffset
,
$endOffset
,
$originalFrequency
,
$words
)
{
...
...
library/Solarium/QueryType/Select/Result/Stats/Stats.php
View file @
260818e4
...
...
@@ -38,8 +38,6 @@
*/
namespace
Solarium\QueryType\Select\Result\Stats
;
use
Solarium\QueryType\Select\Result\Stats\Result
;
/**
* Select component stats result
*/
...
...
library/Solarium/QueryType/Suggester/Query.php
View file @
260818e4
...
...
@@ -40,8 +40,6 @@ namespace Solarium\QueryType\Suggester;
use
Solarium\Core\Query\Query
as
BaseQuery
;
use
Solarium\Core\Client\Client
;
use
Solarium\QueryType\Suggester\RequestBuilder
;
use
Solarium\QueryType\Suggester\ResponseParser
;
/**
* Suggester Query
...
...
library/Solarium/QueryType/Suggester/RequestBuilder.php
View file @
260818e4
...
...
@@ -50,7 +50,7 @@ class RequestBuilder extends BaseRequestBuilder
/**
* Build request for a Suggester query
*
* @param QueryInterface|Query
$query
* @param QueryInterface|Query $query
* @return Request
*/
public
function
build
(
QueryInterface
$query
)
...
...
library/Solarium/QueryType/Terms/Query.php
View file @
260818e4
...
...
@@ -40,8 +40,6 @@ namespace Solarium\QueryType\Terms;
use
Solarium\Core\Client\Client
;
use
Solarium\Core\Query\Query
as
BaseQuery
;
use
Solarium\QueryType\Terms\RequestBuilder
;
use
Solarium\QueryType\Terms\ResponseParser
;
/**
* Terms query
...
...
library/Solarium/QueryType/Terms/RequestBuilder.php
View file @
260818e4
...
...
@@ -53,7 +53,7 @@ class RequestBuilder extends BaseRequestBuilder
/**
* Build request for a Terms query
*
* @param QueryInterface|Query
$query
* @param QueryInterface|Query $query
* @return Request
*/
public
function
build
(
QueryInterface
$query
)
...
...
library/Solarium/QueryType/Terms/ResponseParser.php
View file @
260818e4
...
...
@@ -39,7 +39,6 @@
*/
namespace
Solarium\QueryType\Terms
;
use
Solarium\QueryType\Terms\Query
;
use
Solarium\Core\Query\ResponseParser
as
ResponseParserAbstract
;
use
Solarium\Core\Query\ResponseParserInterface
as
ResponseParserInterface
;
...
...
library/Solarium/QueryType/Update/Query/Document/Document.php
View file @
260818e4
...
...
@@ -356,14 +356,15 @@ class Document extends AbstractDocument implements DocumentInterface
if
(
$value
!==
null
)
{
$this
->
addField
(
$key
,
$value
);
}
return
$this
;
}
/**
* Sets the modifier type for the provided field
*
* @param
string
$key
* @param
string
$modifier
* @param
string
$key
* @param
string
$modifier
* @throws RuntimeException
* @return self
*/
...
...
@@ -373,13 +374,14 @@ class Document extends AbstractDocument implements DocumentInterface
throw
new
RuntimeException
(
'Attempt to set an atomic update modifier that is not supported'
);
}
$this
->
modifiers
[
$key
]
=
$modifier
;
return
$this
;
}
/**
* Returns the appropriate modifier for atomic updates.
*
* @param
string
$key
* @param
string
$key
* @return null|string
*/
public
function
getFieldModifier
(
$key
)
...
...
@@ -409,12 +411,13 @@ class Document extends AbstractDocument implements DocumentInterface
/**
* Set version
*
* @param
int
$version
* @param
int
$version
* @return self
*/
public
function
setVersion
(
$version
)
{
$this
->
version
=
$version
;
return
$this
;
}
...
...
library/Solarium/QueryType/Update/Query/Query.php
View file @
260818e4
...
...
@@ -452,8 +452,8 @@ class Query extends BaseQuery
*
* This class should implement the document interface
*
* @param string $value classname
* @return self Provides fluent interface
* @param
string $value classname
* @return self
Provides fluent interface
*/
public
function
setDocumentClass
(
$value
)
{
...
...
@@ -480,14 +480,15 @@ class Query extends BaseQuery
*
* @since 2.1.0
*
* @param array $fields
* @param array $boosts
* @param array $modifiers
* @param array
$fields
* @param array
$boosts
* @param array
$modifiers
* @return DocumentInterface
*/
public
function
createDocument
(
$fields
=
array
(),
$boosts
=
array
(),
$modifiers
=
array
())
{
$class
=
$this
->
getDocumentClass
();
return
new
$class
(
$fields
,
$boosts
,
$modifiers
);
}
}
library/Solarium/QueryType/Update/RequestBuilder.php
View file @
260818e4
...
...
@@ -108,7 +108,7 @@ class RequestBuilder extends BaseRequestBuilder
* Build XML for an add command
*
* @param \Solarium\QueryType\Update\Query\Command\Add $command
* @param UpdateQuery $query
* @param UpdateQuery
$query
* @return string
*/
public
function
buildAddXml
(
$command
,
$query
=
null
)
...
...
@@ -153,10 +153,10 @@ class RequestBuilder extends BaseRequestBuilder
*
* Used in the add command
*
* @param string $name
* @param float $boost
* @param mixed $value
* @param string $modifier
* @param string
$name
* @param float
$boost
* @param mixed
$value
* @param string
$modifier
* @param UpdateQuery $query
* @return string
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment