Skip to content

Commit

Permalink
Codestyle changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tkempf committed Aug 27, 2015
1 parent daed030 commit d72731e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/com_finder/models/suggestions.php
Expand Up @@ -131,7 +131,7 @@ protected function getListQuery()
{
// Escape the date.
$date1 = $db->quote($filterparams->d1);

// Add the appropriate WHERE condition.
if ($filterparams->w1 == -1)
{
Expand All @@ -146,13 +146,13 @@ protected function getListQuery()
$query->where($db->quoteName('l.start_date') . ' = ' . $date1);
}
}

// Add the end date filter to the query.
if ($filterparams->w2 != '')
{
// Escape the date.
$date2 = $db->quote($filterparams->d2);

// Add the appropriate WHERE condition.
if ($filterparams->w2 == -1)
{
Expand All @@ -167,7 +167,7 @@ protected function getListQuery()
$query->where($db->quoteName('l.start_date') . ' = ' . $date2);
}
}

}

return $query;
Expand Down Expand Up @@ -216,11 +216,11 @@ protected function populateState($ordering = null, $direction = null)
$input = $app->input;
$params = JComponentHelper::getParams('com_finder');
$user = JFactory::getUser();


// Get the query input.
$this->setState('input', $input->request->get('q', '', 'string'));

// Set the query language
if (JLanguageMultilang::isEnabled())
{
Expand All @@ -236,7 +236,7 @@ protected function populateState($ordering = null, $direction = null)

// Get the static taxonomy filter.
$this->setState('filter', $input->request->get('f', '', 'int'));

// Load the list state.
$this->setState('list.start', 0);
$this->setState('list.limit', 10);
Expand All @@ -247,6 +247,6 @@ protected function populateState($ordering = null, $direction = null)
// Load the user state.
$this->setState('user.id', (int) $user->get('id'));
$this->setState('user.groups', $user->getAuthorisedViewLevels());

}
}

0 comments on commit d72731e

Please sign in to comment.