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
9959cad4
Commit
9959cad4
authored
Mar 30, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- code style fixes
parent
4008b6b6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
library/Solarium/Autoloader.php
library/Solarium/Autoloader.php
+6
-1
library/Solarium/Client/Adapter/ZendHttp.php
library/Solarium/Client/Adapter/ZendHttp.php
+2
-1
library/Solarium/Document/ReadOnly.php
library/Solarium/Document/ReadOnly.php
+8
-4
library/Solarium/Escape.php
library/Solarium/Escape.php
+1
-1
No files found.
library/Solarium/Autoloader.php
View file @
9959cad4
...
...
@@ -77,7 +77,12 @@ class Solarium_Autoloader
{
if
(
substr
(
$class
,
0
,
8
)
==
'Solarium'
)
{
$class
=
str_replace
(
array
(
'Solarium'
,
'_'
),
array
(
''
,
'/'
),
$class
);
$class
=
str_replace
(
array
(
'Solarium'
,
'_'
),
array
(
''
,
'/'
),
$class
);
$file
=
dirname
(
__FILE__
)
.
'/'
.
$class
.
'.php'
;
require
(
$file
);
...
...
library/Solarium/Client/Adapter/ZendHttp.php
View file @
9959cad4
...
...
@@ -86,7 +86,8 @@ class Solarium_Client_Adapter_ZendHttp extends Solarium_Client_Adapter_Http
);
// forward adapter options if available
if
(
isset
(
$this
->
_options
[
'adapteroptions'
]))
{
if
(
isset
(
$this
->
_options
[
'adapteroptions'
]))
{
$this
->
_zendHttp
->
setConfig
(
$this
->
_options
[
'adapteroptions'
]);
}
}
...
...
library/Solarium/Document/ReadOnly.php
View file @
9959cad4
...
...
@@ -137,7 +137,8 @@ class Solarium_Document_ReadOnly
* @param mixed $value
* @return void
*/
public
function
offsetSet
(
$offset
,
$value
)
{
public
function
offsetSet
(
$offset
,
$value
)
{
$this
->
__set
(
$offset
,
$value
);
}
...
...
@@ -147,7 +148,8 @@ class Solarium_Document_ReadOnly
* @param mixed $offset
* @return bool
*/
public
function
offsetExists
(
$offset
)
{
public
function
offsetExists
(
$offset
)
{
return
isset
(
$this
->
_fields
[
$offset
]);
}
...
...
@@ -157,7 +159,8 @@ class Solarium_Document_ReadOnly
* @param mixed $offset
* @return void
*/
public
function
offsetUnset
(
$offset
)
{
public
function
offsetUnset
(
$offset
)
{
$this
->
__set
(
$offset
,
null
);
}
...
...
@@ -167,7 +170,8 @@ class Solarium_Document_ReadOnly
* @param mixed $offset
* @return mixed|null
*/
public
function
offsetGet
(
$offset
)
{
public
function
offsetGet
(
$offset
)
{
return
isset
(
$this
->
_fields
[
$offset
])
?
$this
->
_fields
[
$offset
]
:
null
;
}
...
...
library/Solarium/Escape.php
View file @
9959cad4
...
...
@@ -65,7 +65,7 @@ class Solarium_Escape
*/
static
public
function
term
(
$input
)
{
$pattern
=
'/(\+|-|&&|\|\||!|\(|\)|\{|}|\[|]|\^|"|~|\*|\?|:|\\\)/'
;
$pattern
=
'/(\+|-|&&|\|\||!|\(|\)|\{|}|\[|]|\^|"|~|\*|\?|:|\\\)/'
;
return
preg_replace
(
$pattern
,
'\\\$1'
,
$input
);
}
...
...
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