| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 8 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | View Code Duplication | public function testMultipleSentence() |
|
| 36 | { |
||
| 37 | $this->tr->translate('ჩემი ხატია სამშობლო. სახატე - მთელი ქვეყანა. განათებული მთა-ბარი.'); |
||
| 38 | $this->assertEquals($this->tr->getLastDetectedSource(), 'ka'); |
||
| 39 | |||
| 40 | $this->tr->translate('Ще не вмерла Україна, И слава, и воля! Ще намъ, браття-молодці, Усміхнеться доля!'); |
||
| 41 | $this->assertEquals($this->tr->getLastDetectedSource(), 'uk'); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.