Switch to PSR-4, fix CS and update service provider

This commit is contained in:
James Brooks
2015-12-22 09:34:30 +00:00
parent d961509341
commit c2ec458b2c
40 changed files with 753 additions and 723 deletions

View File

@ -0,0 +1,24 @@
<?php
namespace TomLingham\Searchy\Matchers;
/**
* Matches strings for Acronym 'like' matches but does NOT return Studly Case Matches.
*
* for example, a search for 'fb' would match; 'foo bar' or 'Fred Brown' but not 'FreeBeer'.
*
* Class AcronymMatcher
*/
class LevenshteinMatcher extends BaseMatcher
{
/**
* @param $column
* @param $searchString
*
* @return mixed|string
*/
public function buildQueryString($column, $searchString)
{
return "levenshtein($column, '$searchString')";
}
}