Skip to content

Commit

Permalink
Fixed strict errors in sphinx behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjsaylor committed Sep 8, 2013
1 parent 4b7c1a3 commit b6fbf48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Model/Behavior/SphinxBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SphinxBehavior extends ModelBehavior
*/
var $sphinx = null;

function setup(&$model, $config = array())
function setup(Model $model, $config = array())
{
$settings = array_merge($this->_defaults, (array) $config);

Expand All @@ -43,7 +43,7 @@ function setup(&$model, $config = array())
* @return array Modified query
* @access public
*/
function beforeFind(&$model, $query)
function beforeFind(Model $model, $query)
{
if (empty($query['sphinx']) || empty($query['search']))
return true;
Expand Down Expand Up @@ -135,4 +135,4 @@ function beforeFind(&$model, $query)
return $query;
}
}
?>
?>

0 comments on commit b6fbf48

Please sign in to comment.