Skip to content

Commit

Permalink
Style tweaks to match latest CakePHP codesniffer rules
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Sep 9, 2016
1 parent d12cd25 commit 8e81797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Behavior/SearchableBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public function findMatches(Query $query, array $options)

//assemble MATCH() AGAINST() clauses
foreach ($options as $key => $option) {

if (!isset($option['match']) || !isset($option['against'])) {
throw new SearchableException("Keys 'match' and 'against' must be set");
}
Expand Down Expand Up @@ -106,6 +105,7 @@ private function _validateColumns($columnList)
throw new SearchableException('Invalid column');
}
}

return true;
}
}
1 change: 1 addition & 0 deletions tests/TestCase/Model/Behavior/SearchableBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ private function getTable()
{
$table = TableRegistry::get('Foo');
$table->addBehavior('Chris48s/Searchable.Searchable');

return $table;
}

Expand Down

0 comments on commit 8e81797

Please sign in to comment.