We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function __construct($locale = null) |
||
| 22 | { |
||
| 23 | $spoofchecker = new Spoofchecker(); |
||
| 24 | $spoofchecker->setChecks(Spoofchecker::SINGLE_SCRIPT | Spoofchecker::INVISIBLE); |
||
| 25 | |||
| 26 | if (null !== $locale) { |
||
| 27 | $spoofchecker->setAllowedLocales($locale); |
||
| 28 | } |
||
| 29 | |||
| 30 | $this->locale = $locale; |
||
| 31 | $this->spoofchecker = $spoofchecker; |
||
| 32 | } |
||
| 33 | |||
| 43 |