Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | function it_should_ask_for_plain_password() |
||
39 | { |
||
40 | $this->setFirstName('Example'); |
||
41 | $this->setLastName(''); |
||
42 | $this->setEmail('[email protected]'); |
||
43 | $this->setPhone('+1 234 567 890'); |
||
44 | $this->setDefaultLocale('en'); |
||
45 | |||
46 | $this->shouldThrow(LogicException::class)->during('build'); |
||
47 | } |
||
48 | } |
||
49 |
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.