| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 53 | 18 | public function fakeRelationships($count = 2) |
|
| 54 | { |
||
| 55 | 18 | $faker = \Faker\Factory::create(); |
|
| 56 | |||
| 57 | 18 | for ($i = 0; $i < $count; $i++) { |
|
| 58 | 18 | $this->addRelationship( |
|
| 59 | 18 | $faker->unique()->numerify('relationship##'), |
|
| 60 | 18 | $this->generator->relationship()->fake() |
|
| 61 | ); |
||
| 62 | } |
||
| 63 | |||
| 64 | 18 | return $this; |
|
| 65 | } |
||
| 67 |