Skip to content

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
basdenooijer committed Feb 14, 2012
1 parent b4ccbe8 commit 9deb64d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
18 changes: 10 additions & 8 deletions library/Solarium/Client/ResponseParser/Analysis/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,16 @@ protected function _parseTypes($typeData)

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));

Expand Down
5 changes: 3 additions & 2 deletions library/Solarium/Plugin/ParallelExecution.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public function getQueries()
*
* @return self Provides fluent interface
*/
public function clearQueries() {
public function clearQueries()
{
$this->_queries = array();
return $this;
}
Expand All @@ -121,7 +122,7 @@ public function clearQueries() {
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);
}
Expand Down

0 comments on commit 9deb64d

Please sign in to comment.