Skip to content

Commit

Permalink
Moved badwords checker to service namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
adampiotrowski committed Jun 17, 2017
1 parent 5ecb1b1 commit a53bd40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use WellCommerce\Bundle\ReviewBundle\Checker\BadWordsChecker;
use WellCommerce\Bundle\ReviewBundle\Entity\Review;
use WellCommerce\Bundle\ReviewBundle\Service\Checker\BadWordsChecker;

/**
* Class BadWordsValidator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* please view the LICENSE file that was distributed with this source code.
*/

namespace WellCommerce\Bundle\ReviewBundle\Checker;
namespace WellCommerce\Bundle\ReviewBundle\Service\Checker;

use Expalmer\PhpBadWords\PhpBadWords;
use ReflectionClass;
Expand All @@ -22,7 +22,7 @@
*/
class BadWordsChecker
{
public function isBadWord(string $phrase) : bool
public function isBadWord(string $phrase): bool
{
$reflection = new ReflectionClass($this);
$directory = dirname($reflection->getFileName());
Expand Down

0 comments on commit a53bd40

Please sign in to comment.