@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // Needed for isolated tests |
| 3 | -require_once __DIR__.'/../vendor/autoload.php'; |
|
| 3 | +require_once __DIR__ . '/../vendor/autoload.php'; |
|
| 4 | 4 | |
| 5 | 5 | ini_set('precision', 14); |
| 6 | 6 | ini_set('serialize_precision', 14); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | if (!empty($pathToYml)) { |
| 24 | 24 | $this->pathToYml = $pathToYml; |
| 25 | 25 | } else { |
| 26 | - $this->pathToYml = __DIR__."/../Resources/config/config.yml"; |
|
| 26 | + $this->pathToYml = __DIR__ . "/../Resources/config/config.yml"; |
|
| 27 | 27 | } |
| 28 | 28 | } |
| 29 | 29 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $whiteList = $configArray['profanities']['bad_words']; |
| 39 | 39 | $replaceWith = $configArray['profanities']['replace_with']; |
| 40 | 40 | |
| 41 | - if(!empty($content) && !empty($whiteList)) { |
|
| 41 | + if (!empty($content) && !empty($whiteList)) { |
|
| 42 | 42 | $content = ProfanityWordPurifier::contentFilter($content, $whiteList, $replaceWith); |
| 43 | 43 | } |
| 44 | 44 | |