| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 26 | public function create($subject) |
|
| 23 | { |
||
| 24 | 26 | $reflect = new \ReflectionClass($subject); |
|
| 25 | |||
| 26 | do { |
||
| 27 | 26 | $reference = $reflect->getName() . '@' . mt_rand(); |
|
|
|
|||
| 28 | 26 | } while (\in_array($reference, $this->used, true)); |
|
| 29 | |||
| 30 | 26 | $this->used[] = $reference; |
|
| 31 | |||
| 32 | 26 | return $reference; |
|
| 33 | } |
||
| 34 | } |
||
| 35 |