| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 1 | public function newInstance() |
|
| 30 | { |
||
| 31 | 1 | return new TranslatorLocator( |
|
| 32 | 1 | new PackageLocator, |
|
| 33 | 1 | new FormatterLocator([ |
|
| 34 | 'basic' => function () { |
||
| 35 | return new \Aura\Intl\BasicFormatter; |
||
| 36 | 1 | }, |
|
| 37 | 1 | 'intl' => function () { |
|
| 38 | return new \Aura\Intl\IntlFormatter; |
||
| 39 | 1 | }, |
|
| 40 | ]), |
||
| 41 | 1 | new TranslatorFactory, |
|
| 42 | 1 | 'en_US' |
|
| 43 | ); |
||
| 46 |