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
d6104fc7
Commit
d6104fc7
authored
Sep 10, 2015
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Strict compare of boolean values
parent
4f4fe388
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
library/Solarium/Core/Client/Client.php
library/Solarium/Core/Client/Client.php
+1
-1
library/Solarium/Core/Configurable.php
library/Solarium/Core/Configurable.php
+1
-1
library/Solarium/Core/Query/AbstractRequestBuilder.php
library/Solarium/Core/Query/AbstractRequestBuilder.php
+1
-1
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
+1
-1
library/Solarium/QueryType/Extract/RequestBuilder.php
library/Solarium/QueryType/Extract/RequestBuilder.php
+1
-1
library/Solarium/QueryType/MoreLikeThis/ResponseParser.php
library/Solarium/QueryType/MoreLikeThis/ResponseParser.php
+1
-1
library/Solarium/QueryType/MoreLikeThis/Result.php
library/Solarium/QueryType/MoreLikeThis/Result.php
+1
-1
library/Solarium/QueryType/Select/Query/Query.php
library/Solarium/QueryType/Select/Query/Query.php
+1
-1
No files found.
library/Solarium/Core/Client/Client.php
View file @
d6104fc7
...
...
@@ -243,7 +243,7 @@ class Client extends Configurable
if
(
$endpoint
->
getKey
()
!==
null
)
{
$this
->
addEndpoint
(
$endpoint
);
if
(
$setAsDefault
==
true
)
{
if
(
$setAsDefault
==
=
true
)
{
$this
->
setDefaultEndpoint
(
$endpoint
);
}
}
...
...
library/Solarium/Core/Configurable.php
View file @
d6104fc7
...
...
@@ -108,7 +108,7 @@ class Configurable implements ConfigurableInterface
}
}
if
(
true
==
$overwrite
)
{
if
(
true
==
=
$overwrite
)
{
$this
->
options
=
$options
;
}
else
{
$this
->
options
=
array_merge
(
$this
->
options
,
$options
);
...
...
library/Solarium/Core/Query/AbstractRequestBuilder.php
View file @
d6104fc7
...
...
@@ -118,7 +118,7 @@ abstract class AbstractRequestBuilder implements RequestBuilderInterface
public
function
boolAttrib
(
$name
,
$value
)
{
if
(
null
!==
$value
)
{
$value
=
(
true
==
$value
)
?
'true'
:
'false'
;
$value
=
(
true
==
=
(
bool
)
$value
)
?
'true'
:
'false'
;
return
$this
->
attrib
(
$name
,
$value
);
}
else
{
...
...
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
View file @
d6104fc7
...
...
@@ -469,7 +469,7 @@ class Loadbalancer extends AbstractPlugin
$this
->
endpointExcludes
=
array
();
// reset for each query
$adapter
=
$this
->
client
->
getAdapter
();
if
(
$this
->
getFailoverEnabled
()
==
true
)
{
if
(
$this
->
getFailoverEnabled
()
==
=
true
)
{
$maxRetries
=
$this
->
getFailoverMaxRetries
();
for
(
$i
=
0
;
$i
<=
$maxRetries
;
$i
++
)
{
$endpoint
=
$this
->
getRandomEndpoint
();
...
...
library/Solarium/QueryType/Extract/RequestBuilder.php
View file @
d6104fc7
...
...
@@ -80,7 +80,7 @@ class RequestBuilder extends BaseRequestBuilder
}
// add document settings to request
if
((
$doc
=
$query
->
getDocument
())
!=
null
)
{
if
((
$doc
=
$query
->
getDocument
())
!=
=
null
)
{
if
(
$doc
->
getBoost
()
!==
null
)
{
throw
new
RuntimeException
(
'Extract does not support document-level boosts, use field boosts instead.'
);
}
...
...
library/Solarium/QueryType/MoreLikeThis/ResponseParser.php
View file @
d6104fc7
...
...
@@ -71,7 +71,7 @@ class ResponseParser extends SelectResponseParser
$parseResult
[
'interestingTerms'
]
=
$terms
;
}
if
(
isset
(
$data
[
'match'
][
'docs'
][
0
])
&&
true
==
$query
->
getMatchInclude
())
{
if
(
isset
(
$data
[
'match'
][
'docs'
][
0
])
&&
true
==
=
$query
->
getMatchInclude
())
{
$matchData
=
$data
[
'match'
][
'docs'
][
0
];
$documentClass
=
$query
->
getOption
(
'documentclass'
);
...
...
library/Solarium/QueryType/MoreLikeThis/Result.php
View file @
d6104fc7
...
...
@@ -119,7 +119,7 @@ class Result extends SelectResult
public
function
getMatch
()
{
$query
=
$this
->
getQuery
();
if
(
true
!=
$query
->
getMatchInclude
())
{
if
(
true
!=
=
$query
->
getMatchInclude
())
{
throw
new
UnexpectedValueException
(
'matchinclude was disabled in the MLT query'
);
}
$this
->
parseResponse
();
...
...
library/Solarium/QueryType/Select/Query/Query.php
View file @
d6104fc7
...
...
@@ -792,7 +792,7 @@ class Query extends BaseQuery
if
(
isset
(
$this
->
components
[
$key
]))
{
return
$this
->
components
[
$key
];
}
else
{
if
(
$autoload
==
true
)
{
if
(
$autoload
==
=
true
)
{
if
(
!
isset
(
$this
->
componentTypes
[
$key
]))
{
throw
new
OutOfBoundsException
(
'Cannot autoload unknown component: '
.
$key
);
}
...
...
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